I have a SQL statement that does this saved as a snippet in MySQL Workbench, naturally. Looks like this:
SELECT table_name , table_rows, data_length,The results are interesting. They show that most of the data in the moodle db comes from questions, files, the log file and more details around questions and grades. It is no surprise considering the moodle i am looking at is the one that hosts our AccelerateU service, which provides credit bearing courses for NYS public high school students.
ROUND(((data_length+index_length)/1024/1024),2) AS "Size_in_MB"
FROM information_schema.tables
WHERE table_schema = "dbname"
ORDER BY Size_in_MB desc
There are lots of 3rd party courses, from vendors that have lots of quizzes in them and lots of quiz questions and answers. consequently, there is lots of grade data for the quiz questions.
I will look at pruning a little from a couple of the tables using snippets like this.

No comments:
Post a Comment