Quantcast
Channel: Installing and upgrading help
Viewing all articles
Browse latest Browse all 46829

Re: Long loading time after saving and activity with course completion enabled in course

$
0
0
by Ken Task.  

.... haven't checked ... then it's time.
Test server will not have same size tables as production ... not used as much ... production server tables should be larger - and might be in more need of optimization as well.

If you have MySQL/MariaDB here's a query - run as superuser:

select table_schema as database_name,
       table_name,
       round( (data_length + index_length) / 1024 / 1024, 2)  as total_size,
       round( (data_length) / 1024 / 1024, 2)  as data_size,
       round( (index_length) / 1024 / 1024, 2)  as index_size
from information_schema.tables
where table_schema not in ('information_schema', 'mysql',
                           'performance_schema' ,'sys')
      and table_type = 'BASE TABLE'
      -- and table_schema = 'your database name'
order by total_size desc
limit 10

and, if you have MySQL/MariaDB, suggest installing MySQLtuner.pl - a pearl script.   Run with super user creds, it will show if there are tables which need optimizing (fragmented) and show you a mysql client command to do so and recommend other settings that might need tweaking.

'SoS', Ken


Viewing all articles
Browse latest Browse all 46829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>