Jump to content

Slow loading page time on product list using product combinations


Recommended Posts

Hello,

 

could anyone please help me with performance tweaking of PS v 1.5 - we have couple of products with multiple combinations - approx 1300 - and it is known to me that this particular feature causes PS to load product listing slowly (when using 1000-3000comb´s)... I discovered that product listing loads just fine (3-6seconds) when listing products that have least combination used... I have two categories with approx 1300 combinations and loading them takes 30 seconds at peaks... - my understanding is - that PS loads these combinations also in the product listing on the background - which causes slow loading due to complicated SQL queries? - Would loading combinations be sufficient only when a detail of a product is loaded... ? 

 

My question is: is there a way to lightweight the SQL query for product listing in order to speed up the page? Please see this one as an example: http://devel.nexdesi...roller=category

 

Other pages load within 5 secs due to low ammount of combinations used.

 

Any help would be greatly appreciated.

 

Thank you in advance!

 

BR, Daniel

 

Link to comment
Share on other sites

Whouaw, this SQL query is very slow! It may have been improved in 1.6 but I'm not sure.

Other big issue in your product page: you display small images 50x62 but there are actually in big format 900x600! It takes long time to download. The best would be to use a sprite here.

If you don't want to migrate you can install an HTML cache module like PageCache (developped by me but some others exist).

Link to comment
Share on other sites

Hi,

 

I have enabled CCC, I also enabled Cache as following:

 

also for attributes,  bo-->advanced parms-->performance

 

scroll to bottom

 

enable file cache depth '1'.

 

and now I am re-creating sprites for product combinations... Though the page loading time is still incredibly slow for this particular category. I am quite desperate on how to solve this riddle... :-(

 

@El Patron - could you please help me with - "also I don't think the redirect you are using to categories is helping much"?

 

Thank you.

 

Daniel

Link to comment
Share on other sites

10.02.2014-10.50.png
http://screencast.com/t/B1OGbpXSe

 

If I enter your shop, i.e. index.php

 

it is redirecting.  This may just be how your set up your testing environment, but it can 'really' slow things down.

 

also,  turn off prestashop debug mode, that is why I see this message on redirect, only turn on when debugging.

 

You mentioned the things you did but did not remark if an improvement. :)

 

and if you are working on sprites, then you are wasting time...you should focus on what improves 'above the fold' page render.

 

remember, reporting tools, must appear to be relevant, so they report some really dumb stuff...my two cents.

 

tip: if possible, develop in subdomain rather than having redirects from one domain to another...

Link to comment
Share on other sites

One more point to mention here is that I only need "flat" level combinations, - this means that for each version there always is the same ammount of variations and same variations... so if I only could simplify the sql query responsible for listing products in product_list.tpl... but this is just an abstract idea and I am not sure if that is possible.. :-/

Edited by smithy01 (see edit history)
Link to comment
Share on other sites

One more point to mention here is that I only need "flat" level combinations, - this means that for each version there always is the same ammount of variations and same variations... so if I only could simplify the sql query responsible for listing products in product_list.tpl... but this is just an abstract idea and I am not sure if that is possible.. :-/

 

good way to destroy your shop. :)

 

I did not see what ps version you are using.

 

also: I still don't see CCC of .css and .js files.

Link to comment
Share on other sites

ave maria pues (omg in ColOmiban Spanish)

 

1.5.4? is this new shop, or you just been developing new shop for like a year..jajaja  1.5 is not 'known' for it great performance.

 

you biggest issue with 1.5, is java top.  period...

 

can you move this test shop to a subdomain?  then you not need redirects while testing...

Link to comment
Share on other sites

El Patron,

 

Please excuse me. I still lack the knowledge regarding the PS.  :(  I am a newbie and this is the point. So I am going to upgrade the shop version. Could you please give me advice to what version should I upgrade?

 

Regarding the subdomain - I will move the whole shop to the dedicated domain.

 

Daniel

Link to comment
Share on other sites

El Patron,

 

Please excuse me. I still lack the knowledge regarding the PS.  :(  I am a newbie and this is the point. So I am going to upgrade the shop version. Could you please give me advice to what version should I upgrade?

 

Regarding the subdomain - I will move the whole shop to the dedicated domain.

 

Daniel

 

...I'm not saying you should upgrade, I was just surprised that you are developing a shop with 1.5.4.  You may have very good reason to use that version, 1.5 is still a good version.  I still use 'several' 1.4.shops. :)  

 

as for upgrading, be very careful there, create another test shop to practice upgrades.

 

sorry, I do not want to confuse you from original topic.

Link to comment
Share on other sites

Hello again.

 

Finally we solved slow time of loading the PS category listing by reducing the SQL query! The original loading time of the mentioned category was 50s now we load the page in 0.8s. We ommitted 3 tables from DB which in this case were useless and caused the trouble - excessive loading time.

 

Anyway thank you for your thoughts!

 

BR, Daniel.

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

@moy2010: Thank you, I will prove it with 1.6.0.11.

 

In between, I turned off cache in BO (filesystem cache) and now the product page loads in 4s (which is about a tenth of the original loading time, but it is still slow). I can't use Memcached or APC. 

 

System profiling shows 1966 SQL queries (product with 1728 combinations). There is literaly one single sql query for each combination, generated in classes/SpecificPrice.php.

Link to comment
Share on other sites

I am using prestashop 1.5 my advice is to by module express cashe second thing is to bay

JavaPro Performance  next thin is clear your database with database optimatisation.  

Now dont use cashe option becouse you already have cashe module for better use of JAVA module test all options for best performance. I dont have to much products and my website is well optimised but with this 2 modules i made great results. Youcan check my website speed result also there is more space to improwe when i use css sprites,pictures are reduced.I find that mz cashe module when cashe is enabled slow my prestashop,disable cashe when you do this.

In attachment you have performances,they are on serbian but you can figure out what is what.

 

I hope that this will help someone

 

My website for test

post-720340-0-11231900-1417851807_thumb.jpg

  • Like 2
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 years later...

I am having this exact same problem with a store where all products have combinations. This same query is performing very slow, taking up to 10 seconds to execute. It is probably not necessary to select the combinations only to display a list of products, so I will try to simplify this query too.

 

It is happening on Prestashop 1.7, they should have fixed it years ago.

Edited by andresams (see edit history)
Link to comment
Share on other sites

  • 1 year later...

Great answer El Patron 😞

Nobody try to solve the problem...when I speak with my hosting company they say me that the problem is Prestashop, and when I speak with Prestashop they say the problem is my hosting.

jajajajaja joojojoojj

PD: I am not lazy, I am boring of Prestashop problems.  If I will create a new post I am sure I will get "please not duplicate post"

Edited by franky.martin (see edit history)
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...