Some checks failed
QA Gate (P0/P1) / Test affected app (pull_request) Has been cancelled
Redis prefetch:complete:* 21g TTL'li → "% tam çekilmiş"i güvenilir ölçemiyorduk. Migration 0034: vehicles'a fully_fetched (bool, default false) + fully_fetched_at (ts) + index. incrementCompleted chain parça ile bitince kalıcı flag'i set eder (Redis marker'a EK — operasyonel skip mantığı değişmedi). fully_fetched_at her re-drill tamamlanışında güncellenir (son-doğrulanma). Idempotent SQL. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
10 lines
674 B
SQL
10 lines
674 B
SQL
-- Kalıcı tamlık işareti: prefetch zinciri parça ile bittiğinde true olur
|
||
-- (PrefetchWorkerService.incrementCompleted). Redis prefetch:complete:* (21g TTL,
|
||
-- operasyonel skip mantığı) yerine SÜRESİZ ölçüm — "% tam çekilmiş" güvenilir
|
||
-- takibi. _at son doğrulanma zamanını tutar. IF NOT EXISTS → idempotent.
|
||
ALTER TABLE "vehicles" ADD COLUMN IF NOT EXISTS "fully_fetched" boolean DEFAULT false NOT NULL;
|
||
--> statement-breakpoint
|
||
ALTER TABLE "vehicles" ADD COLUMN IF NOT EXISTS "fully_fetched_at" timestamp with time zone;
|
||
--> statement-breakpoint
|
||
CREATE INDEX IF NOT EXISTS "vehicles_fully_fetched_idx" ON "vehicles" USING btree ("fully_fetched");
|