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

Cache index default length per table engine in DcaSchemaProvider #4860

Closed
wants to merge 1 commit into from

Conversation

bezin
Copy link
Contributor

@bezin bezin commented Jun 22, 2022

When in dev mode (without warming the cache first), I noticed that when I open the back end dashboard, the database is queried 224 times. 172 queries of these are SHOW VARIABLES LIKE 'innodb_large_prefix' and SELECT @@version (88 times each) making up for about 83 % of the total time spent on database queries. With this PR the index default length is cached per engine in DcaSchemaProvider, so these queries are only run once per engine.

@bytehead
Copy link
Member

Duplicate of #4853 🙈

@bezin bezin closed this Jun 22, 2022
@bezin bezin deleted the cache-values-per-engine branch June 22, 2022 17:13
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