Hi Dmitrij Thinking Sphinx needs to know about all models that the application has when searching - so it can knows what objects to translate Sphinx results back into. So there's not really a way you can avoid this step. The more models in an app (and the more complex those models are), the slower this loading will be, so I'm guessing you've got a fair few models.
Sorry, not much we can do about this - I've already got TS smart enough to only load models when it needs them (instead on every single web request). Are you using the latest TS? I highly recommend upgrading (there's been a multi-threading fix recently). -- Pat On 02/03/2010, at 4:52 AM, Dmitrij Smalko wrote: > Hello, > > In my application define_index methods in models takes > 1s to load. > It seems that the problem is in the method > "load_models" in file thinking-sphinx-1.3.16\lib\thinking_sphinx > \context.rb > > -- > 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. > -- 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.
