From: Wolfgang M. <me...@if...> - 2003-04-02 15:09:31
|
Hi, The method Collection.close() actually doesn't do anything. So far, there= 's no=20 need to close a collection. However, if you have other threads accessing = the=20 same collection on the database, your instance of the Collection object m= ay=20 not be uptodate. Best regards, Wolfgang On Sunday 30 March 2003 07:47, Matias Pelenur wrote: > Hi, > I had a question regarding "best practices" when using eXist > collections. When adding resources or querying, should I get the > collection, do the operation, and then close it immediately? Or is it O= K > to keep the collection open throughout the lifetime of the program? I'm > using eXist embedded in my program, and potentially it could be running > for a long time. > > Thanks, > Matias |