Jump to content

How to ruduce whmcs database size


Shivansh

Recommended Posts

Clear logs (email, activity, module, license etc.).

I've seen WHMCS installations with log tables storing over 30 GB of useless information. Not only it's a waste of disk space but it also hits the performance of your CPU(s). Reindexing A_I on every new INSERT on a table that stores millions of records is heavy and can even slow your WHMCS.

Edited by Kian
Link to comment
Share on other sites

you could trim the logs stored in the database if they are large...

https://docs.whmcs.com/Maximising_Performance

Quote

Large Log Tables - WHMCS maintains a number of logs for record-keeping and auditing purposes which are stored in a table within the MySQL database. These logs can become very large, which might cause your installation to slow whilst trying to manipulate a large table.

Navigate to Utilities > System > Database Status and make note of the following tables sizes:

  • tblactivitylog
  • tbladminlog
  • tblgatewaylog
  • tblmodulelog
  • tblemaillog
  • tblticketmaillog
  • tblwhoislog

If any of these tables are particularly large (more than several hundred MB) consider performing some system maintenance to prune these logs.

The tblmodulelog table can be emptied via the Utilities > Logs > Module Log page.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated