开发者

SQLite db size too big

开发者 https://www.devze.com 2023-01-05 10:41 出处:网络
I\'m creating a DB using SQLite from .NET and then inserting 1500 records (15 columns, only 3 with information). At this point the database file size is 73mb!! (huge for the amount of information invo

I'm creating a DB using SQLite from .NET and then inserting 1500 records (15 columns, only 3 with information). At this point the database file size is 73mb!! (huge for the amount of information involved).

If I open SQLite Administrator, and do a Clear Database, it shrinks to only 142kb.

Why is it doing that? Is th开发者_运维知识库ere anyway to avoid it? Either way, is there a way to shrink the DB file from .NET (I'm using System.Data.SQLite, which uses Finistar under the hood) ?


Yes, you can execute VACUUM and REINDEX on the database in order to shrink its size.

0

精彩评论

暂无评论...
验证码 换一张
取 消