javascript - Is there a way to limit the number of children in firebase? -


i have firebase i'm pushing quite regularly, chat, , i'm concerned number of children gathering in firebase. removed when connections gone there way limit number of them in there?

cheers!

you implement using ring buffer. if wanted have no more 50 nodes, have children of node referenced /0, /1, /2, ... /49, , write data being generated. using transaction() have location in firebase keep track if current 'start' , 'end'. priorities used in conjunction approach keep ordered (for example, timestamp.) approach have benefit of not having prune data grew.

we don't have mechanism enforce using server-side security rules, i've made note of in our internal tracker.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -