log.go
22.8 KB
-
refactor(log): simplify ClickHouse log deletion and add unit tests · f84b7d59
Replace the per-batch ClickHouse mutation loop with a single ALTER TABLE ... DELETE, since ClickHouse DELETE is a heavy mutation that rewrites data parts and per-batch mutations are pathologically slow. Add deterministic unit tests covering ClickHouse DSN handling, main-database rejection, TTL DDL generation, log ordering, request_id backfill, and display id assignment.
CaIon committed