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

Decouple write lock and read lock of PQ #16158

Open
kaisecheng opened this issue May 13, 2024 · 0 comments
Open

Decouple write lock and read lock of PQ #16158

kaisecheng opened this issue May 13, 2024 · 0 comments

Comments

@kaisecheng
Copy link
Contributor

Currently, every write and read action shares the same lock. Write action always write to the head page, while the read action could read from the tail or head page depending on the workers speed.

In case of reading the tail page, read action no need to wait the write side to release the lock to do read. Head page and tail page do not share anything and can work parallel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants