Hi

I have a search query and i want to search that query in a set of classes. 
I am trying like this

@results = ThinkingSphinx.search("text to search",  :with => "some 
condition like program.id etc .. ",  :classes => "data models in which i 
want to search query like program,  user etc .. ", :match_mode     => 
:extended,
      :page  => params[:page],  :per_page  => ActiveRecord::Base.per_page, 
 :group_function => :attr,  :group_by   => "member_id", :group_clause   => 
"@weight DESC")
    
I am trying total_result = @results.total_entries

It is taking more time and my page is loading  very slow.

How to improve performance of above query .



Thanks

Gaurav 

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.

Reply via email to