Re: [ZODB-Dev] Big catalog indexes/btrees, reads, and the object cache

2012-12-15 Thread Stefan H. Holek
. Stefan -- Stefan H. Holek ste...@epy.co.at ___ For more information about ZODB, see http://zodb.org/ ZODB-Dev mailing list - ZODB-Dev@zope.org https://mail.zope.org/mailman/listinfo/zodb-dev

Re: [ZODB-Dev] copying objects from one database to another

2012-10-04 Thread Stefan H. Holek
FileStorage. Stefan -- Stefan H. Holek ste...@epy.co.at ___ For more information about ZODB, see http://zodb.org/ ZODB-Dev mailing list - ZODB-Dev@zope.org https://mail.zope.org/mailman/listinfo/zodb-dev

Re: [ZODB-Dev] Is any function called when an object is loaded from the database?

2012-06-20 Thread Stefan H. Holek
, Claudiu Saftoiu csaft...@gmail.com wrote: Is there any hook to call *after* the instance attributes get set/loaded from the database? True. I guess you'll have to go with Marius' suggestion – ``__setstate__``. -- Stefan H. Holek ste...@epy.co.at

[ZODB-Dev] RelStorage - Make memcached timeouts configurable

2011-10-17 Thread Stefan H. Holek
to make them configurable in the relstorage section of zope.conf? Anybody else has the need for timeouts? Stefan [1] http://sendapatch.se/projects/pylibmc/behaviors.html -- Stefan H. Holek ste...@epy.co.at ___ For more information about ZODB, see http

Re: [ZODB-Dev] Increasing MAX_BUCKET_SIZE for IISet, etc

2011-01-26 Thread Stefan H. Holek
On 26.01.2011, at 21:15, Matt Hamilton wrote: I'm not sure how the current MAX_BUCKET_SIZE values were determined, but looks like they have been the same since the dawn of time, and I'm guessing might be due a tune? Go Matt go! :-) -- Stefan H. Holek ste...@epy.co.at

[ZODB-Dev] RelStorage: SVN trunk not up-to-date

2008-07-27 Thread Stefan H. Holek
Most projects on svn.zope.org have the policy to perform new work on the trunk, cutting maintenance branches from it when appropriate. RelStorage appears to forge ahead on its 1.1 branch, allowing the trunk to go stale. What's the policy here? If I wanted to create a branch to work on

Re: [ZODB-Dev] RelStorage: Clearing temp_store in replication-friendly way

2008-07-27 Thread Stefan H. Holek
This is not a problem of the ZODB or relstorage, but specific to how MySQL handles a) replication and b) temporary tables. MySQL employs a log-based replication mechanism. This means the replication slave replays the commands performed on the master to keep its copy of the database in

[ZODB-Dev] RelStorage: Clearing temp_store in replication-friendly way

2008-07-24 Thread Stefan H. Holek
I have made two checkins to relstorage 1.1 branch: [1] http://svn.zope.org/relstorage/branches/1.1/?rev=88789view=rev [2] http://svn.zope.org/relstorage/branches/1.1/?rev=88790view=rev If someone wants to discuss them this is the thread. ;-) Ad [1]: This clearly is not the only problem with

Re: [ZODB-Dev] Re: Snapshotting state with DemoStorage

2008-05-28 Thread Stefan H. Holek
H. Holek [EMAIL PROTECTED] ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org http://mail.zope.org/mailman/listinfo/zodb-dev

Re: [ZODB-Dev] Snapshotting state with DemoStorage

2008-05-28 Thread Stefan H. Holek
expensive! -- Stefan H. Holek [EMAIL PROTECTED] ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org http://mail.zope.org/mailman/listinfo/zodb-dev

Re: [ZODB-Dev] RelStorage: Which tables to replicate?

