Firestore is amazing, but...
Google Cloud Firestore is a serverless NoSQL document database that scales horizontally - which means it ad...
For further actions, you may consider blocking this person and/or reporting abuse
Regarding "MAINTAIN_COUNT", does it handle for higher parallel updates? Firestore document has a limit of 1 write per sec and the have an extension to handle this drawback.
Can you please let me know internally Integrify uses sharded counters or has 1 write/sec limit?
Overall, this is a serious pain point and glad your package solves this. Great work!
Thanks for the question @ayyappa99
Currently, writes in MAINTAIN_COUNT are not sharded and limited to max 1/sec - but I have opened a enhancement issue to track it for future github.com/anishkny/integrify/issu...
Looks useful. Can it do Many to many? How do I delete a stale reference from an array of foreign keys. given:
/parents/
parentId/
mychildren (array of FK childId)
/children/
childId/
if I delete a child, how do I delete from mychildren array?
Or do you think I should use a "joining" document?
Hello very nice!
What about if target is a subcollection of a document?
Like:
users:[
user: {
userID
}
]
comments: [
comment: {
liked: [
userID
]
}
]
Thats a great question @camillo777 .
As of v2.2.0, you can now replicate into and delete references from subcollections by specifying
isCollectionGroup: truein the target collection:See README for full details.
Yes thank you I managed to do it.
Works like a charm.
Another question for my example.
Can the foreignKey be the id of the target Firestore doc? What is the exact field name?
And: is it safe to use the same document id in multiple collections?
For example I have a users collection and I want to add "liked" users to a doc as a subcollection. I would use the same id of the user, but is it safe at a Firestore model level?
Thank you