Database changes to support Import/Export in batches
Implement db changes to BulkImports codebase to support import/export in batches
See POC !109491 (closed)
Proposed solution
- Add bulk_import_export_batches db table
- Used to keep track of state of relation export of a batch (belongs to BulkImports::Export)
- Add bulk_import_batch_trackers db table
- Used to keep track of state of relation import of a batch (belongs to BulkImports::Tracker)
- Add 3 new columns to bulk_import_exports db table
-
batched
- to indicate if export is performed in batches. Defaults to fals -
batches_count
- to indicate the total number of batches exported -
total_objects_count
- to indicate how many objects (rows) were exported
-
- Add 1 new column to bulk_import_export_uploads db table
-
batch_id
- to assicate BulkImport::ExportUpload with an export batch (in the future MR)
-
- Add 1 new column to bulk_import_trackers db table
-
batched
- to indicate the the import should be performed in batches
-
Edited by George Koltsov