Suppose I have a collection called savedGamesFull
. Whenever a document is created in this collection, it receives the Firebase-generated ID; I then reuse this ID and give it to another document in a parallel collection savedGamesLight
.
In another example, for each document in players
collection, there would be a document with the same id in playerPublicProfiles
and playerStats
collections.
Basically, all this naming method does is that it saves a few lines of code here and there, and there is no need to keep the userId
field in those parallel documents.
But after reading about hotspotting (although it doesn't seem to apply here) I got concerned that there may be issues with this naming.
So are there any downsides to having the same document IDs in several different collections?