databaseCompactCondition property

DatabaseCompactCondition? databaseCompactCondition
final

Sets conditions that will trigger each underlying database (individually) to compact/shrink

Isar databases can contain unused space that will be reused for later operations and storage. This operation can be expensive, as the entire database must be copied. Ensure your chosen conditions do not trigger compaction too often.

Defaults to triggering compaction when the size of the database file can be halved.

Set to null to never automatically compact (not recommended). Note that exporting a store will always compact it's underlying database.

Implementation

final DatabaseCompactCondition? databaseCompactCondition;