sqlstats: speed up flush operation #123476
Labels
branch-release-24.1
Used to mark GA and release blockers and technical advisories for 24.1
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-observability
The sql stats flush currently uses a 3 part txn to update a row in the sql stats tables on flush:
INSERT -> SELECT FOR UDPATE -> UPDATE.
This makes the update row operation much slower, increasing the overfall flush time.
This txn be shortened to a single statement,
INSERT .. ON CONFLICT UPDATE ...
.Jira issue: CRDB-38367
Epic CRDB-37544
The text was updated successfully, but these errors were encountered: