Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Database Structure view is very slow as of version 4 #13711
Using phpMyAdmin 3, the database Structure view loads quickly, 0.5 to 1 seconds, regardless of size.
I've learned to avoid this view at all costs but it's useful for an overview of tables sizes. I'd like to not wait that long to get that view.
Steps to reproduce
I tried this request in my profiling machine (with Zend Server) and these are the general results:
Some SQL queries are executed multiple times:
Some notable function calls:
Yes, the current master is a lot faster.
Still around 4x slower than phpMyAdmin 3 was but an impressive result.
The file_exists has to be there until we fully migrate to twig (it's currently used to determine whether to use twig or old purely PHP based templates). But it should be gone for final release.
There is clearly more room for improvements here, I've tried to simplify the API to remove features we seem to never use in #13717
referenced this issue
Oct 2, 2017
I discovered another thing.
Is there a way to enable this counting optimization for InnoDB tables in newer versions as well?
In general, it worked. But loading a lot more twig can cause new issues.
Some mentions from the profiler results: