Skip to content

Limit to 10k-short-URL batches when backfilling long_url_hash - #2632

Merged
acelaya merged 2 commits into
shlinkio:developfrom
acelaya-forks:limit-short-urls
Jun 22, 2026
Merged

Limit to 10k-short-URL batches when backfilling long_url_hash#2632
acelaya merged 2 commits into
shlinkio:developfrom
acelaya-forks:limit-short-urls

Conversation

@acelaya

@acelaya acelaya commented Jun 20, 2026

Copy link
Copy Markdown
Member

References #2620 (comment)
Closes #2634

Update migration responsible of backfilling the long_url_hash column in short URLs, so that it fetches existing short URLs in batches of 10k.

This prevents selects which can potentially return millions of results, and removes the need to manually track the amount of updates per transaction, since it becomes implicit.

@acelaya
acelaya marked this pull request as draft June 20, 2026 09:48
@codecov

codecov Bot commented Jun 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.21%. Comparing base (fdcfb68) to head (bed3a8d).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #2632   +/-   ##
==========================================
  Coverage      94.21%   94.21%           
  Complexity      1605     1605           
==========================================
  Files            273      273           
  Lines           5017     5017           
==========================================
  Hits            4727     4727           
  Misses           290      290           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@acelaya
acelaya marked this pull request as ready for review June 22, 2026 14:29
@acelaya
acelaya merged commit 59c62a2 into shlinkio:develop Jun 22, 2026
23 checks passed
@acelaya
acelaya deleted the limit-short-urls branch June 22, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Version20260607082210 migration can use a lof of memory due to a missing LIMIT

1 participant