pat / ts-delayed-delta

Manage delta indexes via Delayed Job for Thinking Sphinx
http://ts.freelancing-gods.com
MIT License
73 stars 33 forks source link

Inhibiting delayed deltas? #2

Closed dball closed 14 years ago

dball commented 14 years ago

I'm curious if you have any suggestions for us here. We're using delayed deltas and they work great, except when we're importing data. When we import 5000 products, we end up creating 5000 delayed delta jobs. We'd obviously far prefer to inhibit delayed deltas during the import, and just create one after the fact. This wouldn't seem to be that unusual a request, do you know if anyone's solved it already?

pat commented 14 years ago

Hi Donald

It's built into TS:

Model.suspended_delta do
  # many imports, no deltas till this block is finished
end

Hope this helps :)

dball commented 14 years ago

Righteous! Apologies that I overlooked this, many thanks for pointing me in the right direction.