Skip to content

[rid] Improve UpdateNotificationIdxsInCells by locking row in order - #1571

Merged
barroco merged 1 commit into
interuss:masterfrom
Orbitalize:better_lock
Jun 25, 2026
Merged

[rid] Improve UpdateNotificationIdxsInCells by locking row in order#1571
barroco merged 1 commit into
interuss:masterfrom
Orbitalize:better_lock

Conversation

@the-glu

@the-glu the-glu commented Jun 25, 2026

Copy link
Copy Markdown
Member

When trying to use the latest monitoring image version - which includes a tougher test on RID - Yugabyte is unable to pass the test.

This PR implements improve the UpdateNotificationIdxsInCells by first locking row ordered by PK, limiting deadlock. This improve performance and, combined with others fixes make it passing.

See #1570 as well.

Performance on Cockroach is hard to determine since we don't have load test on RID.

Using a modified version of RID that insert a subscription show no changes (single node, no latency):

image

@barroco

barroco commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Measurement with 60ms latency.

v0.23.0-rc1
Screenshot 2026-06-25 at 18 54 36

This PR
image

We can observe an improvement in terms performance (QPS and response times).

@barroco
barroco merged commit 7c54011 into interuss:master Jun 25, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants