• Home
  • Showcase
    • Newspaper Showcase
    • Newsmag Showcase
  • Support
    • Newspaper Forum
    • Newsmag Forum
    • Blog
    • Documentation
      • Newspaper Documentation
      • Newsmag Documentation
      • The Theme API
    • What’s New
      • Newspaper
        • What’s New in v 11.5
        • What’s New in v 11.4.3
        • What’s New in v 11.4
        • What’s New in v 11.2
        • What’s New in v 11
        • What’s New in v 10.4
        • What’s New in v 10.3.7
        • What’s New in v 10.3.2
        • What’s New in v 10.3
        • What’s New in v 10
      • Changelog
        • Newspaper
        • Newsmag
        • tagDiv Opt-In Builder
  • Services
    • Web Development Services
    • Web Solutions & CMS Development
    • Web design & Front-end Development
    • E-Commerce Development Services
    • Page Speed Optimization Services
  • Buy Newspaper
Search
tagDiv support
  • Become a member
  • Sign in
  • Home
  • Showcase
    • Newspaper Showcase
    • Newsmag Showcase
  • Support
    • Newspaper Forum
    • Newsmag Forum
    • Blog
    • Documentation
      • Newspaper Documentation
      • Newsmag Documentation
      • The Theme API
    • What’s New
      • Newspaper
        • What’s New in v 11.5
        • What’s New in v 11.4.3
        • What’s New in v 11.4
        • What’s New in v 11.2
        • What’s New in v 11
        • What’s New in v 10.4
        • What’s New in v 10.3.7
        • What’s New in v 10.3.2
        • What’s New in v 10.3
        • What’s New in v 10
      • Changelog
        • Newspaper
        • Newsmag
        • tagDiv Opt-In Builder
  • Services
    • Web Development Services
    • Web Solutions & CMS Development
    • Web design & Front-end Development
    • E-Commerce Development Services
    • Page Speed Optimization Services
  • Buy Newspaper

This forum is now closed to new posts

All existing content remains available to browse and search. For support, please email us at contact@tagdiv.com Our team is happy to help as soon as possible.

Home Newspaper Database errors and connection issues with large (2,9GB) database

Database errors and connection issues with large (2,9GB) database

Posted in: Newspaper
Post count: 77
regio-online
#531245
Jun 4, 2025 at 6:30 pm

Hi there at tagdiv,

I am running into some issues of witch I can’t optain if it is theme related or not, but maybe you can help or give a hint.

My newssite is running for over 8 years now with Newspaper and all postst are kept. My wp-postmetatable is very large (about 2,6GB) witch seems to give a lot of issues with stability of the database.

I recently moved from an unmaneged VPS (16 vCpu cores and 60GB RAM) to a shared hosting option with 24vCpu cores and 16GB RAM. I took over the site end 2024 and the previous owner helped with support on the VPS. Because of less time available and not being able to update Plesk to latest version, he stopped with suporting me on the VPS.

For years we used WP Rocket as caching plug-in witch almost never gave issues. Before the move a continues amount of databaseconnection errors was arising. The VPS had to be rebooted every few days because the mariadb service was killed.

Using a cache plugin (any cache plugin) gives Fatal database conetion errors or ‘Post can not be updated’. Tried Varnish cache without any other caching but that did not renew/cleared when I posted a new post. Also tried Redis Object Cache, witch worked at first, but then posting an post kept hanging and Redis didn’t clear anymore.

Because everytime I had to remove caching plugins via FTP to restore my site, I took a closer look at my database.

As far as I know I am only using cloud templates and flex blocks. But the fact that my postmetatable is 2.6GB big concerns me. Maybe you can help me out explaining if td-composer creates a lot of extra row in that table. At current time there are 1071550 totall rows in the postmeta table. I see a lot of the following rows
_vc_post_setting
_edit_lock
_edit_last
slide_template
post_views_count

and this repeats itself many times, but there are also references to other plugins like RankMath, WP Media Folder and FS Poster. It is tricky to get a clear picture of what is eating space unnessessary.

A hint of help would be much appriciated!

Post count: 35449
Calin
#531255
Jun 5, 2025 at 8:40 am

Hello,

There are a few theme settings that can increase database and resources consumption.
The largest data table the theme keeps in the database is the theme panel and the backups for it. From what I remember these are called td_010 and td_010_settings. What you could do is to adjust the number of backups, by default there are 5 of them. You could set it to 1 backup here -> https://prnt.sc/qZBjZo2p3bVu Other than this, it will require manually cleaning the rest of the autoloaded options.
Check if you are using ajax pagination, mega menu many blocks (the theme is making a query for each block in part and if you are using mega menu each element as mega menu makes queries, also ajax pagination make quires to database), also make sure that you use lazyload for images.
Also, check if you have enabled the post view count per articles, this is using ajax and request extra resources, also all filters base post view count consume extra resources (all popular filters).
In addition, it’s a good idea to identify what’s consuming your server resources. Tools like Query Monitor and Code Profiler can help you pinpoint high CPU or resource usage caused by plugins, themes, or database queries.

