Skip to content

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 when the information_schema is loaded with multiple schemas and tables.

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?

@coveralls
Copy link

coveralls commented Dec 27, 2025

Coverage Status

coverage: 54.436% (+0.004%) from 54.432%
when pulling 2636304 on Deepak-dash007:master
into 257fa84 on golang-migrate:master.

@Deepak-dash007 Deepak-dash007 marked this pull request as ready for review December 27, 2025 10:19
@Deepak-dash007 Deepak-dash007 requested a review from dhui December 27, 2025 10:20
@Deepak-dash007
Copy link
Author

@dhui I have rebased the Pull Request, Can you review again?

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.

3 participants