I am looking to efficiently store a binary tree on my server for use in the IOS and Android applications of all my users.
What is the most optimal method (in terms of speed) to accomplish this task?
Edit: It is necessary for all my users to be able to update a value within the tree, which will trigger an event in my cloud code.
- Upon triggering the event, I must retrieve the entire tree
- Subsequently, I will need to add or remove a node from it
- Finally, save the updated tree on the server
Thank you,