hive icon indicating copy to clipboard operation
hive copied to clipboard

when update data, the hive file is larger?

Open lunxinfeng opened this issue 3 years ago • 1 comments

Question When call put() with the same key, the data is Updated success, but the hive file is larger and larger ?

Code sample

String s = "xxxxxxxx"; 
box.put(1, s);

Version

  • Platform: iOS, Android, Mac, Windows, Linux, Web
  • Flutter version: [e.g. 3.3]
  • Hive version: [e.g. 2.2.3]

lunxinfeng avatar Dec 02 '22 08:12 lunxinfeng

try use box.compact()

Shkryabminer avatar Nov 29 '23 13:11 Shkryabminer