Promise pattern and handling multiple parallel fetches.
started a topic
over 6 years ago
I need to fetch data from multiple collections and I want to do this in parallel.
(I am not fetching relational data due to it's limitation (http://devcenter.kinvey.com/html5/guides/datastore#limitations), instead I am fetching collections separately and then I am handling the relations in my front end script. That is why I need to fully fetch all my collections before I proceed).
What is the right way of handling parallel requests? Does the Promise pattern offer any advantage here? To be honest I don't fully understand Promises. Or is there a way to load multiple collections within one fetch request without the limitations?