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

Backport schema reload performance fix #85

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

arthurschreiber
Copy link
Member

Description

This backports a schema reload performance fix created by @pudiva. This fix has already landed in v16 upstream. The reason I'm backporting this is that without this fix, CI for github/github is pretty slow when databases need to be rebuild.

Related Issue(s)

TODO

Currently, obtaining table sizes from mysql involves joining
`information_schema.tables`, which can be very costly on systems with a
large number of tables.

My tests on a system with 13k tables took around 20s without this patch,
and only 4s with it.

Instead of synchronously recalculating table size stats after every DDL,
let them be outdated until the periodic schema reload fixes it.

Signed-off-by: pupu <[email protected]>

Signed-off-by: pupu <[email protected]>
@arthurschreiber arthurschreiber marked this pull request as ready for review October 30, 2023 08:21
@arthurschreiber arthurschreiber merged commit da6a40c into release-15.0-github Oct 30, 2023
214 of 229 checks passed
@arthurschreiber arthurschreiber deleted the arthur/backport-tablesize-perf branch October 30, 2023 08:21
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