CoreyKaylor / Lightning.NET

.NET library for LMDB key-value store
Other
398 stars 82 forks source link

What are the guidelines on Transaction objects? #89

Closed karjay closed 7 years ago

karjay commented 7 years ago

Should we create a transaction each time we want to query a database? In my scenario, I have large number of entries to add to the database in one go, and then I have to support some random queries. Should I create a transaction object for each add to the database and query?

CoreyKaylor commented 7 years ago

You'll really have to test out the specifics of your use-cases. There isn't a single recommendation that will apply.