3 ms·
sooner or later you'll make a mistake in your code and use a document_id where you meant to use a user_id, and send a bunch of someone else's data to a user. t
by marcus_holmes 6y ago
sooner or later you'll make a mistake in your code and use a document_id where you meant to use a user_id, and send a bunch of someone else's data to a user.
the "big integer" stops this happening for other integers that might be used in your code and that you might accidentally send to the database as a user_id.
- dragonwriter 6y ago> the "big integer" stops this happening for other integers that might be used in your code Unless you might also use big integers in your code. 32-bits is big enough for all numbers-used-as-numbers-instead-of-ids is...a risky assumption.