I am contemplating using BaseX from a web application using the Java API. I plan to use it, among other things, to store some information on the users of the site. Someone coming in to the application would be asked to identify themselves, probably with an email address. Based on the address, I would find a record stored in BaseX and possibly edit the record.
So my question is: would it be better to have a collection of small XML documents, one to each user; or does BaseX provide the concurrent access control to allow me to have one document with any number of user records?
Second question: I seen in the Java API examples how to create a new database, but I don't see an easy way to check if a database exists. Does that mean, then, that I should create the databases beforehand and then assume they exist inside my application?
My apologies in advance, since I am sure these question have been asked before. The list archive search function on the BaseX site is not working.