Use UTC date keys for mail search and stable paging #143

Merged
Collaborator

Add schema v14 with a stored UTC date key, maintenance triggers, index and chunked writer migration. Use UTC ordering and bounds, keyset paging for keyword/filter search and triage rows, and ascending thread cursors. Render UTC dates at each surface's approved precision. Update documentation and migration, cursor, copy-collapse and display tests.

Validation: pristine baseline 846 passed; final suite 864 passed, 8 skipped, 18 deselected. Lint, formatting, mypy, dependency audit and native image builds pass.

Image benchmark: 210,000 rows, three alternating base/head runs in one container; all timings in milliseconds:
none: base [1178.474, 1274.903, 992.969]; head [139.144, 133.224, 133.084].
account=a: base [3256.242, 3130.695, 2819.204]; head [3035.826, 2965.054, 2720.109].
sender=user7@: base [1262.849, 1244.709, 1022.925]; head [436.131, 454.506, 425.176].
lorem: base [1653.277, 1846.908, 1470.066]; head [1278.421, 1354.182, 1225.597]; median change -22.67%.
1234: base [0.062, 0.050, 0.049]; head [0.053, 0.067, 0.051]; median change +6.00%. Both keyword cases pass the 10% regression limit.

Known limitation: changing the representative copy's id at the cursor's UTC instant can still repeat or skip that message at a page boundary.

Closes #108
Co-Authored-By: gpt-6.1-sol noreply@openai.com

Add schema v14 with a stored UTC date key, maintenance triggers, index and chunked writer migration. Use UTC ordering and bounds, keyset paging for keyword/filter search and triage rows, and ascending thread cursors. Render UTC dates at each surface's approved precision. Update documentation and migration, cursor, copy-collapse and display tests. Validation: pristine baseline 846 passed; final suite 864 passed, 8 skipped, 18 deselected. Lint, formatting, mypy, dependency audit and native image builds pass. Image benchmark: 210,000 rows, three alternating base/head runs in one container; all timings in milliseconds: none: base [1178.474, 1274.903, 992.969]; head [139.144, 133.224, 133.084]. account=a: base [3256.242, 3130.695, 2819.204]; head [3035.826, 2965.054, 2720.109]. sender=user7@: base [1262.849, 1244.709, 1022.925]; head [436.131, 454.506, 425.176]. lorem: base [1653.277, 1846.908, 1470.066]; head [1278.421, 1354.182, 1225.597]; median change -22.67%. 1234: base [0.062, 0.050, 0.049]; head [0.053, 0.067, 0.051]; median change +6.00%. Both keyword cases pass the 10% regression limit. Known limitation: changing the representative copy's id at the cursor's UTC instant can still repeat or skip that message at a page boundary. Closes #108 Co-Authored-By: gpt-6.1-sol <noreply@openai.com>
Add schema v14 with a stored UTC date key, maintenance triggers, index and chunked writer migration. Use UTC ordering and bounds, keyset paging for keyword/filter search and triage rows, and ascending thread cursors. Render UTC dates at each surface's approved precision. Update documentation and migration, cursor, copy-collapse and display tests.

Validation: pristine baseline 846 passed; final suite 864 passed, 8 skipped, 18 deselected. Lint, formatting, mypy, dependency audit and native image builds pass.

Image benchmark: 210,000 rows, three alternating base/head runs in one container; all timings in milliseconds:
none: base [1178.474, 1274.903, 992.969]; head [139.144, 133.224, 133.084].
account=a: base [3256.242, 3130.695, 2819.204]; head [3035.826, 2965.054, 2720.109].
sender=user7@: base [1262.849, 1244.709, 1022.925]; head [436.131, 454.506, 425.176].
lorem: base [1653.277, 1846.908, 1470.066]; head [1278.421, 1354.182, 1225.597]; median change -22.67%.
1234: base [0.062, 0.050, 0.049]; head [0.053, 0.067, 0.051]; median change +6.00%. Both keyword cases pass the 10% regression limit.

Known limitation: changing the representative copy's id at the cursor's UTC instant can still repeat or skip that message at a page boundary.

Closes #108
Co-Authored-By: gpt-6.1-sol <noreply@openai.com>
svc-svd-writer deleted branch feat/svd-dev-mail-mind-mcp-108-sort-filter-and-page-mail-sear-19b0fa26 2026-11-02 11:50:00 +00:00
Sign in to join this conversation.
No description provided.