Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: simultaneous multiple requests to very simple database

Reply
Thread Tools

Re: simultaneous multiple requests to very simple database

 
 
Eric S. Johansson
Guest
Posts: n/a
 
      01-18-2005
Robert Brewer wrote:
> Eric S. Johansson wrote:
>
>>I have an application where I need a very simple database,
>>effectively a very large dictionary. The very large
>>dictionary must be accessed from multiple processes
>>simultaneously. I need to be able to lock records within
>>the very large dictionary when records are written to.

>
>
> Just to clarify, you want shared-read until a write, at which point you
> want to lock just the item being written? Or would page or table locking
> be acceptable at that point?


just the item/record. I'm doing arrival rate calculations. each record
contains a set of arrival times and I am rewriting the record every time
a new entry arrives. complete page or table locking will work in the
sense that it will prevent collisions but it will have an increasing
impact as load and simultaneous table but not record accesses increase.

---eric

 
Reply With Quote
 
 
 
 
Olaf Zetanien
Guest
Posts: n/a
 
      01-19-2005
On Tue, 18 Jan 2005 12:57:21 -0500, Eric S. Johansson <>
wrote:

> Robert Brewer wrote:
>> Eric S. Johansson wrote:
>>
>>> I have an application where I need a very simple database, effectively
>>> a very large dictionary. The very large
>>> dictionary must be accessed from multiple processes
>>> simultaneously. I need to be able to lock records within
>>> the very large dictionary when records are written to.

>> Just to clarify, you want shared-read until a write, at which point
>> you
>> want to lock just the item being written? Or would page or table locking
>> be acceptable at that point?

>
> just the item/record. I'm doing arrival rate calculations. each record
> contains a set of arrival times and I am rewriting the record every time
> a new entry arrives. complete page or table locking will work in the
> sense that it will prevent collisions but it will have an increasing
> impact as load and simultaneous table but not record accesses increase.
>
> ---eric
>


Use Firebird as sql backend. Is designed as you request (readers not lock
writers and writers not lock readers). Google for "firebird optimistic
lock".

Off course, you have python driver: http://kinterbasdb.sf.net and can
deploy on windows and linux with a very little footprint.

--
Olaf Zetanien
 
Reply With Quote
 
 
 
 
Tim Jarman
Guest
Posts: n/a
 
      01-19-2005
Olaf Zetanien wrote:

<snip>
>
> Use Firebird as sql backend. Is designed as you request (readers not lock
> writers and writers not lock readers). Google for "firebird optimistic
> lock".
>
> Off course, you have python driver: http://kinterbasdb.sf.net and can
> deploy on windows and linux with a very little footprint.
>


And OS X. But it fails the OP's "no SQL" test.

--
Website: www DOT jarmania FULLSTOP com
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
App Server preventing multiple "simultaneous" requests from onebrowser session? Lord0 Java 4 03-04-2009 12:34 AM
AJAX simultaneous requests getting queued up dmagliola@gmail.com ASP .Net 2 02-02-2007 07:13 PM
Simultaneous requests using LWP prakash Perl Misc 1 10-25-2005 06:06 PM
Simultaneous requests using LWP prakash Perl Misc 0 10-25-2005 06:03 PM
simultaneous multiple requests to very simple database Eric S. Johansson Python 10 01-24-2005 10:56 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57