Tree Module - Load time

Phoca Download - download manager
BGN
Phoca Member
Phoca Member
Posts: 11
Joined: 07 May 2020, 11:25

Tree Module - Load time

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Tree Module - Load time

Post by Jan »

Hi, how many categories do you have?
If you find Phoca extensions useful, please support the project
BGN
Phoca Member
Phoca Member
Posts: 11
Joined: 07 May 2020, 11:25

Re: Tree Module - Load time

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Tree Module - Load time

Post 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
If you find Phoca extensions useful, please support the project
BGN
Phoca Member
Phoca Member
Posts: 11
Joined: 07 May 2020, 11:25

Re: Tree Module - Load time

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Tree Module - Load time

Post 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
If you find Phoca extensions useful, please support the project
Post Reply