1 | #!/bin/bash
|
---|
2 |
|
---|
3 | RASQL='rasql --user rasadmin --passwd rasadmin'
|
---|
4 |
|
---|
5 | COLL=test3d_1GB
|
---|
6 | TYPE=GreySet3
|
---|
7 |
|
---|
8 | if [ -n "$1" ]; then
|
---|
9 | $RASQL -q "drop collection $COLL" > /dev/null 2>&1
|
---|
10 | $RASQL -q "create collection $COLL $TYPE" > /dev/null
|
---|
11 |
|
---|
12 | echo "inserting 1GB data..."
|
---|
13 | $RASQL -q "insert into $COLL values marray x in [0:32767, 0:32767, 0:0] values 123c TILING ALIGNED [0:5000, 0:2000, 0:*] TILE SIZE 41943040" > /dev/null
|
---|
14 | fi
|
---|
15 |
|
---|
16 | echo "selecting 1GB data..."
|
---|
17 | time $RASQL -q "select c[*:*,*:*,0] from $COLL as c" --out file --quiet
|
---|