what is the most efficient way to organize a json data tree in firebase since I need to post data and then check for repeated data
I am creating a simple email subscription structure
this model?
subscribers
RandomKeyCode
email
created_at
or this one?
subscribers
emailAsKey
email <--- repeat email field
created_at
(It seems to me more readable to use email as a key in this case, and I imagine I can check it more easily when the user tries to enter a repeated email.)
or some other way?