SHOW TABLE STATUS FROM XXX_DB LIKE 'XXX_TABLE'
Posted: Wed 17 May 2006 08:40
We are in process to the final performance optimization a .NET project using the MySQLDirect.NET provider.
Most data retrieval is done with typed datasets and the "basic" table-mappings. We are using basically InnoDB on most tables, besides a couple of memory and temporary tables.
Anway scanning the mysql.log it results that after firing the "real" sql statement there is always a prepended with a statement like
"SHOW TABLE STATUS FROM xxx_DB LIKE 'xxx_tablename'" !
Anyway this is done for normal select, but also to selects on views and derivated "tables" within complex statements.
For what is this statement needed for? Anyway to get rid of it ? Anyway we are seeing sometime a big performance impact especially in high load situation where the stats are changing very frequently ...
regards
Carsten Harnisch
Most data retrieval is done with typed datasets and the "basic" table-mappings. We are using basically InnoDB on most tables, besides a couple of memory and temporary tables.
Anway scanning the mysql.log it results that after firing the "real" sql statement there is always a prepended with a statement like
"SHOW TABLE STATUS FROM xxx_DB LIKE 'xxx_tablename'" !
Anyway this is done for normal select, but also to selects on views and derivated "tables" within complex statements.
For what is this statement needed for? Anyway to get rid of it ? Anyway we are seeing sometime a big performance impact especially in high load situation where the stats are changing very frequently ...
regards
Carsten Harnisch