Jump to content

Massive database


Recommended Posts

I was wondering if anyone else also have issues with a massive tblemails.

At this time mine sits at 20.6GB and about 845,000 rows.

I honestly wish I could just keep mails for the last 30 days, but that will not work as we sometime have to give clients proof that we sent them a message 7 months ago.

If you have a similar issue and have fixed it, please share.

Link to comment
Share on other sites

I suspect that you are either using a custom mail template design with lots of CSS and/or that you are including images in your mails via base64.

One way to reduce the table size would be to remove the unnecessary elements from tblemails via a script. DOMDocument is pretty good for this. 

The downside of this is that when your customers look at the old emails via WHMCS, the mails will not look the same as they did in the original (style missing, pictures missing - depends on what get removed). Therefore, I recommend to do this primarily for old emails and to do it periodically, so that only the emails older than X months are revised.

Edited by string
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