uros wrote: > I have quite a few fields defined in my model's define_index block > that are not direct attributes, but are derived from assocaitions > (e.g. indexes relations.section_id)... The problem is, that when I > update only one field of the model (e.g. set publish = true), delta > index updates and goes through whole define_index block and loads all > mentioned associations. The same behaviour with delayed or default > delta indexing. > > Is this normal and unavoidable behaviour?
What do you mean by "loads all mentioned associations"? Do you mean it instantiates ruby objects for them all? > I expected that sphinx will load the necessary fields through DB and > for all records that have delta=true. So there would be no need to > load all the associations mentioned in the define_index block... That's what sphinx does directly. I think Thinking Sphinx might instantiate the object and do some checks before deciding if rebuilding the delta index is necessary. -- James Healy <jimmy-at-deefa-dot-com> Sun, 30 Aug 2009 12:04:09 +1000 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
