- widgets
- abc123abc
- key1: val1
- key2: val2
- key3: val3
- ...
+ abc123abd
+ ...
- widgets-index
- abc123abc
- timestamp: 1289183274834
- abc123abd
- timestamp: 1289183274834
I am storing a collection of widget
objects and simultaneously keeping a separate list of their indices. When I fetch data from a selected object using a view of indices, I need to obtain a subset of the data object's properties.
I read somewhere that Firebase uses web sockets so I should not worry about the performance cost of multiple fetches? Did I understand that correctly?
At what point should I store the entire subset of object properties at the widgets-index
node instead of making a separate call to /widgets
?
Edit: