Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Update documentation for Wait-on-Conflict concurrency control #13894

Closed
robertsami opened this issue Sep 6, 2022 · 2 comments
Closed
Assignees
Labels
area/documentation Documentation needed temp/docs-migration TEMPORARY USE for migrating docs tickets to Jira

Comments

@robertsami
Copy link
Contributor

Update here: https://docs.yugabyte.com/preview/explore/transactions/distributed-transactions-ysql/#concurrency-control

And add a new page documenting usage, behavior, and best practices

@robertsami robertsami self-assigned this Sep 6, 2022
pkj415 added a commit to pkj415/yugabyte-db that referenced this issue Dec 20, 2022
…llaneous related changes

Apart from adding a docs page for "Concurrency control" in the architecture section,
a "Transaction Priorities" page is also added.

Other miscellaneous changes are done since we are moving away from the "Optimistic"
and "Pessimistic" terminology which have been inaccurately used historically in
our docs pages and internally for describing YugabteDB's concurrency control
mechanism. For example, optimistic concurrency control
(https://people.eecs.berkeley.edu/~fox/summaries/database/optimistic_concurrency.html)
involves checking conflicts lazily are commit time, which is not the case with
YugabyteDB's default concurrency control method (which we used to inaccurately
call "Optimistic"). And we used to the Postgres-style of concurrency control, which
involves waiting, as pessimistic. After much deliberation, our concurrency control
policies are are being re-mapped to the following names in our docs pages-

1. What we used to call "Optimistic" -> Fail-on-Conflict
2. What we used to call "Pessimistic" -> Wait-on-Conflict

Also, the docs/content/preview/explore/transactions/explicit-locking.md page
is removed, because it has a lot of inaccurate information and was not even needed.
The docs/content/preview/explore/transactions/explicit-locking.md page instead
has all the neccesary information.
@rthallamko3 rthallamko3 added the area/documentation Documentation needed label Dec 29, 2022
@pkj415 pkj415 changed the title [docs] Update documentation for pessimistic locking [docs] Update documentation for Wait-on-Conflict concurrency control Jan 6, 2023
pkj415 added a commit that referenced this issue Jan 15, 2023
… related changes (#14839)

Apart from adding a docs page for "Concurrency control" in the architecture section,
a "Transaction Priorities" page is also added.

Other miscellaneous changes are done to move away from the terms "Optimistic"
and "Pessimistic" which have been inaccurately used historically in
our docs pages and internally for describing YugabteDB's concurrency control
mechanisms. For example, optimistic concurrency control
(https://people.eecs.berkeley.edu/~fox/summaries/database/optimistic_concurrency.html)
involves checking conflicts lazily are commit time, which is not the case with
YugabyteDB's default concurrency control method (which we used to inaccurately
call "Optimistic"). And we used to call the Postgres-style of concurrency control, which
involves transactions waiting on each other on conflicts, as "pessimistic". After much deliberation,
our concurrency control policies are are being renamed to the following in our docs pages -

1. What we used to call "Optimistic" -> Fail-on-Conflict
2. What we used to call "Pessimistic" -> Wait-on-Conflict

Also, the docs/content/preview/explore/transactions/explicit-locking.md page
is removed, because it has a lot of inaccurate information and was not even needed.
The docs/content/preview/explore/transactions/explicit-locking.md page instead
has all the necessary information.
@robertsami
Copy link
Contributor Author

need to document deadlock detection behavior

@robertsami robertsami reopened this Feb 1, 2023
@polarweasel polarweasel added the temp/docs-migration TEMPORARY USE for migrating docs tickets to Jira label Feb 4, 2023
@robertsami
Copy link
Contributor Author

robertsami commented Feb 22, 2023

closing in favor of #16203

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Documentation needed temp/docs-migration TEMPORARY USE for migrating docs tickets to Jira
Projects
Status: Done
Development

No branches or pull requests

3 participants