On Fri, 19 Apr 2002 07:54:42 -0400, Paul Everitt <paul@zope.com> wrote:
This pattern applies better when you have a lot of document cataloging to be done. A separate process can wake up, make a ZEO connection, and process the queue. I don't think that indexing documents *has* to be a transactional part of every document save.
Ive used something similar to that in a previous project that didnt get beyond prototype stage.
Under this cron-style approach, you also pay less of a conflict-error penalty, as you can increase the backoff period.
You dont need a 'backoff period' as such; you just move any jobs that have suffered a conflict further back in the work queue. In some cases you can almost eliminate ConflictErrors by making the background process single-threaded. Toby Dickenson tdickenson@geminidataloggers.com