--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/6976f8a8-8b59-4b5d-a17e-666cee8469da%40googlegroups.com.
I don't, but here's a blog post about the unique ID values generated by push(), in case you want to read up on that: https://firebase.googleblog.com/2015/02/the-2120-ways-to-ensure-unique_68.htmlThere are additional code examples on the various pages I already linked to.
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/1c600412-c1d6-454c-a30b-6f95f402e031%40googlegroups.com.
For any real application, your "number string" might still become very large, though. For example, if you plan to eventually have more than 100 users (your two-digit ID would only allow that many), the ID would need to be longer. Same if you want to allow more than 1,000 transactions to happen on a single day. Last but not least, it might be important for this number to not be sequential and guessable - in which case, having all information (ID, date, #) available as clear text with no additional "filler" is not a good idea.Even assuming that all of this is not relevant, some of the other parts like making sure that the next available transaction# is properly stored and updated are still non-trivial. It would be better if you could show what you already have, and especially what Firebase products you are using (I assumed RTDB before, but that might not even be the case).
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/6f6b380c-a876-41a7-9874-e36a63ca4fdb%40googlegroups.com.
For any real application, your "number string" might still become very large, though. For example, if you plan to eventually have more than 100 users (your two-digit ID would only allow that many), the ID would need to be longer. Same if you want to allow more than 1,000 transactions to happen on a single day. Last but not least, it might be important for this number to not be sequential and guessable - in which case, having all information (ID, date, #) available as clear text with no additional "filler" is not a good idea.Even assuming that all of this is not relevant, some of the other parts like making sure that the next available transaction# is properly stored and updated are still non-trivial. It would be better if you could show what you already have, and especially what Firebase products you are using (I assumed RTDB before, but that might not even be the case).
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/6f6b380c-a876-41a7-9874-e36a63ca4fdb%40googlegroups.com.