If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Site's Search engine is very slow for site with 40,000 products

Site's Search engine is very slow for site with 40,000 products

Locked

Started by catv on 15 Jun 2006, 2:20 PM · Views: 6,765

Results 1 to 20 of 20
This thread is locked. New replies are disabled.
15 Jun 2006, 2:20 PM
#1
catv avatar

catv

New Zenner

Join Date:
Jun 2006
Posts:
21
Plugin Contributions:
0

Post #1 by catv

My new zen cart has 40,000 products, and the site's search engine takes 30+ seconds to return a result. The results are usually accurate which I'm happy with but the speed of the search is a show stopper for us. Is there anyway to speed up the search? The old site's search was lighting fast with mysql full text searching. Doesn't zen cart take advantage of this? Are there any modules I can install related to site search? For speed improvments, site search statistics? I see the chemo made a search spider for OSC, is their a zen cart port of that?

I don't need really to search descriptions, how would I turn that off? I only need to search product name, model/ISBN, Author fields.

What have other people done to run big zen cart sites and handle search?

By the way if you have a big site, you'll have to turn off category counts, and hack the code for the products/categories admin listing so that it doesn't check for links since. I did this and went form 60 seconds to 1 second to open this tool in admin. Also need to turn side boxes and disable/hack admin tools to get rid of any drop down list of customers, products, manufactures. I mean come on image a drop down list with 40,000 items in it trying to load ahaha.

Anybody out there with a site with this many more products? What is the biggest store you have or have seen running zen cart?

15 Jun 2006, 3:28 PM
#2
catv avatar

catv

New Zenner

Join Date:
Jun 2006
Posts:
21
Plugin Contributions:
0

Post #2 by catv

bump, we are suppose to the launch the site very soon, so we need to find a solution to speed up the site search urgently.:no:

15 Jun 2006, 4:21 PM
#3
catv avatar

catv

New Zenner

Join Date:
Jun 2006
Posts:
21
Plugin Contributions:
0

Post #3 by catv

hello, does no one want to reply?

15 Jun 2006, 7:24 PM
#4
tj1 avatar

tj1

Totally Zenned

Join Date:
Mar 2005
Location:
California
Posts:
628
Plugin Contributions:
0

Post #4 by tj1

catv:

What have other people done to run big zen cart sites and handle search?

Anybody out there with a site with this many more products? What is the biggest store you have or have seen running zen cart?

...well, I don't know if you'd consider my site big, it currently has about 20,000 products. Searches or just navigating the site used to take an awful long time. Solution, changed webhost; now searches take about 2 seconds or less.

I've heard some people here mentioning running ZC with 200,000 products.

15 Jun 2006, 7:40 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #5 by ajeh

I have a site with 700,000 products that I am looking at to speed up more ...

Already have pages from 30-45 seconds down to 0.3 seconds on most pages ... and 8 to 12 seconds on a couple pages that I am still looking at ...

Perhaps if you could post an URL to your site we can help with speeding this up ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

23 Jun 2006, 10:21 PM
#6
catv avatar

catv

New Zenner

Join Date:
Jun 2006
Posts:
21
Plugin Contributions:
0

Post #6 by catv

My solution was to setup a full blown indexing site search engine, with nutch/lucene.

24 Jun 2006, 2:31 AM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #7 by ajeh

Do you have an URL that we could peek at your site to see what might have been the problem?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

24 Jun 2006, 4:30 AM
#8
catv avatar

catv

New Zenner

Join Date:
Jun 2006
Posts:
21
Plugin Contributions:
0

Post #8 by catv

Hi Ajeh, do you use the native zen search with the 700,000 product site??? That's crazy, I find that hard to believe. The zen search is just a bunch of plain sql queries, doesn't even use full-text indexing, I can't see how any site no matter how fast their server was have any success with the native search functionality when you have 20k+ products.

Why don't you change the queries to use full-text search, I think most people have graduated to mysql 3.x by now that supports it.

24 Jun 2006, 4:42 AM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #9 by ajeh

I did not say that was a bad idea ... just was curious to see the site and the solution you are using in action ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

24 Jun 2006, 4:56 AM
#10
catv avatar

catv

New Zenner

