Hi Joe,

In eXist unless you are going the embedded route there is a single database called /db. We do not have multiple databases like BaseX because we solve the problem in a different way. If you wish to separate your data on top of /db, we have a hierarchical collections approach. You can isolate data by making use of our extensive permissions and ACL features.

Reads in eXist are lazy, but writes are locked against other writes on the same resource... or if you are modifying the contents of a collection then writes are locked at the collection level.

Does that help? I would be interested to hear more about your use-case so that we can solve this for you.

On 26 Nov 2013 19:31, "Joe Templeman" <joe@inkling.com> wrote:
OK, so reads during a write will not be blocked but concurrent writes will be? Also how does Exist-DB know which database to lock? In BaseX it's very limited so it will only lock the database if the name of the database is hard coded in the script (otherwise it locks every database), which was an issue since the databases which are accessed are based on the request which is received (we use a restxq API). 

The locking in BaseX is also considerably more aggressive, and we have to lock out all other read requests whenever a write is happening, this is causing performance issues so we're considering the move to exist-db.

Thanks,
Joe





On Tue, Nov 26, 2013 at 4:06 AM, Dannes Wessels <dizzzz@exist-db.org> wrote:
Hi,

> On 19 Nov 2013, at 07:35, Joe Templeman <joe@inkling.com> wrote:
>
> When content is being loaded into a given database, are all other write queries blocked? Are all other read queries blocked?

No, not all other write queries are blocked, but as far as I remember it is not possible to write simultaneously into one collection. If that is really a problem, I could not say (wolf?)

Reading/querying should always work.

Regards

Dannes


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Exist-open mailing list
Exist-open@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open