I have identified the "smoking gun" causing the high CPU usage on my server (refer to the 40%+ spikes in the hosting panel).
The SP Page Builder Articles addon on my homepage generates the following unoptimized SQL query:
SELECT a.*, b.alias AS category_alias, b.title AS category
FROM wnm6h_content a
LEFT JOIN wnm6h_categories b ON a.catid = b.id
WHERE (b.extension='com_content' AND a.state='1' AND a.catid IN (...багато ID з дублікатами...))
AND (a.publish_up IS NULL OR a.publish_up='0000-00-00 00:00:00' OR a.publish_up<=NOW())
AND (a.publish_down IS NULL OR a.publish_down='0000-00-00 00:00:00' OR a.publish_down>=NOW())
AND a.access IN (1,5)
ORDER BY a.publish_up DESC, a.created DESC
LIMIT 15261;
Why this query is killing my server:
Critical Limit Issue: The query has a LIMIT 15261. Even though the homepage only displays a few news items, the addon is forcing the database to process and sort over 15,000 records.
Resource Overload: It uses SELECT a.*, which fetches all columns (including full article text) for 15,000+ rows. This is extremely heavy for a simple news list.
Server Impact: Every time a user (or a bot) visits the page, this query triggers, leading to the CPU spikes I previously shared.
Please investigate why the addon is generating such a massive LIMIT and how to fix this behavior in Joomla 6. We need this query to fetch only the required number of articles (e.g., 10 or 20) to keep the server stable.