Repo Link ⇒ https://github.com/c2siorg/Codelabz
Live Link → https://codelabz-2cd64.web.app/
Firebase Services
Firebase Firestore
- data -> string(image url), number
- document model database
- collections {
documents -> fields {
collections ...
}
}
addDoc(collection(db, "") {
})
q = query(collection(db, ""),where(),)
getDocs(q).then()
- database rules -> database.rules.json
- configuration -> firebase.json
- project information -> .firebaserc
- faster reading
- collection group queries(collectionID, fieldPath, index)
- queries - limit
- composite indexes (concatenation of two columns)
- index is added automatically whenever a document is created
- time to run a query is proportional to number of results you get back (but not number of documents you are reading)
- charged for number of reads, writes, deletes
- security rules -> get(), exists() - considered as reads
- denormalisation