docs
docs copied to clipboard
improve SELECT FOR UPDATE
Tobias Grieger (tbg) commented:
Issue Description
This page could be improved to better educate users on two salient points:
ON UPDATElocks are exclusive locks (see here), so scanning rowsFOR UPDATEalso blocks reads to those rows that don't specifyFOR UPDATE.- Predicates aren't always pushed down to the KV layer, so more locks may be taken out than expected. Ultimately, it matters which KV rows are scanned
FOR UPDATE, not which ones are then matched by predicates in the SQL query.
Both are illustrated in this comment.
Suggested Resolution
Docs update :-)
Jira Issue: DOC-3276