MySQL Forums
Forum List  »  Performance

Re: Query slows down over time
Posted by: Sam Shah
Date: July 15, 2014 12:10PM

I did get a chance after a long time to run some statistics on the database.

Here are the results:

mysql> SELECT ENGINE,
-> ROUND(SUM(data_length) /1024/1024, 1) AS "Data MB",
-> ROUND(SUM(index_length)/1024/1024, 1) AS "Index MB",
-> ROUND(SUM(data_length + index_length)/1024/1024, 1) AS "Total MB",
-> COUNT(*) "Num Tables"
-> FROM INFORMATION_SCHEMA.TABLES
-> WHERE table_schema not in ("information_schema", "performance_schema")
-> GROUP BY ENGINE;
+--------+---------+----------+----------+------------+
| ENGINE | Data MB | Index MB | Total MB | Num Tables |
+--------+---------+----------+----------+------------+
| InnoDB | 79122.8 | 695.7 | 79818.6 | 14 |
| MyISAM | 800.8 | 33.2 | 834.0 | 30 |
+--------+---------+----------+----------+------------+
2 rows in set (2.09 sec)

SHOW GLOBAL STATUS LIKE 'Innodb_buffer_pool_pages_data'; -- IBPDataPages 9593
SHOW GLOBAL STATUS LIKE 'Innodb_buffer_pool_pages_total'; -- IBPTotalPages 9600
SHOW GLOBAL STATUS LIKE 'Innodb_page_size'; -- IPS 16384

Does this help?

Options: ReplyQuote


Subject
Views
Written By
Posted
2343
May 28, 2014 09:35AM
1187
May 28, 2014 12:45PM
1035
May 28, 2014 01:24PM
1121
May 28, 2014 04:57PM
1171
May 28, 2014 05:46PM
1113
May 28, 2014 07:23PM
3702
May 29, 2014 05:38AM
1441
May 29, 2014 09:49AM
1283
May 29, 2014 03:12PM
Re: Query slows down over time
1381
July 15, 2014 12:10PM
1130
July 15, 2014 12:33PM
1044
July 16, 2014 11:19AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.