Is this best practice or what is the best way to achieve this?
What I want;
- fetch all data in the beginning as batch and only once
- merge batch with initial data, that needs to load immedtiately, because fetched data belongs with initialdata , but initialdata needs to be present immediately
- provide a o(1) lookup of each spice, individual data, to make it easy and accessible to set new data, check/look it up and get it, I can’t use maps, since they don’t serialize well and objects are clunky.
- fetch individual data immediately if the batch fetch isnt finished when its needed

0 Replies