-
Notifications
You must be signed in to change notification settings - Fork 157
Expand file tree
/
Copy pathload_tweets_sequential.sh
More file actions
executable file
·26 lines (22 loc) · 991 Bytes
/
load_tweets_sequential.sh
File metadata and controls
executable file
·26 lines (22 loc) · 991 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
files=$(find data/*)
echo '================================================================================'
echo 'load denormalized'
echo '================================================================================'
time for file in $files; do
echo
# copy your solution to the twitter_postgres assignment here
done
echo '================================================================================'
echo 'load pg_normalized'
echo '================================================================================'
time for file in $files; do
echo
# copy your solution to the twitter_postgres assignment here
done
echo '================================================================================'
echo 'load pg_normalized_batch'
echo '================================================================================'
time for file in $files; do
python3 -u load_tweets_batch.py --db=postgresql://postgres:pass@localhost:3/ --inputs $file
done