Firebase – Firestore Data Structure Design: Difference in Query performance using .where('IdField','==', id) vs .doc(id)
What's the difference between querying firestore using .where() and looking up a specific doc.id? say I can choose to structure my collection in 2 ways: collection1 that has doc.id = myspecificIDstring I can query like db.collection('collection1').doc('myspecificIDstring') collection2 that has a…