Re: [bdbxml] General questions regarding transactions et al
George Feinberg <[email protected]> Thu, 22 Sep 2005 18:59:08 -0400
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <[email protected]> |
If you do not need transactions, you can reduce your EnvironConfig to
this set:
config.setAllowCreate(true);
config.setInitializeCache(true);
config.setCacheSize(60 * 1024 * 1024);
config.setThreaded(true);
config.setErrorStream(System.err);
Then, when you create/open your XmlContainer objects,
do not create them as transactional.
Be careful with access from multiple threads, however.
If you want to be able to perform concurrent updates or updates and
queries in parallel threads, you need some minimal locking.
It's best to get familiar with the system a bit before worrying
about multi-threaded access.
George
> Hi, thank you for your fast response.
>
> The environment configuration's like this:
>
> config.setAllowCreate(true);
> config.setInitializeCache(true);
> config.setCacheSize(60 * 1024 * 1024);
> config.setTransactional(true);
> config.setInitializeLocking(true);
> config.setLockTimeout(100); //TimeOut-Zeit in
> Millisekunden
> config.setMaxLocks(10000);
> config.setMaxLockers(100000);
> config.setMaxLockObjects(10000);
> config.setLockDetectMode(LockDetectMode.EXPIRE);
> config.setInitializeLogging(true);
> config.setLogAutoRemove(true);
> config.setErrorStream(System.err);
> config.setInitializeRegions(true);
> config.setInitializeReplication(false);
> config.setThreaded(true);
> config.setTxnTimeout(1000);
>
>
> I don't know if I need transactions, thinking about, probably not,
> since my
> little app will never be used in some critical application
> environment. Just
> exploring new ways here. What other options can I chose from? Maybe
> working with
> XmlModify instead?
>
> Kind regards,
>
> M.B.
------------------------------------------
To remove yourself from this list, send an
email to [email protected]