YousefED / SyncedStore

SyncedStore CRDT is an easy-to-use library for building live, collaborative applications that sync automatically.

Home Page:https://syncedstore.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: How many stores should you create?

AlexW00 opened this issue · comments

I'm building a flashcards app. Until now I used PouchDB and created a new Document for each flashcard. Using SyncedStore, is it recommended to create one "flashcards" object that holds all cards or one store for each card? Note that a flashcard can contain cached html.

This depends on your application. In general, I would say you only need multiple stores if you have external reasons for it, such as sharing / permissions. Documents (stores) are a good level to isolate permissions. If you don't have this boundary, it's fine (and recommended) to keep all flashcards in one store