Files
grafana/pkg/storage/unified/sql/testdata/postgres--resource_update_rv-single path.sql
Georges Chaudy 3589baac68 Unistore: Batch write events (#101381)
* Batch write events

* Improve instrumentation

* Measure batch phases

* Detect lock contention

* remove the execBatch goroutine

* removing tracing prefix

* detect context cancel

* batch channel map
2025-03-13 10:24:12 +02:00

11 lines
208 B
SQL
Executable File

UPDATE "resource"
SET "resource_version" = (
CASE
WHEN "guid" = 'guid1' THEN CAST(123 AS BIGINT)
WHEN "guid" = 'guid2' THEN CAST(456 AS BIGINT)
END
)
WHERE "guid" IN (
'guid1', 'guid2'
);