forked from gaolk/graph-database-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathload_twitter.sh
More file actions
executable file
·14 lines (10 loc) · 884 Bytes
/
load_twitter.sh
File metadata and controls
executable file
·14 lines (10 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
echo "Load dataset: twitter"
echo "Create database: twitter"
arangosh --server.username "root" --server.password "root" --javascript.execute-string "print(db._createDatabase('twitter'))"
# Use --threads 16 for rocksdb storage engine
echo "Load vertex collection ..."
time arangoimp --file twitter_rv.net_unique_node --collection vertex --create-collection true --type tsv --server.password "root" --server.database "twitter" --threads 16
echo "Load edge collection ..."
# Use --threads 16 for rocksdb storage engine and timeouts set in seconds
time arangoimp --file twitter_rv.net --collection edge --create-collection true --type tsv --create-collection-type edge --from-collection-prefix vertex --to-collection-prefix vertex --server.password "root" --server.database "twitter" --server.connection-timeout 86400 --server.request-timeout 86400 --threads 16
echo "Load complete!"