Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Benchmark for no translation #2

Open
sgf opened this issue Apr 15, 2023 · 0 comments
Open

Add Benchmark for no translation #2

sgf opened this issue Apr 15, 2023 · 0 comments

Comments

@sgf
Copy link

sgf commented Apr 15, 2023

The test is too simplistic. After all, the scenarios in which transactions are applicable are a minority

Single-process multi-threaded testing is also important.

and litedb also has transactions in V5

using (var db = new LiteDatabase("mydb.db"))
{
   db.BeginTrans();
   try
   {
       // do things
       db.Commit();
   }
   catch (Exception)
   {
       db.Rollback();
       throw;
   }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant