Delayed Delta jobs

42 views
Skip to first unread message

Ngan

unread,
Jun 25, 2012, 12:49:54 PM6/25/12
to thinkin...@googlegroups.com
Hi, I noticed that we you update an indexed model and you have ts-dd running, it'll spawn off two jobs:

DeltaJob and FlagAsDeletedJob.

Can you briefly explain what these jobs do?
More importantly, does DeltaJob have to be ran BEFORE FlagAsDeletedJob?
By nature, if you have a distributed DJ setup (multiple workers), job work off order isn't 100% guaranteed.  Would there be any problems if FlagAsDeletedJob ran/finished first?

Thanks,
Ngan

Pat Allan

unread,
Jun 25, 2012, 4:21:23 PM6/25/12
to thinkin...@googlegroups.com
Hi Ngan

The order isn't essential - but here's what each task does:

* DeltaJob runs the Sphinx indexer on the appropriate delta index.
* FlagAsDeletedJob marks the original record in the core index as deleted, so only the delta record is used in searches.

So, search results may not be completely accurate until both jobs are run, but the order shouldn't matter.

Cheers

--
Pat

> --
> You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/DWKU-aRNUtAJ.
> To post to this group, send email to thinkin...@googlegroups.com.
> To unsubscribe from this group, send email to thinking-sphi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.



Reply all
Reply to author
Forward
0 new messages