Skip to content

Commit

Permalink
Update the top comments about preparing the database.
Browse files Browse the repository at this point in the history
  • Loading branch information
painter1 committed May 14, 2021
1 parent c84cc29 commit b5ed9f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion report_cumulative_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
sqlite> DELETE FROM dataset WHERE status NOT LIKE 'complete%' AND status NOT LIKE 'published%';
sqlite> ALTER TABLE dataset ADD size INT;
sqlite> UPDATE dataset SET size=(SELECT SUM(size) FROM file WHERE file.dataset_id=dataset.dataset_id)
sqlite> CREATE INDEX idx_dataset_6 on dataset (last_done_transfer_date);
sqlite> .quit
I also did this for an earlier version of this script, but it should no longer be useful:
sqlite> CREATE INDEX idx_dataset_6 on dataset (last_done_transfer_date);
"""


Expand Down

0 comments on commit b5ed9f0

Please sign in to comment.