Hi Pat,

Sorry to be answering so late.

I am using the latest github version.

This happens only in development mode right? Is there a way to
explicitly tell TS what to load so I can benchmark without ts being a
factor?

Or to specify the models manually to avoid the extra CPU burn?

--
M.

On Jun 1, 10:31 am, Pat Allan <[email protected]> wrote:
> Hi Marcelo
>
> How many models do you have in your application?
>
> To process search results, TS needs to know about *all* models that have 
> indexes, so it forces Rails to load every single model. Unfortunately this 
> can't be avoided, but it should only happen (with the latest version of TS) 
> when you're running a search.
>
> So: what version of TS are you using?
>
> --
> Pat
>
> On 01/06/2010, at 5:23 AM, Marcelo Barbudas wrote:
>
>
>
> > Hi.
>
> > I've been profiling a Rails Application and noticed some big
> > improvements once I disable TS.
>
> > Basically if I have a model called Post which has some indexes.
> > Once I remove define_index,  in any method that uses Post, even in
> > basic Post.find without any TS interaction, I get 4x improvements.
>
> > I am using Rails 2.3.5 in development mode, testing via the NewRelic
> > plugin.
>
> > Any ideas? I don't even know what data to include.
>
> > --
> > M.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Thinking Sphinx" 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 
> > athttp://groups.google.com/group/thinking-sphinx?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" 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/thinking-sphinx?hl=en.

Reply via email to