If I open a connection, send a query and close the connection: What do I get? Just a Copy of the Database which will be stored in the core/main memory or a reference to the DB? Here a Code Example:
You will always get a copy of the database node. As you may have seen in the documentation of the Client Module, you should never use it to address the same BaseX instance, as this can cause deadlocks.
We have to use such a workaround with „client:connect“ because if we try to access directly the DB more than once it will be blocked.
Do you have more details? Christian