--
Pat
Yeah, that makes sense - for every save, a new indexer instance will
fire up. I've been wanting to shift this off into a thread, or ideally
something that hooks into either background-job or backgroundrb if
either is available. If anyone's familiar with either, would love a
patch :)
Otherwise I'll get around to it at some point - unfortunately things
are pretty hectic for me at the moment (preparing to head over to the
US for RailsConf as the start of a round-the-world trip), so can't
provide a timeline as to when I'll have that fix ready.
> Any thoughts? I guess a different solution could be to run the delta
> indexer with cron as well (just much more frequently).
If you were running a delta index regularly, could just run the full
index too? Of course, depends how much load that'll put the server
under, though.
Cheers
--
Pat
I was assuming backgroundrb or bj could take care of this - but if
not, then we'll need to find another way...
--
Pat
The only danger I can see with this is that on a busy site, the delta
indexer might just end up running all the time.
For busy sites, it might be best to just disable the after_commit delta
index rebuild, and do it in cron every 5-10mins.
It really depends on whether scalability or immediate index updates are
the priority.
-- James Healy <jimmy-at-deefa-dot-com> Wed, 21 May 2008 10:59:22 +1000