2008-05-22 Thread Stefan H. Holek
adapter. RelStorage uses the new_oid table as a kind of sequence. Like any sequence, it is intentionally non-transactional. Perhaps there would be no ill effects in switching it to the InnoDB engine. Which MySQL replication method are you looking into? -- Stefan H. Holek [EMAIL PROTECTED

Re: [ZODB-Dev] RelStorage: Which tables to replicate?

2008-05-22 Thread Stefan H. Holek
the reference, but it seems that this scheme can never work without keys (OIDs) being qualified by which master they originated on. Otherwise one of the mySQLs would need to be responsible for handing out unique oids. You need an OID origination namespace for each master. -- Stefan H. Holek [EMAIL

Re: [ZODB-Dev] RelStorage: Which tables to replicate?

2008-05-20 Thread Stefan H. Holek
Let me rephrase this. Would it be ok to change *all* tables to use the InnoDB engine (except new_oid)? Stefan On 19.05.2008, at 10:55, Stefan H. Holek wrote: I am playing with database replication (MySQL) and have found the following caveats: - don't mix engine types (MyISAM

[ZODB-Dev] RelStorage: Which tables to replicate?

2008-05-19 Thread Stefan H. Holek
that all I ever need to replicate are the InnoDB tables transaction, object_state, and current_object? All other tables don't seem to be used across transaction boundaries, but I may be missing something here. Thanks, Stefan -- Stefan H. Holek [EMAIL PROTECTED

Re: [ZODB-Dev] RelStorage: Unable to acquire commit lock

2008-05-10 Thread Stefan H. Holek
yeas and yes ;-) Srefan On 9. Mai 2008, at 18:31, Shane Hathaway wrote: StorageError: Unable to acquire commit lock It takes a few moments for that error to appear, doesn't it? Perhaps the scope of the commit lock in MySQL is the entire database server rather than just the database,

[ZODB-Dev] RelStorage: Unable to acquire commit lock

2008-05-08 Thread Stefan H . Holek
I try to use two relstorages, roughly following Evan's ZopeLabs recipe [1]. This is how my zope.conf looks like: zodb_db main %import relstorage relstorage mysql db test_zodb host localhost /mysql /relstorage mount-point / /zodb_db

[ZODB-Dev] What's the deal with _p_independent?

2007-07-07 Thread Stefan H. Holek
BTrees.Length is used in many places to maintain the length of BTrees. Just the other day it was added to zope.app.container.btree. While I am happy about the speed improvements, I am concerned about the fact that BTrees.Length declares itself _p_independent. I'd like some clarification

Re: [ZODB-Dev] What's the deal with _p_independent?

2007-07-07 Thread Stefan H. Holek
https://bugs.launchpad.net/zodb/+bug/124613 Stefan On 7. Jul 2007, at 19:18, Jim Fulton wrote: Would you mind creating a launchpad issue to that effect? -- Anything that, in happening, causes itself to happen again, happens again. --Douglas Adams

Re: [ZODB-Dev] Concurrent transactions

2007-06-01 Thread Stefan H. Holek
Counting in the ZODB is more or less a no-go. You will get write conflicts, and your ZODB will grow (too) quickly. That said, you may want to look at BTrees.Length for a counter with built-in conflict resolution. Stefan On 1. Jun 2007, at 09:47, Kai Diefenbach wrote: After reading some

Re: [ZODB-Dev] ZODB 3.8.0a1 released

2007-05-13 Thread Stefan H. Holek
You would now use transaction.savepoint(True). Note also that you don't need to abort a subtransaction or optimistic savepoint, it will be aborted/committed as part of the full transaction. Stefan On 12. Mai 2007, at 19:00, Paul Winkler wrote: I belatedly realized I have some old test

[ZODB-Dev] History-less FileStorage?

2006-12-29 Thread Stefan H. Holek
Do we have a history-less (i.e. no-grow) FileStorage? Thanks, Stefan -- Anything that, in happening, causes something else to happen, causes something else to happen. --Douglas Adams ___ For more information about ZODB, see the ZODB Wiki:

[ZODB-Dev] ZODB.tests.testZODB.checkResetCachesAPI definitely bad

2006-09-12 Thread Stefan H. Holek
These errors are *also* due to ZODB.tests.testZODB.checkResetCachesAPI. The cache reset appears to leave the Application object and/or transactions in a borked state. All is well when I suppress checkResetCachesAPI: $ python2.4 test.py -q -m '!^(ZEO|zope[.]app[.])' -t '!

[ZODB-Dev] Before-abort hook?

2006-03-24 Thread Stefan H. Holek
Hi all, The ExtFile product I maintain keeps its payload on the filesystem. All operations are performed using temporary files which are then saved or deleted on transaction commit or abort respectively. To this end an ExtFile provides _finish and _abort methods which are hooked up to a