Hi Seenivasan,
what exactly do you want to do? What kind of subqueries are you thinking about?
There are currently no plans to support concurrent subqueries of a query, so a single query (regard as sending one request to the database) is always one transaction. You can find more information on how we're locking in our [wiki].
[wiki]: http://docs.basex.org/wiki/Transaction_Management
- - -
On 2013-01-25 at 22:44 Christian GrĂ¼n christian.gruen@gmail.com wrote:
One idea was to introduce a new pragma for explicitly locking parts of the code. This could look as follows:
(# db:lock #) { file:write(......) }
If you're looking for methods to implement your own locking (eg. for controlling access to external resources using our modules for files or HTTP access), this would be totally fine for you; but my main focus currently is at optimizing database locking (which is my thesis), so don't expect it to happen too soon (but it could happen earlier if somebody needs it).
Kind regards from Lake Contance, Germany, Jens