Thanks that seems to work really well! One other big problem I have got is with the category tree using the cat_tree tag before it cahces the category tree it is really slugish, there are about 700 categories in it, anyone have any ideas of how to optimise this?
Thanks again On Mar 22, 11:07 pm, Christopher Wilcox <[email protected]> wrote: > Dan, > > By default Satchmo doesn't paginate its search results, so a search that > results in 10,000 objects will render a webpage with 10,000 items. > > You need to make your own custom search view that uses a > `django.core.paginator.Pagintor` object. > > Here's an example from my project.http://paste.ly/6SHC > > If you compare this to the search view from the built in Satchmo search > you'll see it just puts the result set in a Paginator. > > Modifications also need to be made to your search results template, and > you'll need to use satchmo's `satchmo_utils.urlhelper.replace_urlpattern` > method to force that search view to be used. > > Cheers! > > > > > > > > > > On Tue, Mar 22, 2011 at 2:53 PM, Dan <[email protected]> wrote: > > I have about 40,000 products in my satchmo system when doing a search > > it can become very slow indeed. Search for keyword 'a' can actually > > make it time out. > > > Doing the same search in the admin is relatively quick, is there > > anyway i can optimise this? > > > Thanks -Dan > > > -- > > You received this message because you are subscribed to the Google Groups > > "Satchmo users" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > >http://groups.google.com/group/satchmo-users?hl=en. > > -- > -Chris -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.
