category list loading time problem
Posted: 10 Oct 2009, 12:59
Hi everyone,
i'd like to use phoca gallery to present a collection on my website (currently i'm running a local wamp server for testing the website/gallery)
The top level of categories is a list of letters from A-Z. Each top level consists of subcategories (up to ~40) for the manufacturer/makers of the collectible items beginning with this particular letter. There're about 670 sub-categories in total.
Each of this subcategories contains images, which sum up to ~3700 in total.
I made a small php script which fills the db tables of phoca gallery (jos_phocagallery and jos_phocagallery_categories). Everything works fine - i get my categories and each of them shows the right images.
But there's a loading time problem when i try to access the top level categories view/page. It takes about 5 seconds to load. That's not very fast, but i thought maybe it's because of there're lots of categories to load. Loading all other pages (sub-categories and detail views etc) is very quick.
But things got worse when i made an online test of the gallery: after 30 seconds the server quits loading the categories list page. There must be a bottleneck somewhere . . . but i'm not sure where to begin searching for it.
That's why i have some questions:
1. Where do i find the routines/functions which are used to load the categories list? Which files are used for it? Maybe i can find out that there is a time consuming sql or php query (maybe because of the configuration i made, like sorting categories etc).
2. How many categories/images do you use in your galleries? Does the number of cat/images i have slow down the component?
3. Do you use something to profile joomla components and log the results (not just for phoca gallery of course)?
I really appreciate any help!
Thanks,
Frank
i'd like to use phoca gallery to present a collection on my website (currently i'm running a local wamp server for testing the website/gallery)
The top level of categories is a list of letters from A-Z. Each top level consists of subcategories (up to ~40) for the manufacturer/makers of the collectible items beginning with this particular letter. There're about 670 sub-categories in total.
Each of this subcategories contains images, which sum up to ~3700 in total.
I made a small php script which fills the db tables of phoca gallery (jos_phocagallery and jos_phocagallery_categories). Everything works fine - i get my categories and each of them shows the right images.
But there's a loading time problem when i try to access the top level categories view/page. It takes about 5 seconds to load. That's not very fast, but i thought maybe it's because of there're lots of categories to load. Loading all other pages (sub-categories and detail views etc) is very quick.
But things got worse when i made an online test of the gallery: after 30 seconds the server quits loading the categories list page. There must be a bottleneck somewhere . . . but i'm not sure where to begin searching for it.
That's why i have some questions:
1. Where do i find the routines/functions which are used to load the categories list? Which files are used for it? Maybe i can find out that there is a time consuming sql or php query (maybe because of the configuration i made, like sorting categories etc).
2. How many categories/images do you use in your galleries? Does the number of cat/images i have slow down the component?
3. Do you use something to profile joomla components and log the results (not just for phoca gallery of course)?
I really appreciate any help!
Thanks,
Frank