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

Fix: ensureVersionTable & ensureLockTable perfomance. #1058

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Deepak-dash007
Copy link

@Deepak-dash007 Deepak-dash007 commented Mar 16, 2024

Issue : #1052

ensureLockTable & ensureLockTable runs select query on information_schema to check weather tables exist.
such query are expensive. It takes around ~15Sec

We can avoid that and make the table creation query Idempotent. Which reduces the latency to < 1Sec

removing select query on information_schema tables. Such query are expensive ones.
@Deepak-dash007 Deepak-dash007 marked this pull request as draft March 16, 2024 10:58
Copy link
Member

@dhui dhui left a comment

Choose a reason for hiding this comment

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

@Deepak-dash007 this change is promising!
Could you rebase and see if tests pass?

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.

None yet

2 participants