After creating and inserting data into a table, do...
# questions-and-troubleshooting
p
After creating and inserting data into a table, does the
information_schema.tables
field
TABLE_ROWS
only get updated when the background statistics job has completed?
Does running an
ANALYZE TABLE table_name
cause an update of that info in the information_schema?
r
No, the
analyze table
updates the
_statistics_
database, which is used for cost based optimization.
p
Any idea when the TABLE_ROWS field does get updated? It definitely does, eventually, but not immediately
r
This is typically done every 5 minutes, by the background process