Is there a way to get a DB handle knowing the path / file name without opening the DB?
Everything I’ve seen that returns a DB handle also opens the DB which will significantly slow down our process.
Any thoughts would be greatly appreciated.
Thanks - Don
Subject: Get handle using path/file name
Is @DbName an option for you?
Hope this helps
-Gabriel Amorim
Subject: RE: Get handle using path/file name
Sorry, I misunderstood your question.
Maybe something around NotesDbDirectory?
HTH
-Gabriel Amorim
Subject: RE: Get handle using path/file name
We have an application which tracks the path / file name of each Domino DB. Until now this was enough information to utilize the C APIs that I needed.
Now I want to use NSFDbGetLogInfo to check if a database is logged. This API requires a DB handle, it does not accept a path / file name.
NSFDbOpen will return a handle, however it will require opening each database that I want to check. I cannot seem to find any C API that will allow me to retrieve the DB handle without first opening the DB. I’m kind of a rookie with Domino, so this may seem like a very rudimentary question, but I gotta ask…
Thanks again - Don
Subject: RE: Get handle using path/file name
You can’t read anything useful from the db (like, oh, let’s say the replicaID) without opening it. Now, there’s a difference between “opening the database” at the handle level (NSFDbOpen) and “opening the database” (accessing the views and other notes within the database) – there will be a cost associated with reading data needed for other calls, but it is the minimum you can get away with.
Subject: RE: Get handle using path/file name
Stan,
Thanks for the info. I suspected as much, but hoped that maybe there was something I’d overlooked or didn’t know about just yet.
Thanks