freelancing-god/thinking-sphinx — pull request #299 by fxtentacle (2011-10-27 19:59:20+00:00)
Title: Allow an arbitrary number of named delta indices

- DefaultDelta now takes :delta_stages => ['day','hour'] option
- changed delta_name to delta_name( stage_name )
- added delta_names() and enumerate_delta_names{|n| …}

I'm using this because sphinx merge is horribly slow. It usually takes 2-3 minutes. My approach now is to re-index the image_delta_realtime index whenever data changes. I then regularly merge image_delta_realtime into image_delta_day. That's fast, because image_delta_day will only contain the data from throughout the day. At night, i run a full reindex which will then empty image_delta_realtime and image_delta_day.

Btw, thanks for the gem. I've been using it for quite a while now :)

Cheers, Hajo