Joomla JTable ordering function runs thousands queries

喜欢而已 提交于 2019-12-12 03:25:54

问题


When I create a new article in a category, joomla starts to reorder the whole category, even the archived articles. The code responsible of this is the jTable reorder function (libraries/joomla/table/table.php) which selects all the records of the same category and then, for EACH ONE, reset the ordering value with a single query.

My category contains 15k articles, 99% of them archived.

So when i save an article in that category I have to wait 15k+ queries, which takes a lot!

The question is. Why??? Have you the same problem? Any solution?

Notes: I have Joomla 3.5, the latest one, but the problem started some versions ago.


回答1:


There is a patch on GitHub that tries to address this only for MySQL platforms, see https://github.com/joomla/joomla-cms/pull/8563



来源:https://stackoverflow.com/questions/36209227/joomla-jtable-ordering-function-runs-thousands-queries

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!