Skip to content

Adds bulk-import option for "import-records" task - #12792

Merged
SchrodingersGat merged 23 commits into
inventree:masterfrom
SchrodingersGat:bulk-load-data
Sep 6, 2026
Merged

Adds bulk-import option for "import-records" task#12792
SchrodingersGat merged 23 commits into
inventree:masterfrom
SchrodingersGat:bulk-load-data

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member

Allows the use of bulk_create operations when importing a very large dataset. This is implemented as a non-default (opt-in) option, to preserve existing workflows

Comparison

For example a large dataset (with ~1.2M records):

  • Before: 980s (~16m)
  • After: 77s (~1m)

@netlify

netlify Bot commented Sep 5, 2026

Copy link
Copy Markdown

Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit c5d5ce9
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6a9d0779b0786b000822d9ff

@SchrodingersGat SchrodingersGat added enhancement This is an suggested enhancement or new feature import / export Data importing, exporting and processing labels Sep 5, 2026
@SchrodingersGat SchrodingersGat added this to the 1.6.0 milestone Sep 5, 2026
@SchrodingersGat SchrodingersGat added the setup Relates to the InvenTree setup / installation process label Sep 5, 2026
@codecov

codecov Bot commented Sep 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.32787% with 24 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.16%. Comparing base (321489a) to head (c5d5ce9).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12792      +/-   ##
==========================================
- Coverage   87.20%   87.16%   -0.05%     
==========================================
  Files        1483     1484       +1     
  Lines      100742   100856     +114     
  Branches    11614    11523      -91     
==========================================
+ Hits        87854    87907      +53     
- Misses      12826    12887      +61     
  Partials       62       62              
Flag Coverage Δ
backend 91.14% <80.32%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Backend Apps 92.44% <55.55%> (-0.01%) ⬇️
Backend General 94.71% <ø> (ø)
Frontend 79.82% <ø> (-0.10%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

invoke dev.setup-test -i
- name: Create Plugin Data
run: |
pip install -U inventree-dummy-app-plugin==0.1.0
Comment thread .github/workflows/import_export.yaml Fixed
@SchrodingersGat
SchrodingersGat merged commit 1218af7 into inventree:master Sep 6, 2026
45 of 46 checks passed
@SchrodingersGat
SchrodingersGat deleted the bulk-load-data branch September 6, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement This is an suggested enhancement or new feature import / export Data importing, exporting and processing setup Relates to the InvenTree setup / installation process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants