enableQueryCache property

bool enableQueryCache
final

Whether to cache the results of local DatumManager.query calls.

Defaults to false. The local database is already a fast cache, and caching query results returned shared, mutable entity instances that could go stale (e.g. when data changed via sync/realtime outside the manager) and break reactive UI updates (unchanged object references). Enable this only if you have measured a need and understand those trade-offs.

Implementation

final bool enableQueryCache;