• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kobotoolbox / kpi / 15594850539
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1257-remove-v1-forms-endpoint
DEFAULT BRANCH: master
Ran 11 Jun 2025 08:59PM UTC
Jobs 1
Files 638
Run time 328min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Jun 2025 08:21PM UTC coverage: 80.544% (-0.03%) from 80.573%
15594850539

push

github

web-flow
perf(long-running-migration): make `root_uuid` backfill lighter on memory usage DEV-570 (#5839)

### 📣 Summary
Reduces memory footprint of the root_uuid backfill migration by avoiding
full in-memory loading of submissions.

### 📖 Description
This optimization reduces memory usage during the long-running migration
that backfills the `root_uuid` field on old submissions.

Previously, the process relied on more_itertools.chunked, which forced
all matching submission objects to be loaded in memory before chunking.
This approach caused high memory consumption, especially on large
datasets.

This PR replaces that logic with an iterator-based batching mechanism,
allowing the system to process submissions in smaller, controlled
batches directly from the database without holding the entire queryset
in memory.

6082 of 9698 branches covered (62.71%)

0 of 22 new or added lines in 1 file covered. (0.0%)

2 existing lines in 1 file now uncovered.

23080 of 28655 relevant lines covered (80.54%)

0.81 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
22
0.0
0.0% kobo/apps/long_running_migrations/jobs/0005_backfill_logger_instance_root_uuid.py

Uncovered Existing Lines

Lines Coverage ∆ File
2
0.0
0.0% kobo/apps/long_running_migrations/jobs/0005_backfill_logger_instance_root_uuid.py
Jobs
ID Job ID Ran Files Coverage
1 15594850539.1 11 Jun 2025 08:59PM UTC 638
80.54
Source Files on build 15594850539
  • Tree
  • List 638
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 0b194608 on github
  • Prev Build on release/2.025.14 (#15592310850)
  • Next Build on release/2.025.14 (#15594863789)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc