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

lock free DimensionDataTableManager #8102

Merged
merged 1 commit into from
Feb 1, 2022

Conversation

richardstartin
Copy link
Member

The dimension table level locking strategy employed in TableDataManager creates contention at the segment level, to the extent that adding a lookup to a query slows it down 20x in a user system, with over 75% of samples reported in waiting for the lock to perform a primary key lookup. This PR employs a copy on write approach to replace the reference table when segments are updated, so that the lookups can be done without locking.

Screenshot 2022-02-01 at 16 21 26

Copy link
Contributor

@Jackie-Jiang Jackie-Jiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Jackie-Jiang Jackie-Jiang merged commit 3c98a44 into apache:master Feb 1, 2022
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.

2 participants