1

Is there an equivalent of Vacuum command of SQLite in LiteDB?

The VACUUM command rebuilds the database file, repacking it into a minimal amount of disk space.

Blorgbeard
  • 101,031
  • 48
  • 228
  • 272
user8803505
  • 126
  • 1
  • 5

1 Answers1

1

I guess shrink is the equivalent command you can use to achieve it in LiteDB.

Cinchoo
  • 6,088
  • 2
  • 19
  • 34
  • Yes, Shrink create another database (in memory/temp disk) and copy all data from source to destination. – mbdavid Jan 31 '18 at 07:17