ANNOUNCE: KirbyBase 1.7

Paul McGuire ptmcg at austin.rr._bogus_.com
Mon Jan 31 13:40:34 EST 2005


"Jamey Cribbs" <jcribbs at twmi.rr.com> wrote in message
news:dMdLd.67932$re1.17016 at fe2.columbus.rr.com...
> Paul Rubin wrote:
> > That's cute, especially the part about using Python expressions
> > instead of SQL to express queries.  I don't see anything in the info
> > page about what happens when you have multiple clients updating the db
> > concurrently.  Do you make any attempt to handle that?
>
> Yep.  There are two server scripts included with the distribution.  One
> (kbsimpleserver.py) does serial, blocking requests, so there are no
> concurrent-access issues.  The second server script
> (kbthreadedserver.py) is threaded and non-blocking.  I have code in the
> script that manages read and write locks for each table.  I'm no rocket
> scientist, but I have been using kbthreadedserver.py at work for several
> months with no issues so far, so I am beginning to trust the code.  :)
>
> Jamey

Before you get too confident, you might try your code on a multiprocessor
machine, under some heavy stress test (or ask one of your collaborators if
you don't have access to such a thing).  Threaded code that runs on
uniprocessors can do very different/unexpected/unwanted things on
multiprocessors.

-- Paul





More information about the Python-list mailing list