How to Optimize Joomla with more 100,000 Content Items?
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
-
- Joomla! Intern
- Posts: 83
- Joined: Wed Jul 09, 2008 8:40 am
How to Optimize Joomla with more 100,000 Content Items?
I love Joomla, and I have many websites with Joomla. Now, I have 2 two websites with more 100,000 Content Items.
My websites has been optimized with JCH, JotCache. But I have many members log in, and add more 100 content items every day.
When the member logs in, the page has no cache, and is very slow (Extremely long TTFB).
I analyze the process, and JAccess::preloadPermissions() had more 100.000 loops and called more 100.000 JDatabaseDriverMysqli->fetchObject.
This may be the cause of slow and overloaded websites.
I have read these:
- https://github.com/joomla/joomla-cms/issues/13542
- https://github.com/joomla/joomla-cms/pull/6728
- https://github.com/joomla/joomla-cms/pull/14268
How to Optimize my website?
Should I switch to Drupal or Typo3, October for website with more 100,000 Content Items, multiple users login?
Thank you.
122.922 rows in table #__content 123.763 rows in table #__assets debug in single article (with url ?tmpl=component)
Time: 3048.18 ms / 3907.22 ms Memory: 74.095 MB / 85.50 MB Application: After Access::preloadPermissions (com_content)
Add $count in file Access.php And var_dump result: 123.594 loop
My websites has been optimized with JCH, JotCache. But I have many members log in, and add more 100 content items every day.
When the member logs in, the page has no cache, and is very slow (Extremely long TTFB).
I analyze the process, and JAccess::preloadPermissions() had more 100.000 loops and called more 100.000 JDatabaseDriverMysqli->fetchObject.
This may be the cause of slow and overloaded websites.
I have read these:
- https://github.com/joomla/joomla-cms/issues/13542
- https://github.com/joomla/joomla-cms/pull/6728
- https://github.com/joomla/joomla-cms/pull/14268
How to Optimize my website?
Should I switch to Drupal or Typo3, October for website with more 100,000 Content Items, multiple users login?
Thank you.
122.922 rows in table #__content 123.763 rows in table #__assets debug in single article (with url ?tmpl=component)
Time: 3048.18 ms / 3907.22 ms Memory: 74.095 MB / 85.50 MB Application: After Access::preloadPermissions (com_content)
Add $count in file Access.php And var_dump result: 123.594 loop
You do not have the required permissions to view the files attached to this post.
Last edited by vnnguyendung on Tue Dec 25, 2018 9:42 am, edited 5 times in total.
-
- Joomla! Intern
- Posts: 83
- Joined: Wed Jul 09, 2008 8:40 am
Re: How to Optimize Joomla with more 100,000 Content Items
JAccess::preloadPermissions() called 124.719 JDatabaseDriverMysqli->fetchObject.
Debug in category blog
And var_dump result in category
Debug in category blog
And var_dump result in category
You do not have the required permissions to view the files attached to this post.
- Per Yngve Berg
- Joomla! Master
- Posts: 30937
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: How to Optimize Joomla with more 100,000 Content Items?
Could the new JSON data type in Mysql 8.0 be a solution?
https://dev.mysql.com/doc/refman/8.0/en/json.html
https://dev.mysql.com/doc/refman/8.0/en/json.html
-
- Joomla! Intern
- Posts: 83
- Joined: Wed Jul 09, 2008 8:40 am
Re: How to Optimize Joomla with more 100,000 Content Items?
I continue testPer Yngve Berg wrote: ↑Tue Dec 25, 2018 10:17 amCould the new JSON data type in Mysql 8.0 be a solution?
------------------------
php 7.0.15 - MariaDB 10.1.21
Time: 3048.18 ms / 3907.22 ms Memory: 74.095 MB / 85.50 MB Application: After Access::preloadPermissions (com_content)
------------------------
php 7.2.13 - MariaDB 10.1.37
Time: 1928.11 ms / 2737.76 ms Memory: 74.091 MB / 83.02 MB Application: After Access::preloadPermissions (com_content)
-----------------------
You do not have the required permissions to view the files attached to this post.
-
- Joomla! Intern
- Posts: 83
- Joined: Wed Jul 09, 2008 8:40 am
Re: How to Optimize Joomla with more 100,000 Content Items?
I view on github at https://github.com/joomla/joomla-cms/issues/13542, and drewgg commented that he see https://github.com/joomla/joomla-cms/pull/12809 solves the issue above, merged to Joomla 4
- AMurray
- Joomla! Exemplar
- Posts: 9744
- Joined: Sat Feb 13, 2010 7:35 am
- Location: Australia
Re: How to Optimize Joomla with more 100,000 Content Items?
Joomla 4 is not yet stable - it's still Alpha. I wouldn't use it on production sites.
Regards - A Murray
General Support Moderator
General Support Moderator
-
- Joomla! Explorer
- Posts: 351
- Joined: Sat Aug 20, 2005 3:05 pm
- Location: 1135 N Broadway #213 Denver, CO 80203
- Contact:
Re: How to Optimize Joomla with more 100,000 Content Items?
What the heck. I was having trouble with my 7k of pages … dang, if you have some tips or best practices once you get your 100,000 page site going, post an update about what you did please. I would be super-curious to know your recipe and visit your site to see it running smooth with 100,000 indexed pages.
Denver Colorado https://www.denverdonate.com/
-
- Joomla! Intern
- Posts: 83
- Joined: Wed Jul 09, 2008 8:40 am
Re: How to Optimize Joomla with more 100,000 Content Items?
I cache evething on site. I use cache on my site with extension:Forsh wrote: ↑Sun Dec 30, 2018 7:15 amWhat the heck. I was having trouble with my 7k of pages … dang, if you have some tips or best practices once you get your 100,000 page site going, post an update about what you did please. I would be super-curious to know your recipe and visit your site to see it running smooth with 100,000 indexed pages.
First, I use JCH Optimize to Combines JavaScript & CSS, minifies and compresses JavaScript. JCH Optimize cache file css and js so make website more fast.
Next, I use JotCache with config: turn on Browser Caching, Edit page Invalidate, And option turn off cache with view="form".
Next, I use cloudflare on my domain: turn on "DNS and HTTP Proxy -CDN". Cloudflare CDN help Cached Requests, Stop Threats.
-
- Joomla! Explorer
- Posts: 351
- Joined: Sat Aug 20, 2005 3:05 pm
- Location: 1135 N Broadway #213 Denver, CO 80203
- Contact:
Re: How to Optimize Joomla with more 100,000 Content Items?
vnnguyendung wrote: ↑Mon Dec 31, 2018 11:16 amI cache evething on site. I use cache on my site with extension:Forsh wrote: ↑Sun Dec 30, 2018 7:15 amWhat the heck. I was having trouble with my 7k of pages … dang, if you have some tips or best practices once you get your 100,000 page site going, post an update about what you did please. I would be super-curious to know your recipe and visit your site to see it running smooth with 100,000 indexed pages.
First, I use JCH Optimize to Combines JavaScript & CSS, minifies and compresses JavaScript. JCH Optimize cache file css and js so make website more fast.
Next, I use JotCache with config: turn on Browser Caching, Edit page Invalidate, And option turn off cache with view="form".
Next, I use cloudflare on my domain: turn on "DNS and HTTP Proxy -CDN". Cloudflare CDN help Cached Requests, Stop Threats.
Nice, appreciate the insight. I keep screwing myself up by not organizing things or something. If you cache so much that means your site structure never changes right? I jumped in feet first and didn't organize things. I never encountered this problem in the past because my sites were just a few pages with maybe a few hundred images that didn't really take much time to keep up with. I had goten up to around 20,000 pages and all of a sudden "one" little situation became hundreds or thousands of situations. That's why I was curious about how you manage such a large site...I never really expected the managing of a site would be so time consuming!
I'm thinking of just starting from scratch and doing everything better and I'm going to try to emulate what you're doing as best I can. Do you have any other suggestions on this? Specifically for someone starting from page 1 that wants to grow large with thousands of pages.
Few more questions hope you don't mind!
- Is your content indexed in the Joomla content or do you use a different content extension? I was looking at something like Easyblog.
- How do you maintain the database itself? Does your layers of caching eliminate the need to maintain and optimize a database?
Thanks again for your insight into this! I've found it very difficult to find any recipie for doing this right and especially doing it right from the very beginning.I've been thinking of creating subdomains for each content category to distribute the database calls among many databases versus just a single database. I have zero experience with optimizing a database and maintaining one because my background is Graphic Design so visuals/asthetics are more my thing. Good ifea or waste of my time?
Denver Colorado https://www.denverdonate.com/