load_models occurs for indexing and multi-model searches (to ensure Thinking Sphinx knows about all models that have indexes) and also for STI searches (to ensure a parent class knows about all of the possible subclasses). I know it's not ideal, and it might be possible to factor this out in some situations with 2.3 - I've not yet spent the time to check.
If commenting it out helps things along, and everything still works, then awesome :) But keep in mind the above situations just in case something goes pearshaped. Cheers -- Pat On 26/06/2009, at 7:14 PM, ben wrote: > > I was having problems with boot strapping test db's because TS was > doing it's load_models thing. > > In configuration.rb - I just commented out the contents of load_models > and everything still seemed to work. > > I'm on Rails 2-3-stable branch. > > So - why is that being called? What am I missing? Does 2.3 lazy > loading make this no longer needed? > > -ben > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
