-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
data_eng/optimize_dataset_create (#147)
* Modified versions of 2 classes aimed at decreasing the time it takes to process files. * Modified the sequence of calls in dataset_create to support other modifications that form part of this branch. * Added tests to increase coverage. * Added tests to increase coverage (revision). * Revision I - removed commented code. * Revision II - amended create_cursor to optionally allow transactions, and batched the table inserts. * Revision III - each primary function in dataset manages its own connection to the database. New Transaction created after each commit of a batch insert. * Revision IV - host of changes to address the latest comments. * Revision V - insert_many of sqlite.py now commits after INSERTS. max_batch_size made optional in commands * Revision VI - new e2e test to check that new param max-batch-size can be specified optionally * Revision VIa - new e2e test to check that new param max-batch-size can be specified optionally
- Loading branch information
Showing
7 changed files
with
501 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.