EverOS icon indicating copy to clipboard operation
EverOS copied to clipboard

cascade status: report duplicate primary keys in the derived index

Open gloryfromca opened this issue 1 month ago • 1 comments

After rows are keyed on (app_id, project_id, id), nothing in the storage layer can enforce the key on LanceDB (it has no constraints). A cheap health check in everos cascade status — count rows per table whose (app_id, project_id, id) repeats — would surface a bypassed write path immediately instead of as missing search results.

O(N) scan per table; fine for the sizes an embedded root holds. Deferred from the primary-key fix; a one-off script covers the upgrade check until then.

gloryfromca avatar Oct 09 '26 08:10 gloryfromca

I'd like to take this. Proposal: an opt-in cascade status --duplicates through OpsService -> DerivedIndex, O(N) per table and off the default path, with a pure counting helper and a CLI help test.

chuiwenwei avatar Nov 05 '26 09:11 chuiwenwei