Thread:Project:Support desk/Limit number of page revisions/reply

Each page is not only saved in the database once, but for each revision the whole page is stored in the database once. That means if a page has for example ten revisions, alone this page is saved in the database ten times.

The script deleteOldRevisions.php is exactly what you are looking for. See Manual:deleteOldRevisions.php for details. If running the script PHP runs out of memory, you have to increase the memory limit in order to successfully run it.

Another idea would be to follow the advices on Manual:Reduce size of the database.