strapi-connector-firestore icon indicating copy to clipboard operation
strapi-connector-firestore copied to clipboard

Lazily create flat collection documents

Open brettwillis opened this issue 2 years ago • 0 comments

Currently, a write operation is performed immediately on startup to ensure the existence of the document containing flattened collections. Because a read operation is cheaper than a write operation, it is better to

  • Read first to avoid a write operation on every subsequent startup
  • Perhaps do this lazily when an entity is first created, rather than on startup

brettwillis avatar Jul 24 '21 03:07 brettwillis