From: "Brandon P." Date: 2010-10-22T14:57:16+09:00 Subject: Re: Folder Update Triggering Robert Klemme wrote in post #955732: > On Wed, Oct 20, 2010 at 3:26 AM, Steel Steel > wrote: >> how about ruby-inotify ? http://raa.ruby-lang.org/project/ruby-inotify/ > > Alternative would be to lazily update the index whenever it is > accessed. Depends which approach is more promising. Rule of thumb: > if there are rare updates but frequent index accesses push approach > (inotify) will be better. If there are frequent updates but only rare > index accesses pull (my alternative) will be better. YMMV though. > > Kind regards > > robert Robert, Thanks for the advice. I never even thought about that. Unfortunately, the index-accesses to folder-updates ratio will be about 10:1. Not to mention, the index will be pulled in "bursts" so it would slow things down a bit if it had to be updated every time it was read. Not a bad idea though. -- Posted via http://www.ruby-forum.com/.