Mini Fronto Page many articles

  • Posted by TemplatePlazza (5358) Offline
Hi Marco, 
I tried installing the default Joomla Articles module (mod_articles), and I found that even the joomla built-in module takes a long time to render. See image below



So, I assume this is more likely a Joomla issue rather than a problem with the module itself.

Minifrontpage Pro is built based on the standard Joomla mod_articles, so both use the standard Joomla model ContentModelArticles. After doing some research, I found that ContentModelArticles must build a large query against the #__content table on every request. While the LIMIT parameter restricts the final result, MySQL still has to scan and sort through many rows (based on state, publish_up/down, language, access level, featured status, and ordering) before it can apply the LIMIT.

At this point, the only practical solution is to enable caching. If you prefer not to use cache, you could try increasing the server RAM/resources
Another option is to enable caching and then clear the cache every time you post an article, you can use a plugin like Cache Cleaner to automate that.

However, for a website of this size, I think enabling Joomla’s cache is highly recommended and almost essential.
4 days 5 hours ago - 4 days 4 hours ago #19 by TemplatePlazza
Attachments:
Last edit: 4 days 4 hours ago by TemplatePlazza.

Please Log in or Create an account to join the conversation.

I investigated together with Gemini, I share our chat, see what he said, really many problems in the native search of joomla, which you use, the sql query in the database is fast, can this help you?

gemini.google.com/share/f8c416df57fa
4 days 3 hours ago #20 by marcos

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5358) Offline
Yes! Indexing the database was one of the ideas that came to my mind to improve, but I couldn’t implement it earlier because it would be too hacky and customized. However, for a website as large as yours, such a special treatment does make sense.

Still, it’s quite surprising that even after you performed the indexing, it didn’t work.

Using a direct query as suggested could indeed be a possible solution, but it’s quite risky because Joomla’s ArticlesModel handles a lot of complex logic (multi-level ACL, user groups, multilingual fallback, tags, etc )
Without using the model, you’d have to manually replicate all of that, and missing any part could lead to unintended results, such as displaying restricted articles or breaking certain features.

That said, if your case doesn’t require access checks, multilingual handling, and other advanced logic, creating a custom version of MiniFrontpage Pro could indeed be a viable solution.
3 days 20 hours ago - 3 days 20 hours ago #21 by TemplatePlazza
Last edit: 3 days 20 hours ago by TemplatePlazza.

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5358) Offline
Marco can you please re-enable the temporary admin login? I'd like to test using custom query instead of using the joomla article model
3 days 18 hours ago #22 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum