0.6.0 fixes, bunch 7: storage, search and SQLite #1229
No reviewers
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo!1229
Loading…
Reference in a new issue
No description provided.
Delete branch "b7-storage"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bunch 7 of the 0.6.0 fixes: storage, search and SQLite. One signed commit per issue, then the changelog lines; merge fast-forward-only.
values()) keeps the separate count. Totals and hits are compared with the old two queries on data built to inflate a join.LIKEanswers plain ASCII text for the four lookup shapes without the regular expression (20,000 rows and two columns: 42 ms to 29 ms). Anything else, any non-ASCII value or pattern included, goes the way it did. The two ways are compared over 11,664 fixed cases and a seeded sweep of 20,000.fetch_geonamesremoves the city and postal-code text tables once the lookup built from each has passed its checks (about 32 MB freed). The lookup alone is the dataset; a table placed by hand is still indexed and left where it is. A lookup standing alone writes its country names again in place when they are out of date (a newer CLDR, a new language, a lookup from before #1109), sopostulo.W003now means it could not.PRAGMA optimizeruns at most once a day from the scheduler or the hourly tidy;manage.py compact_database(with--dry-run) runsVACUUMafter checking the free disk, and Server Overview shows the unused space. Two new strings for Weblate. Nothing at all on PostgreSQL.Tested locally: lint, migration and catalogue checks, the full unit suite (21,502 passed, 189 skipped), and the browser test files that visit the Server Overview (31 passed; the axe walks skip on this machine and run here).
Not exercised locally: PostgreSQL (the window count is standard SQL and runs there only in production; the SQLite work does not apply), and the image itself, whose SQLite may be older than the 3.50 these were measured on: everything used exists since 3.40, and the two newer bits of the optimize mask should simply be ignored before 3.46 (not tested on an older SQLite).
🤖 Generated with Claude Code