# Looped concurrent rebuild

**URL:** <https://www.ruby-forum.com/t/looped-concurrent-rebuild/136117>\
**Category:** Ferret\
**Created:** [April 29, 2008, 3:25am UTC](https://www.ruby-forum.com/t/looped-concurrent-rebuild/136117 "2008-04-29T03:25:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![staypufd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@staypufd](https://www.ruby-forum.com/u/staypufd)\
**Post date:** [April 29, 2008, 3:25am UTC](https://www.ruby-forum.com/t/looped-concurrent-rebuild/136117/1 "2008-04-29T03:25:50Z")

</div>

I’ve used the code at  
[http://pastie.textmate.org/66602](http://pastie.textmate.org/66602)  
for an index rebuild which catches edits during the rebuild.

I’ve tweaked this for my own use and sharing here for others & feedback.

It’s not the prettiest loop and, in theory at least, it could run  
forever… but this tweak also allows you to catch edits during the  
entire rebuild process.

[http://pastie.textmate.org/188436](http://pastie.textmate.org/188436)

Sam
