Keyword

Optimise K2 category page loading with K2 additional cats

  • Виктор Юношев
  • Виктор Юношев's Avatar Topic Author
  • Offline
  • New Member
More
9 years 1 month ago - 9 years 1 month ago #146367 by Виктор Юношев
Optimise K2 category page loading with K2 additional cats was created by Виктор Юношев
Some of users say that K2 category page (view = itemlist) is so slow loading with K2 additional categories plugin.
An advice to optimise it very simple and addressed to developers: just add indexes for fields catid, itemID in _k2_additional_categories table.

So in the table should be:
Warning: Spoiler!


What query was most slowest:
Screenshot of First query
And the second same query wich just ask database for amount of founded records

What we have after adding indexes now:
Warning: Spoiler!


And the last query we can optimise by this way.
Open file components\com_k2\models\itemlist.php, find out function getTotal() and change it to:
	
Warning: Spoiler!


That's all!
Last edit: 9 years 1 month ago by Виктор Юношев.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 1 month ago #146454 by Krikor Boghossian
Replied by Krikor Boghossian on topic Optimise K2 category page loading with K2 additional cats
Nice :)
Thank you so much for your efforts.
Did you send this to the devs of that extension?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum