• I need to reduce the size of my MySQL database on my hosting server as it is nearing its size limit.

    wp_mailpoet_scheduled_task_subscribers has over 2.2 million rows and is 205 MB. Some records in it were created back in 2017 and last updated in 2019. Many later rows have created_at as NULL but have an updated_at date of (say) 2022.

    What is this table and what rows can I delete? If it is related to MailPoet statistics then I do not need records going back 9 years… 🙂

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Thu P. a11n

    (@thup90)

    Hi @zimbo000, thanks for contacting us!

    I understand you need to reduce the size of your database for MailPoet tables. We have documented our recommendations on how to safely approach that here: https://kb.mailpoet.com/article/402-reducing-database-size-for-mailpoet-tables

    Feel free to get back to us in case you have any additional questions!

    Thread Starter zimbo000

    (@zimbo000)

    Thanks – is it documented anywhere what function each of those referenced tables does, e.g. I need to reduce wp_mailpoet_scheduled_task_subscribers (and others) in size but I don’t know what that table does, so am unsure how far back in time to delete.

    Plugin Support Thu P. a11n

    (@thup90)

    Hi @zimbo000,

    The wp_mailpoet_scheduled_task_subscribers table tracks which subscribers were sent each newsletter. A row is created per subscriber per send, and marked as processed once complete. After that, the data is only used by the Inactive Subscribers feature.

    So how far back to keep depends on that:

    • Not using Inactive Subscribers? You can safely delete all older processed data.
    • Using it? Keep data at least as far back as the inactivity period you’ve set in MailPoet → Settings → Advanced.

    The other large tables are mostly statistics — _statistics_opens, _statistics_clicks, _statistics_newsletters track email engagement, while _sending_queues stores email content for each send job, and _newsletter_links tracks links in your emails. You can apply the same date-based cleanup approach from the KB article to any of them.

    Just remember to back up first before making any changes on your database.

    Feel free to get back to us in case you have any additional questions!

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.