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

Contradiction about transactions locking at collection or document level #428

Open
Simran-B opened this issue Jan 15, 2024 · 1 comment
Open

Comments

@Simran-B
Copy link
Contributor

From @ile via community slack:

The RocksDB storage engine uses document-level locks and therefore will not have a deadlock problem on collection level.

https://docs.arangodb.com/3.11/develop/transactions/locking-and-isolation/

Transactions acquire collection locks for write operations in RocksDB. It is therefore advisable to keep the transactions as short as possible.

https://docs.arangodb.com/3.11/develop/transactions/stream-transactions/

@Simran-B
Copy link
Contributor Author

The second page is specifically about Stream Transactions whereas the first page was written when there were only JavaScript Transactions, so it may not apply to Stream Transactions. This needs to be clarified, ideally going into some details about collection-level locking, e.g. for what operations they are used and why (indexes, schema validation?)

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

No branches or pull requests

1 participant