Page 1 of 2
[FIXED][Admin] Slow loading of products
Posted: Fri Nov 04, 2011 10:18 pm
by aurevilly
Hello,
We are experiencing issues with the admin part of the website. I think the main reason is because we have about 3000 product options. When I enter in 'edit product' of a product that has 2-3 product options, it takes a while to load. We think that for the 2-3 option, OpenCart is going to make 2-3 mysql request getting the same information = the 3000 option for the 3 dropdown box displayed. Instead of doing 3 requests for the same, could we do just one?
Let me know if I'm mistaking or if anything else could cause this problem.
EDIT: Fixed, look at the bottom of topic.
Re: [Admin] Slow loading of products
Posted: Fri Nov 04, 2011 11:07 pm
by uksitebuilder
What is your opencart version ?
Re: [Admin] Slow loading of products
Posted: Sat Nov 05, 2011 2:01 am
by aurevilly
Version 1.5.1.3
Sorry should have mentioned in topic.
Re: [Admin] Slow loading of products
Posted: Sat Nov 05, 2011 5:57 am
by aurevilly
This occurs sometimes. When you load the edit products page and go to the options tabs, one selectbox remains empty. You reload the page, all the selectbox are there, filled with the 3k+ options.
I'm not sure if this bug has been already reported. I've seen this in Geo Zones filled with Rest of the world or 48 Contiguous States. But this page would actually finish loading something. Not the options.
Re: [Admin] Slow loading of products
Posted: Sat Nov 05, 2011 11:22 pm
by aurevilly
We're kind in a rush. Any help would be appreciated. We are willing to pay if someone has this fix.
Re: [Admin] Slow loading of products
Posted: Sun Nov 06, 2011 12:58 am
by uksitebuilder
Does your store use vQmod ?
Can you increase max_execution_time and memory_limit in your admin/php.ini
Re: [Admin] Slow loading of products
Posted: Mon Nov 07, 2011 12:33 pm
by aurevilly
Yes we are using Vqmod. I've ran the script you've provided with the Intuitive Search extension that is suppose to make the database faster in some ways.
I am wondering how much memory_limit could affect the server's performance if we have multiple instances of the store running. How much mb would you recommend to set it?
Re: [Admin] Slow loading of products
Posted: Mon Nov 07, 2011 3:54 pm
by uksitebuilder
Try changing the following in your index.php
Code: Select all
require_once('./vqmod/vqmod.php');
$vqmod = new VQMod();
to
Code: Select all
require_once('./vqmod/vqmod.php');
$vqmod = new VQMod(false, true);
$vqmod->useCache = true;
and in your admin/index.php
Code: Select all
require_once('../vqmod/vqmod.php');
$vqmod = new VQMod();
to
Code: Select all
require_once('../vqmod/vqmod.php');
$vqmod = new VQMod(false, true);
$vqmod->useCache = true;
Re: [Admin] Slow loading of products
Posted: Tue Nov 08, 2011 12:58 am
by aurevilly
Changes has been done to my index files. I also have increased the phpinfo settings and I am still experiencing slow loading issues. Using Internet Explorer is deadly.
I am looking forward to have an answer to my original question.
Do you think for each product options, the script will pool the 3000 variants list, each time?
This means 9000 MySQL request + Insert result into select are done for a product that has 3 options. Take in mind we have products that have 20 + options. 60.000 queries is a lot for a single page to be loaded.
If this is true, it definitely needs to be changed.
Thanks for your help and time.
Cheers,
aurevilly
Re: [Admin] Slow loading of products
Posted: Tue Nov 08, 2011 3:23 am
by uksitebuilder
I believe there are changes being made in the current SVN to deal with this problem with options.
Re: [Admin] Slow loading of products
Posted: Tue Nov 08, 2011 3:56 am
by uksitebuilder
aurevilly wrote:
Can I ask what makes you believe this? I checked the SVN and the product_option.php has been updated last Sep 28, 2011.
I just want to know if I should go ahead and develop a modifications or if I should wait...
Thanks
http://code.google.com/p/opencart/source/detail?r=668
Re: [Admin] Slow loading of products
Posted: Tue Nov 08, 2011 5:00 am
by aurevilly
Sorry I have deleted the post because I answered too fast.
I downloaded the product.php and product_form.tpl
Works perfectly. I recommend anyone to update these files as it makes a significant difference in the loading time of the options.
Thanks a lot for your input UKSB.
Cheers,
J.
Re: [Admin] Slow loading of products
Posted: Thu Feb 16, 2012 4:36 pm
by robynice
aurevilly wrote:This occurs sometimes. When you load the edit products page and go to the options tabs, one selectbox remains empty. You reload the page, all the selectbox are there, filled with the 3k+ options.
I'm not sure if this bug has been already reported. I've seen this in Geo Zones filled with Rest of the world or 48 Contiguous States. But this page would actually finish loading something. Not the options.
Hi, I have the same problem. Version 1.5.1.3
aurevilly wrote:Sorry I have deleted the post because I answered too fast.
I downloaded the product.php and product_form.tpl
Works perfectly. I recommend anyone to update these files as it makes a significant difference in the loading time of the options.
J.
Where I can get those files? Thanks
EDIT:
http://code.google.com/p/opencart/sourc ... n668&r=668
Re: [FIXED][Admin] Slow loading of products
Posted: Thu Feb 16, 2012 8:39 pm
by robynice
I Update with 2 new files BUT in my istallation the problem is now bigger: product page freeze...
Re: [FIXED][Admin] Slow loading of products
Posted: Fri Mar 30, 2012 1:13 pm
by tommmied
I seem to have the same problem as others have had before me, here is my situation:
It takes forever for the product edit page to load, roughly 5 minutes. I am using oc 1.5.2.1, vqmod 2.1.6 and have dependent options and options boost installed. I modified the both index.php to useCache as recommended above and
http://code.google.com/p/vqmod/wiki/useCache.
The product has three options: Color, Width, and Length. The option Color has approx 60 values, width has 2 values, and length has 4 values. Does anyone know why it is taking so long to load this page? Let me know how I can gather further information if you need it.
Thanks a lot,
Tom
Re: [FIXED][Admin] Slow loading of products
Posted: Sat Mar 31, 2012 1:23 am
by rph
Could be dependent options though usually you need thousands of options values in your store before you start seeing slowdowns. If you want to send temp log in credentials to the support email listed in the readme I'll take a look.
Re: [FIXED][Admin] Slow loading of products
Posted: Sat Mar 31, 2012 2:21 am
by tommmied
Thanks, where would I find the logs that you need?
Re: [FIXED][Admin] Slow loading of products
Posted: Sat Mar 31, 2012 2:30 am
by rph
I'll need to take a look at your site if it's web accessible. Create a custom user for me that you can delete/disable later. You don't have to give it Top Administrator group rights if you don't want but I will at least need access/modify permissions for catalog/product, catalog/option, and module/vqmod_manager if you have VQMod Manager installed.
Re: [FIXED][Admin] Slow loading of products
Posted: Tue Mar 12, 2013 12:17 am
by nermal
Hello.
I have the same problem. Links to files has expired :/
can you update links or tell me oder way to fix this problem?
Regards,
Re: [FIXED][Admin] Slow loading of products
Posted: Wed Sep 18, 2013 6:34 am
by roylepython
I normally hate replying to old threads but yup this is the exact problem i have although mine is subsequently worse with Dependant options installed and active the load time in the end gives out and laughably i have 2 products so far although each one has 400 options ish