From: Wolfgang <wol...@ex...> - 2008-03-15 11:12:59
|
> I have just read across eXist developer guide document at > http://exist.sourceforge.net/devguide_xmldb.html > I found that all the collection object showing in the code sample in > 'Writing Java Applications with the XML:DB API' section > are NOT closed after the excution . > It trouble me that whether I should close the collection after an > operation(XUpdate,XQuery,etc.) Closing the collection is not really necessary, though it can help to save memory on the server if it is queried by many concurrent clients. Closing a collection causes cached query results to be released immediately. Wolfgang |