Maintain every index on INSERT, UPDATE and DELETE
Implement the following agreed behavior through the shared engine interfaces.
Contract
| Field | Value |
|---|---|
| Specification | INDEX-006 |
| Module | index |
| Scope | Required implementation or delivery |
| Milestone | M2, due 2026-12-20 |
| Owner role | Shared — choose one MR owner |
| Implementation | Planned; scaffold only |
| Contract review | Team review required before implementation |
Interface
WriteCoordinator.apply(validatedMutation)
These are proposed C++ design contracts, not an already implemented API. Shared types and ownership define the intended module boundaries.
Dependencies
- INDEX-004: ALTER TABLE ADD INDEX and DROP INDEX
- DML-002: INSERT multiple rows
- DML-003: UPDATE constant assignments and actual changed-row count
- DML-004: DELETE filtered rows and delete all
Acceptance checklist
- All explicit and supporting indexes reflect each accepted row change
- No-op updates preserve index state; key changes erase old and insert new
- Rejected writes leave old rows and index probes identical
Verification
Completion rule
Link this spec and its GitLab issue in an MR into develop. Include relevant Linux evidence, obtain the other teammate’s review, merge, delete the feature branch, and close the issue. A page describes intended behavior; the GitLab issue and merged code determine completion.