Page 1 of 1

Tree Module - Load time

Posted: 30 Jun 2023, 18:04
by BGN
Hi,

when I activate the "Phoca Download Tree Module (J4)" the corresponding page takes about 10 seconds to load.

Joomla 4.3.2 | Phoca Download 4.0.6 | Phoca Download Tree Modul 4.0.1

Thank you

Bertram

Re: Tree Module - Load time

Posted: 02 Jul 2023, 14:52
by Jan
Hi, how many categories do you have?

Re: Tree Module - Load time

Posted: 03 Jul 2023, 21:45
by BGN
Hi Jan,

with Joomla 3.x the number of categories was irrelevant - the following categories are visible: 9 main categories with 87 subcategories with approx. 400 further sub(sub)categories.

Bertram

Re: Tree Module - Load time

Posted: 05 Jul 2023, 18:54
by Jan
Generally, all category modules need to create tree, it means, if you have items and you use pagination, then you only load e.g. 20 items per page, so only 20 items from database. But categories are not like items, there you need to build the whole tree, so you need to load all categories at once. In this case, it is cca 500 category items - yes, this can slowdown the loading but such amount should be still OK. Try to e.g. unpublish half of them to see, if the loading will be faster - to see if this is caused by number of items loaded and not by some other feature. :idea:

Jan

Re: Tree Module - Load time

Posted: 07 Jul 2023, 17:13
by BGN
Hi Jan,

I tested it with half of the categories > Result: twice as fast. In Joomla 3.x the categories were the same and there were no speed issues.

www.dbfk-unternehmer.de/download (without tree)
www.dbfk-unternehmer.de/download-tree-test (with tree)

greetings

Bertram

Re: Tree Module - Load time

Posted: 07 Jul 2023, 23:24
by Jan
Hi, hmmm, this is very interesting, because there were no change regarding loading of categories. Only the building of the tree changed to new library, but the loading is still the same. :idea: I am testing on one of server but see no problem there.

If you change tempate (for test only), do you get the same results?

Jan