[YSQL] Pick global limit as soon as the query arrives at the YSQL backend process. #21961
Open
1 task done
Labels
area/ysql
Yugabyte SQL (YSQL)
kind/enhancement
This is an enhancement of an existing feature
priority/medium
Medium priority issue
Jira Link: DB-10877
Description
Motivation
YB uses the notion of a global limit to ensure that it does not miss any recent updates that may have a higher commit ts because of the clock skew.
YSQL raises a read restart error as long as it sees any updates within its read ts and global limit.
There are a few ways to reduce the chance of raising a read restart.
Downside: Longer wait times.
Point of this ticket.
Not the point of this ticket. Best discussed separately.
Example: local_limit.
Proposal
Look into doing this even before the control goes to the connection manager.Out of scope at the moment.Add Basic Tests
As part of this task, we also want to ensure that we do not increase global time unnecessarily.
Issue Type
kind/enhancement
Warning: Please confirm that this issue does not contain any sensitive information
The text was updated successfully, but these errors were encountered: