Hi Aaron Sorry I've not gotten back to you more quickly on this - I know you've mentioned it in other emails and tweets.
What you're proposing has been requested before (at least, the tracking of associated objects - this is a little more detailed). I'm not sure about the syntax, but I think we should be able to work something out. Let me ponder further, and I'll see if I can come up with something that clicks in my head. But all that said - thanks so much for taking the time to think through this and sketch out a proposed syntax. It really does help to get me thinking about how to change things. Cheers -- Pat On 28/09/2010, at 2:11 AM, agibralter wrote: > What do people think of an addition to the DSL for handling automatic > updating of attributes defined by SQL-snippet: http://gist.github.com/596934 > ? > > I was thinking that in case in the gist: if a group's :state > or :memberships_count are updated (specified by > `attributes :state, :memberships_count`), using group.membership_ids > ThinkingSphinx should mass update all documents in searchd with the > latest attribute value for :is_big_group as defined by the `value` > block. > > I know it seems really verbose, but I can't really think of a better > way of doing it without having to somehow interpret the SQL-snippet... > > I was also thinking that it might be nice to automagically handle > setting delta = 1 when associated models are changed... > > Any thoughts? > > Thanks, > Aaron > > -- > 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.
