1

How to decrease the size of db file that created by LiteDb , after I has deleted about 200 records; I have seen all issues of the litedb doc, but no satisfactory answer;

Peter Xiao
  • 11
  • 3

1 Answers1

1

You can call the Rebuild() method on your database:

using var db = new LiteDatabase(@"MyData.db");
db.Rebuild();
Eric Mutta
  • 1,144
  • 1
  • 11
  • 15