Join Date:
Jun 2006
Posts:
21
Plugin Contributions:
0

Post #10 by catv

Hi ajeh, as soon as I get the staging site setup with the nutch search engine I'll let you take a peak, it's all in development/prototype right now, Hopefully tonight I'll run the first "clean" crawl of the site to create the index without all the noise urls in it.
Crawling takes time esp. with thousands of pages. Hopefully updating the index goes quicker. I think I can mark pages with timestamps in the metatags so that the nutch crawler skips the page if it hasn't changed.

24 Jun 2006, 5:00 AM
#11
catv avatar

catv

New Zenner

Join Date:
Jun 2006
Posts:
21
Plugin Contributions:
0

Post #11 by catv

How do you handle the site search on your 700,000k site Linda? And how is your solution's recall and accuracy?

24 Jun 2006, 5:01 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #12 by ajeh

I am working through the speed issues on 700,000 product sites ...

I have the vast majority of them resolved ... but there are still a few things that are a problem ...

First search is one of them ...

Example:

30 seconds on first search for the word: Stone
.2 seconds on the second search for the word: Stone

I am working on putting the site together where each section maintains the low time the first hit ...

The new improvements will be great for those of you with large sites ... and the speedups will be significant ...

But we still have more to addressed ...

So I am always interested in seeing different methods in action for various aspects of moving through the Shop ...

Let me know when you have things configured and playable ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

24 Jun 2006, 9:10 PM
#13
catv avatar

catv

New Zenner

Join Date:
Jun 2006
Posts:
21
Plugin Contributions:
0

Post #13 by catv

Ajeh:

I am working through the speed issues on 700,000 product sites ...

I have the vast majority of them resolved ... but there are still a few things that are a problem ...

First search is one of them ...

Example:

30 seconds on first search for the word: Stone
.2 seconds on the second search for the word: Stone

I am working on putting the site together where each section maintains the low time the first hit ...

The new improvements will be great for those of you with large sites ... and the speedups will be significant ...

But we still have more to addressed ...

So I am always interested in seeing different methods in action for various aspects of moving through the Shop ...

Let me know when you have things configured and playable ... :smile:

"I am working on putting the site together where each section maintains the low time the first hit". I don't know what you are saying? Are you talking about warming the searches and caching the results?

Are you doing to leverage full text search as part of this improvement? Well in a few years if more people move to php5 you'll be able to use the zend framework's lucene port which is in native php. I've tried it but was disappointent with it, but I tested it a couple months ago and the zend framework is still under development and is improving.

25 Jun 2006, 2:46 AM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #14 by ajeh

I am referring to re-writes to the code to speed up Zen Cart on sites with large products and category tables ...

There are many sections of code that needs to be sped up besides searches ...

Taking a New Product search from 30-60 seconds down to 0.2 - 0.6 seconds, for example ...

By speeding up each section of code, the over all cart speed will be vastly improved ...

One searches ... something I am delving in over the next few days/weeks ... I know that a first time search takes too long ... 30+ seconds on 700,000 products ...

But, second search is 0.2 seconds ... as in a "warm" search ... unfortunately ... how many "warm" searches happen vs first time search?

Getting the first search down to something more reasonable is the goal ...

This has to do with cache and the memory as well as the method of gathering the data ...

That is why I am saying I'd like to see what you can do with your site when you have it available ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

25 Jun 2006, 3:04 AM
#15
catv avatar

catv

New Zenner

Join Date:
Jun 2006
Posts:
21
Plugin Contributions:
0

Post #15 by catv

Hi Ajeh, I get what your saying now, even on successive searches for the same query I don't recall it being any faster.. does something need to be set to have it cache searches? This would be handy for smaller sites with less products, but like you said 30 secs for the first search instance is still way too long.

How are you fixing issues like the category/products area taking a long time to load, we commented out the link checking code since it was causing things to take 60 seconds to open.

Also all the dropdowns throught the admin area have to be changed to search boxes or something. I have to do this on my products edit page which uses the book product type module and has drop downs for the author and publisher this pages takes 15 seconds to open, for now I'm just turing them into plain text input boxes.
I'm not using the book type mod with the authors and publisher's normalized since I had to import that data from another site and these fields where not normalized and had zero constraints, in one column I have firstname lastname misc. chars and somethings up to three other author's names jeez forget about normalizing that mess.

