-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terrible asset performance #28132
Comments
i'm afraid no indexes can help on a query with |
@alikon @wilsonge @SharkyKZ @richard67 @brianteeman @astridx @C-Lodder @Quy @zero24 @zero-24 On a news page with 10 categories such as sports, finance, technology, etc., and with 10 subcategories per category such as soccer, baseball, tennis, etc., adding an article by subcategory and also multilanguage, it is not an exaggeration or crazy to arrive soon to quantities of more than 20,000 items, since the items are also saved and not deleted. Joomla is an excellent and extraordinary CMS for its modular system, user management, flexibility and diversity compared to any other CMS, giving it tremendous power and potential, but one of its few adversities against other CMS such as Drupal or Wp is that since its origin Joomla has a big problem in the structure of the way he handles large volumes of articles and the same thing happens with menus; Neither Drupal nor WP have problems with this handling of large volumes of Articles, specifically the structure of the assets kills all the benefits and benefits of Joomla over other CMS. If it is possible to eliminate the bottleneck of the assets in Joomla, it would no longer have a rival as the best CMS and the same with the bottleneck of large volumes of menus and submenus. |
Could a fulltext index be used here? |
iirc FULLTEXT index can be used starting mysql ≥ 5.6 |
True but would it help j4+? |
@HLeithner @alikon @wilsonge @SharkyKZ @richard67 @brianteeman @astridx @C-Lodder @Quy @zero24 @zero-24 Possibly there is ignorance of me in relation to the existence or structure of the Assets, but it definitely has an error in the structure that goes beyond creating indexes, since for example imagine that you have 100,000 word documents on your computer and that for create, change, or delete a word file the computer had to make a comparison with the 100,000 documents ... because that makes joomla with the Assets, it's crazy! It only makes sense for very specific cases in which it is required to do a search for a specific comparative such as finding repeated files and even then joomla does it wrong because it does not define author or any date but does so with 100% of the files that are much worse because what it does with the Assets is also with the plugins, themes, modules etc. since the Assets are also all of them, it is as if you were going to create a word document and the non-only computer will search in the 100,000 Word documents but also include all excel, powerpoint, etc, etc, etc, perhaps only excluding images. It is definitely an error of logic, structure and design. |
@Stuartemk did you come up with a solution for Joomla for this? |
@Stuartemk for note: spamming everyone will not help to solve the issue at all, even opposite. Just showing "slow logs" does not helps much, it may be due to bad server performance. All this water about windows and files will no one read. |
I join cause I also have the same issue, a slow query on assets table with a com_content of more than 30K articles, any workaround sofar? |
small update: the assets query takes 22ms in joomla debug but if I run the same query in phpmyadmin it's blazing fast |
Since this is basically a duplicate of #29569, I'm closing this one. |
Steps to reproduce the issue
mysqldumpslow -a -s r -t 1 /var/log/mysql/mysql-slow.log
Reading mysql slow query log from /var/log/mysql/mysql-slow.log
Count: 621 Time=0.01s (7s) Lock=0.00s (0s) Rows=23347.0 (14498487), server[server]@localhost
SELECT
id
,name
,rules
,parent_id
FROM
web_assets
WHERE
name
LIKE 'com_content.%' ORname
= 'com_content' ORparent_id
= 0mysqldumpslow -t 1 -s at -r /var/log/mysql/mysql-slow.log
Reading mysql slow query log from /var/log/mysql/mysql-slow.log
Count: 594 Time=0.01s (6s) Lock=0.00s (0s) Rows=23347.0 (13868118), server[server]@localhost
SELECT
id
,name
,rules
,parent_id
FROM
web_assets
WHERE
name
LIKE 'S' ORname
= 'S' ORparent_id
= NExpected result
The results would be indexed or called only when changing, adding or deleting information
Actual result
Server overload on a news page with accumulated daily new articles.
System information (as much as possible)
Additional comments
The text was updated successfully, but these errors were encountered: