I have deep nested collection and sub collections. I am just worry about peformance
Will affect deep nested collections and sub collections on peformance?
Here is deep nested collections and sub collections:
db.collection("col1/doc1/col2/doc2/col3/doc3/col4").doc(doc4).set(data);
Or it will be faster to separate them like bellow:
db.collection("col1/doc1/col2").doc(doc2).set(data);
// and
db.collection("col3/doc3/col4").doc(doc4).set(data);
Now which of them are faster and peformant?