Thank you for your hard work Ajeh, we really appreciate your efforts to optimize the best open source shopping cart out there! Once this baby is cleaned up and polished it will be killer.

If I ever have the resources in the future I'm going to donate a total re-write of the admin area so that it's more useable, for such a complex cart system, it needs to be even more useable then a simple cart system. The way it stands now I can't use the cart for all but my most savy clients since, for my normal clients their eyes just glaze over when I try to explain how to use the backend.

25 Jun 2006, 7:08 PM
#16
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #16 by ajeh

My server guru has the MySQL queries set for a long term cache thingy ...

Note: I am not a server guru and it may perhaps show ...

But on his servers ... the settings allow for around 15+ minutes?

So if I go to the site and hit All Pages ...

1st hit 30 seconds ...
Click page 2 30 seconds ...
Click page 3 30 seconds ...

You go there ...

Your 1st hit to All pages is 0.2 seconds ...
Click page 2 0.2 seconds ...
etc.

I go back to Page 2 ... 0.2 seconds ...

So active sites ... all benefit from one another's actions on a site with 700000 products ...

There were issues on dates for things like New Products and Upcoming ... these I have redone in the code so that this will not be an issue in a future release ...

There are a lot of things that are being redone to give more speed to small and large sites alike ...

The benefits show on larger sites ... but are also a benefit to smaller sites on slow servers ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

26 Jun 2006, 4:51 PM
#17
tinamarie61 avatar

tinamarie61

New Zenner

Join Date:
Apr 2006
Posts:
12
Plugin Contributions:
0

Post #17 by tinamarie61

I am also having problems with slow loading (https://www.captivateu.com - I just added some front pages and am still working on getting the cart to look the same, so take that into consideration). I'm pretty sure it's the server as I only have about 150 items. I'm thinking about changing servers this week. Can anyone suggest one that they are using and is working well? Cost is surely a consideration, but I know cheaper isn't always the worst or the best.

Thanks,
Tina

26 Jun 2006, 5:15 PM
#18
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #18 by ajeh

The link you posted is using invalid links to your Shop ... you will want to clean that up ...

Once I got to your regular site ... it was pretty slow ...

Try turning on GZip ... this may or may not help

You do not have enough products nor reasons that I can see to be this slow other than you may be on an overloaded server ... speak to your hosting site about a better server that is not so overloaded ...

You may wish to look at our Zen Cart Certified Hosting sites and find one that is fast, affordable and reliable and knows the needs of e-commerce sites and are optimized for php and MySQL ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Jun 2007, 5:09 PM
#19
zskiman avatar

zskiman

New Zenner

Join Date:
Mar 2005
Posts:
69
Plugin Contributions:
0

Post #19 by zskiman

I realize this is an old post, but this may help someone else. our shop has 1.4 milliion items and has a few speed issues that need tweaking, but seems to run fine for the most part. one of the tricks that we have learned along the way to speed things up is to reindex the tables using phpmyadmin. with the amount of items we have in our shop the searches would just sit there and chugalong until we had to actually kill the process. after indexing everything seemed to work.

my biggest problem right now is an author search, which was created as advanced search results 4, this draws from a custom table and works fine if you use

    $where_str .= "(pd2.products_author LIKE ':keywords%' ";

and use the authors last name only ( if the name is to common theres problems eg:king)

if you use

         $where_str .= "(pd2.products_author LIKE '%:keywords%' ";

go get a drink while waiting for results.

hopefully ive helped someone, and any suggestions would be helpfull

Thanks
Mike Z

http://aepbooks.com/zenshop1/

Never be afraid to try something new, remember that amateurs built the ark, professionals built the Titanic

8 Jun 2007, 11:28 PM
#20
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #20 by ajeh

Be sure that you have looked at the indexes in the current version of Zen Cart and the new functions for the dates etc.

This will save you a world of problems as well ...

I'd love an opportunity to work with a copy of your database and future versions of Zen Cart should you be so inclined to share so that faster methods can be better established based on a monster data base ...

PM me if that would work for you ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!