Firebase Getchildrencount() Is Counting Deleted Data
I have a parent node 'posts' and i need to get the number of children under this parent. I delete the whole 'posts' node itself. Re-create 'posts' with 1 children inside of it. us
Solution 1:
I have found the solution. There might be some caching on the client side that is causing this issue (in my case, Android as client). The children count is back to normal after i deleted the app from the phone and install then run again.
Hopefully someone from Firebase can explain this behaviour, and maybe tell us how to deal with this. Anyway to clear the cache? This can be a real pain if you are already at production and asking your user to re-install the app simply is not possible.
Post a Comment for "Firebase Getchildrencount() Is Counting Deleted Data"