mbdavid / LiteDB

LiteDB - A .NET NoSQL Document Store in a single data file
http://www.litedb.org
MIT License
8.62k stars 1.25k forks source link

[BUG] Not disposing when a collection is big like more than one million items #2400

Open k-ahmedhm opened 11 months ago

k-ahmedhm commented 11 months ago

Not disposing when a collection is big, like more than one million items :

//Create database instance var db = new LiteDatabase(new ConnectionString { Filename = _dbConnectionString, Connection = ConnectionType.Shared }, mapper);

//Retrieving one million items

//this line is not freeing memory db.Dispose();