OK, i ll stick with the non-disabled version. Just curious about something,
This bulk is a big transaction because if something fails, everything must rollback. How does sphinx handle in case jobs are being created to index resources which might not hit the DB via a rollback? On 5 May 2011 15:22, Pat Allan <[email protected]> wrote: > That's correct, unfortunately. > > It'd be great to have some way of improving it... you can update multiple > records' attributes in Sphinx at once, so FlagAsDeletedJob could be smarter. > It isn't at the moment, though. > > -- > Pat > > On 06/05/2011, at 12:20 AM, Pedro Cunha wrote: > > > It works. > > > > But i think i have another issue now... > > > > Because this bulk (see problem before) does not only create new records. > Can update them. > > > > So if i understood correctly on a normal situation i would have > > > > 400 records > > 400 DeltaJob > > 400-new_records FlagAsDeletedJob > > > > But now since I skipped, at most I still need to > > > > Generate: > > 1 Delta Job > > 400-new_records FlagAsDeletedJob > > > > Right? > > > > Cheers > > > > > > On 5 May 2011 15:08, Pat Allan <[email protected]> wrote: > > Not quite as elegant, but try: > > > > ThinkingSphinx.deltas_enabled = false > > # do stuff > > ThinkingSphinx.deltas_enabled = true > > > > Cheers > > > > -- > > Pat > > > > On 06/05/2011, at 12:04 AM, Pedro Cunha wrote: > > > > > This is model specific right? > > > > > > Do I have a global option? > > > > > > Tryed > > > > > > ThinkingSphinx.suspended_delta do ... > > > > > > But didn't seem to work > > > > > > Cheers > > > > > > On May 5, 12:03 am, James Healy <[email protected]> wrote: > > >> On 5 May 2011 07:44, Pedro Cunha <[email protected]> wrote: > > >> > > >>> Do I have an explicit option to prevent queuing this job and then > just > > >>> queue 1 after all data is inserted on DB? > > >> > > >> Try this: > > >> > > >> IndexedModel.suspended_delta do > > >> # import code goes here > > >> end > > >> > > >> James > > > > > > -- > > > 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. > > > > > > > > -- > > 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. > > -- 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.
