I've got a User model and a UserProfile model, such that a user
has_one :user_profile and a user_profile :belongs_to :user.
User has no index. The UserProfile index refers to certain fields on
the associated user, for example "indexes user(:email)". The
UserProfile index contains "set_property :delta => true".
Every time a UserProfile record is loaded, it is immediately re-
indexed, even when it has not been modified. This is killing
performance of my site.
I think I've tracked this down to:
lib/thinking_sphinx/property.rb:
def changed?(instance)
return true if is_string? || @columns.any? { |col| !
col.__stack.empty? }
...
This seems to always treat instances as dirty if they index anything
on an associated object, whether or not that associated object is
itself dirty.
Is that a correct interpretation? Is that the intended behavior?
--
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.