mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-18 08:56:41 +00:00
- Replace O(N) Prisma findMany with PostgreSQL SQL aggregate (jsonb_each_text + GROUP BY + MAX) for snapshot vector clock computation, avoiding loading all ops' clocks into Node.js memory - Add defensive regex filter (^[0-9]+$) for non-numeric JSONB values - Fix || to ?? for nullish coalescing in vector clock value lookups - Remove unreachable CONCURRENT check in compareVectorClocks - Remove unused VectorClockMetrics interface and measureVectorClock - Add 7 new unit tests for SQL aggregate path verification - Add 10 integration tests running actual SQL against PostgreSQL |
||
|---|---|---|
| .. | ||
| multi-client-sync.integration.spec.ts | ||
| snapshot-skip-optimization.integration.spec.ts | ||
| snapshot-vector-clock-sql.integration.spec.ts | ||