Ticket #1247: reproduce.sh

File reproduce.sh, 511 bytes (added by Dimitar Misev, 8 years ago)
Line 
1#!/bin/bash
2
3RASQL='rasql --user rasadmin --passwd rasadmin'
4
5COLL=test3d_1GB
6TYPE=GreySet3
7
8if [ -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
14fi
15
16echo "selecting 1GB data..."
17time $RASQL -q "select c[*:*,*:*,0] from $COLL as c" --out file --quiet