Many thanks for insight but volume too great for regular reading and difficult to disseminate content. Even if content specified would still spend time seeing how the other half live!

Many thanks, appreciated!

Emails are sent in confidence, (et semper bona fideplease be assured that replies are treated likewise.

Sincerely,
Brian J Graham
Exec: House of Graham

Desktop: listnr@icloud.com - http://www.houseofgraham.com
Inspirata per somnia, concreata imaginatio
This message is confidential. Its content may be privileged or protected by copyright, title, intellectual property or other provision at law. If received in error, please immediately reply, and preferably delete from email client application; further, we advise there is no intention to compromise your lawful right or otherwise deny use of privileged information other than a courteous recognition of integrity and professional ethic. E&OE ©MMXVI. UK

On 20 Jun 2016, at 11:00, basex-talk-request@mailman.uni-konstanz.de wrote:

Send BaseX-Talk mailing list submissions to
   basex-talk@mailman.uni-konstanz.de

To subscribe or unsubscribe via the World Wide Web, visit
   https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
or, via email, send a message with subject or body 'help' to
   basex-talk-request@mailman.uni-konstanz.de

You can reach the person managing the list at
   basex-talk-owner@mailman.uni-konstanz.de

When replying, please edit your Subject line so it is more specific
than "Re: Contents of BaseX-Talk digest..."


Today's Topics:

  1. Re: client:connect reference to DB or storage in RAM (loss in
     performance?) (Kapoor, Sumit)


----------------------------------------------------------------------

Message: 1
Date: Mon, 20 Jun 2016 09:53:15 +0000
From: "Kapoor, Sumit" <Sumit.Kapoor@adesso.de>
To: Christian Gr?n <christian.gruen@gmail.com>
Cc: "basex-talk@mailman.uni-konstanz.de"
   <basex-talk@mailman.uni-konstanz.de>
Subject: Re: [basex-talk] client:connect reference to DB or storage in
   RAM (loss in performance?)
Message-ID:
   <3a53b43667b544b789776972a6d34e05@EX2013-DB01.adesso.local>
Content-Type: text/plain; charset="utf-8"

I mean if we try to access the DB without "client:connect" e.g. :

if (collection("BIG-DB")/*:node[*:id=3/*:status = 'true')
                                                   then _:todoFunc("")
                                                   else ()

That would be an access to the DB without "client:connect" if I code it like that more than once I always get the error: "The Database is already in use". Because they block each other. For example if I add this to it:

let $anotherquery := collection("BIG-DB")/*:node


Regards,
Sumit

-----Urspr?ngliche Nachricht-----
Von: Christian Gr?n [mailto:christian.gruen@gmail.com]
Gesendet: Samstag, 18. Juni 2016 14:40
An: Kapoor, Sumit <Sumit.Kapoor@adesso.de>
Cc: basex-talk@mailman.uni-konstanz.de
Betreff: Re: [basex-talk] client:connect reference to DB or storage in RAM (loss in performance?)

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

-------------------------------------------------------
business. people. technology. <<<
-------------------------------------------------------

adesso AG mit Sitz in Dortmund
Vorstand: Michael Kenfenheuer (Vors.), Christoph Junge, Andreas Prenneis
Vorsitzender des Aufsichtsrates: Prof. Dr. Volker Gruhn
Amtsgericht Dortmund HRB 20663

End of BaseX-Talk Digest, Vol 78, Issue 32
******************************************