Re: [ZODB-Dev] How to update an object in a multithreading application?

2012-03-20 Thread Vincent Pelletier
Le lundi 19 mars 2012 20:59:24, Sebastian Wain a écrit : Indeed I want to sync the same BTree between threads. I am adding persistence and acknowledgement to the Python queue. I don't understand what you mean by: - sync: ZODB is probably not a good backend to provide synchronisation as a

Re: [ZODB-Dev] How to update an object in a multithreading application?

2012-03-20 Thread Vincent Pelletier
Le lundi 19 mars 2012 21:49:11, Jim Fulton a écrit : sync should be deprecated. :) transaction.begin() is better. Off-topic: it is possible that calling transaction.begin() does not offer a most up-to-date view of the database. This is easy to notice when using another database concurrently

Re: [ZODB-Dev] How to update an object in a multithreading application?

2012-03-20 Thread Sebastian Wain
Indeed I want to sync the same BTree between threads. I am adding persistence and acknowledgement to the Python queue. I don't understand what you mean by: - sync: ZODB is probably not a good backend to provide synchronisation as a feature, ie it's not a lock server and does what it can to

Re: [ZODB-Dev] Build compression into ZODB 3.11?

2012-03-20 Thread Jim Fulton
On Thu, Mar 15, 2012 at 11:09 AM, Jim Fulton j...@zope.com wrote: On Wed, Mar 14, 2012 at 1:47 PM, Jim Fulton j...@zope.com wrote: ... At some point soonish, I'll do some tests against a large database. On a database with 180 million records, 150 million of which are compressable:

Re: [ZODB-Dev] Build compression into ZODB 3.11?

2012-03-20 Thread Jürgen Herrmann
Am 20.03.2012 15:27, schrieb Jim Fulton: On Thu, Mar 15, 2012 at 11:09 AM, Jim Fulton j...@zope.com wrote: On Wed, Mar 14, 2012 at 1:47 PM, Jim Fulton j...@zope.com wrote: ... At some point soonish, I'll do some tests against a large database. On a database with 180 million records, 150

Re: [ZODB-Dev] Build compression into ZODB 3.11?

2012-03-20 Thread Adam GROSZER
Hello, What about LZ4HC? http://code.google.com/p/lz4hc/ On Tue, 20 Mar 2012 10:27:26 -0400 you wrote: On Thu, Mar 15, 2012 at 11:09 AM, Jim Fultonj...@zope.com wrote: On Wed, Mar 14, 2012 at 1:47 PM, Jim Fultonj...@zope.com wrote: ... At some point soonish, I'll do some tests against a

[ZODB-Dev] ZODB via Pipe/Socket

2012-03-20 Thread Adam Tauno Williams
It is possible to open a ZODB in a thread and share it to other threads via a filesystem socket or pipe [rather than a TCP conntection]? I've searched around and haven't found any reference to such a configuration. -- System Network Administrator [ LPI NCLA ]

Re: [ZODB-Dev] ZODB via Pipe/Socket

2012-03-20 Thread Laurence Rowe
On 20 March 2012 16:52, Adam Tauno Williams awill...@whitemice.org wrote: It is possible to open a ZODB in a thread and share it to other threads via a filesystem socket or pipe [rather than a TCP conntection]?  I've searched around and haven't found any reference to such a configuration. This

Re: [ZODB-Dev] ZODB via Pipe/Socket

2012-03-20 Thread Marius Gedminas
On Tue, Mar 20, 2012 at 12:52:07PM -0400, Adam Tauno Williams wrote: It is possible to open a ZODB in a thread and share it to other threads via a filesystem socket or pipe [rather than a TCP conntection]? You don't need either if you use threads. Create a ZODB.DB.DB(), have each thread invoke