Managed ESENT: Open dictionary as readonly for accessing from multiple processes

387 views Asked by At

How can I open a persistent dictionary in readonly mode, so that multiple processes can read data from it simultaneously?

1

There are 1 answers

1
Martin Chisholm On

At the moment, you can't.

If you are interested in making the changes, you'd need to change PersistentDictionary.CheckDatabaseMetaData()'s call to Api.JetAttachDatabase() and Api.JetOpenDatabase(). You'd have to change the grbits being passed to those functions.

Unfortunately if you do make the fix, I don't think your code can be shared for the rest of the community. MS's policy used to be that we can't accept source-code contributions from outside. I have heard that it may no longer be true, but I would need to confirm it.

How important is it?

-martin