- Firestore has better querying and more structured data
- document-model database
- store data in Documents, organized into Collection
- Each document contain a set of key-value pairs.
- Documents can contain sub collections and nested objects.
- Search multiple field.
- Realtime DB better latency
Pricing Model
- Realtime DB = amount of downloaded and store on DB.
- Firestore DB = number of reads or write.
- Traditional App, Request large of data > Firestore
- Many updates in second > Realtime
Firestore Data Model
- Similar to JSON
- Document is record, map value with name
- name of document is unique (add() will automatically)
No comments:
Post a Comment