Post by aurevilly » Fri Nov 04, 2011 10:18 pm

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.
Last edited by aurevilly on Tue Nov 08, 2011 5:00 am, edited 1 time in total.

User avatar
New member

Posts

Joined
Thu Sep 29, 2011 4:32 am
Location - Sherbrooke, Canada

Post by uksitebuilder » Fri Nov 04, 2011 11:07 pm

What is your opencart version ?

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by aurevilly » Sat Nov 05, 2011 2:01 am

Version 1.5.1.3

Sorry should have mentioned in topic.

User avatar
New member

Posts

Joined
Thu Sep 29, 2011 4:32 am
Location - Sherbrooke, Canada

Post by aurevilly » Sat Nov 05, 2011 5:57 am

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.

User avatar
New member

Posts

Joined
Thu Sep 29, 2011 4:32 am
Location - Sherbrooke, Canada

Post by aurevilly » Sat Nov 05, 2011 11:22 pm

We're kind in a rush. Any help would be appreciated. We are willing to pay if someone has this fix.

User avatar
New member

Posts

Joined
Thu Sep 29, 2011 4:32 am
Location - Sherbrooke, Canada

Post by uksitebuilder » Sun Nov 06, 2011 12:58 am

Does your store use vQmod ?

Can you increase max_execution_time and memory_limit in your admin/php.ini

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by aurevilly » Mon Nov 07, 2011 12:33 pm

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?

User avatar
New member

Posts

Joined
Thu Sep 29, 2011 4:32 am
Location - Sherbrooke, Canada

Post by uksitebuilder » Mon Nov 07, 2011 3:54 pm

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;

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by aurevilly » Tue Nov 08, 2011 12:58 am

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

User avatar
New member

Posts

Joined
Thu Sep 29, 2011 4:32 am
Location - Sherbrooke, Canada

Post by uksitebuilder » Tue Nov 08, 2011 3:23 am

I believe there are changes being made in the current SVN to deal with this problem with options.

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by uksitebuilder » Tue Nov 08, 2011 3:56 am

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

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by aurevilly » Tue Nov 08, 2011 5:00 am

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.

User avatar
New member

Posts

Joined
Thu Sep 29, 2011 4:32 am
Location - Sherbrooke, Canada

Post by robynice » Thu Feb 16, 2012 4:36 pm

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

New member

Posts

Joined
Mon Feb 13, 2012 9:33 am
Location - ITA

Post by robynice » Thu Feb 16, 2012 8:39 pm

I Update with 2 new files BUT in my istallation the problem is now bigger: product page freeze...

New member

Posts

Joined
Mon Feb 13, 2012 9:33 am
Location - ITA

Post by tommmied » Fri Mar 30, 2012 1:13 pm

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

Newbie

Posts

Joined
Mon Feb 13, 2012 2:08 pm

Post by rph » Sat Mar 31, 2012 1:23 am

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.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by tommmied » Sat Mar 31, 2012 2:21 am

Thanks, where would I find the logs that you need?

Newbie

Posts

Joined
Mon Feb 13, 2012 2:08 pm

Post by rph » Sat Mar 31, 2012 2:30 am

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.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by nermal » Tue Mar 12, 2013 12:17 am

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,

Newbie

Posts

Joined
Thu Jul 12, 2012 5:29 am

Post by roylepython » Wed Sep 18, 2013 6:34 am

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

New member

Posts

Joined
Wed Sep 18, 2013 5:18 am
Who is online

Users browsing this forum: No registered users and 85 guests