android - Firebase update a lot of children value -


suppose have 10000 children in "post" each node contain children "username". if "usera" added 6000 in 10000 of data. how can update "usera" in every node in "post"

firebase

you need know user posts.

you need structure :

root  |  +-- posts  |     |  |     +-- $postid  |           |  |           +-- text: $text  |           |  |           +-- username: $username  |  +-- userposts  |     |  |     +-- $userid  |           |  |           +-- $postid: true 

with structure can retrieve posts id user , update posts.


Comments

Popular posts from this blog

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -