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

Add collection-level lock #7

Merged
merged 6 commits into from
Jun 24, 2021
Merged

Add collection-level lock #7

merged 6 commits into from
Jun 24, 2021

Conversation

kelindar
Copy link
Owner

This PR removes the column level lock and replaces everything with a simple global sync.RWMutex. While this sounds scary, our transactions are actually running completely in parallel and only need to acquire read lock. The write lock needs to be acquired only during a transaction commit, and we can push all of the heavy work out, prepare nice updates and quickly commit everything.

@kelindar kelindar merged commit b1680b8 into main Jun 24, 2021
@kelindar kelindar deleted the lock branch June 24, 2021 05:38
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.

1 participant