What I will recommend is to create a full backup for your website, in special for database and after that to try to clear the database; for this you can try this guide – https://hostadvice.com/how-to/website-builders/wordpress/how-to-optimize-wordpress-database-using-wp-sweep/
I hope this will help you!
Thank you!

Post count: 77
regio-online
#531290
Jun 5, 2025 at 8:41 pm

Thank you so much Calin. This is realy helpfull in tagling this issue, although I don’t think Newspaper is the real culpritt here, but it is an assembly of plugin data combined with theme data that makes the database grow so large. That said, some plugins you just can’t do without as a newssite, such as SEO and auto posting to social media.

Maybe I could consider a renewed site with a fresh look and less blocks. I already disabled Adsense, because it gave lots of layout shifts and was a bit overwhelming for readers. This way I can focus on the news and my readers too.

Thanks again for your insights Calin and pointing me in the right direction (again I must say).

Post count: 77
regio-online
#531316
Jun 6, 2025 at 12:04 pm

As you suggested i used Query Monitor and Code Profiler. I would like to share the image of the last because it shows that td-composer is by far the largest in use.

Please see Code Profiler image

Maybe you can give me some insights in this?

Thanks Calin!

Post count: 77
regio-online
#531317
Jun 6, 2025 at 12:05 pm

https://prnt.sc/UGOnhRMO1Y0l

It seems the img code did not work.

Post count: 35449
Calin
#531322
Jun 6, 2025 at 12:28 pm

Hi,
Ok, so the first step is made, the plugin that consume the most resources is tagDiv Composer, can you please check in Query Monitor for example on homepage what are the elements that consume more resources and are from the composer plugin? Can you provide a link to your website?
Thank you!

Post count: 77
regio-online
#531331
Jun 6, 2025 at 3:21 pm

Hi Calin,

Thanks for the response. The website is https://regioonline.nl. It uses most cloud templates (but not everything), and has about 70 subpages. 62 of them have about the same layout as the homepage.

Query Monitor shows at Queries per component for td-composer

Plugin: td-composer 10 (SELECT) – 1 (SHOW) – 0 (UPDATE) – 3 (INSERT) – 0,0061 (TIME)

That seems not to be a lot. The plugin WP Media Folder however has 457 (SELECT) queries.

If you need more info or access please let me know

Post count: 35449
Calin
#531404
Jun 10, 2025 at 9:22 am

Hi,
I checked the site a little and it doesn’t seem to be using excessive blocks or many ajax options that make a lot of requests to the database, I think that’s why the few results from the Query Monitor plugin are there, but if the WP Media Folder plugin indicates that many queries, you need to see if these are all the site queries made by the plugin or just from this page, if it’s from the site, then it’s ok, but if they are from the page, then something is wrong. If you want, we can investigate further, for this you will need to have a complete backup of the site and the database and only then contact us by email at contact@tagdiv.com where you provide us with wp-admin access to the site and include the link to this topic so we can identify you faster.
Thank you!

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.
regio-online
Support Hours (GMT+2)

Monday - Friday:
8:00 AM - 17:00 PM

Documentation
  • Newspaper
  • Newsmag
Facebook Instagram Twitter Youtube
Welcome to the Community! This is our main Support Center and, also the place where you can make new friends, people just as passionate about websites as you are. Don’t hesitate to ask for help as we are here for you. Thank you for buying our products!
Contact us: contact@tagdiv.com
  • Home
  • Blog
  • Forums
  • About us
  • Support policy
  • Privacy Policy
© tagdiv.com | Proudly made with by tagDiv. All rights reserved
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-advertisement1 yearThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Advertisement".
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
CookieDurationDescription
_ga2 yearsThis cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assign a randomly generated number to identify unique visitors.
_gat_gtag_UA_43963494_11 minuteThis cookie is set by Google and is used to distinguish users.
_gid1 dayThis cookie is installed by Google Analytics. The cookie is used to store information of how visitors use a website and helps in creating an analytics report of how the website is doing. The data collected including the number visitors, the source where they have come from, and the pages visted in an anonymous form.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
CookieDurationDescription
IDE1 year 24 daysUsed by Google DoubleClick and stores information about how the user uses the website and any other advertisement before visiting the website. This is used to present users with ads that are relevant to them according to the user profile.
test_cookie15 minutesThis cookie is set by doubleclick.net. The purpose of the cookie is to determine if the user's browser supports cookies.
VISITOR_INFO1_LIVE5 months 27 daysThis cookie is set by Youtube. Used to track the information of the embedded YouTube videos on a website.
YSCsessionThis cookies is set by Youtube and is used to track the views of embedded videos.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
CookieDurationDescription
CONSENT16 years 5 months 26 days 13 hours 25 minutesNo description
yt-remote-connected-devicesneverThis cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video.
yt-remote-device-idneverThis cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video.
SAVE & ACCEPT
Powered by CookieYes Logo