Hello!
I’ve got my app generally working in Bubble, but I’m having a problem on the initial mass import steps I need to take. What I need to do is make a few GET calls to an external API and then break apart the responses (they’re in JSON) to the GET into individual things. Each step could produce up to 200 things.
The initial GET takes only a second or two from the external API and contains the data for the 200 things. My problem is the breaking up of that result is taking ~1-2 seconds per item to create the things… which obviously isn’t the best user experience when importing a chunk of data.
How I’m currently executing is the following:
- User initiates the import which passes to a Backend Workflow
- Backend Workflow has an individual step of Schedule an API Workflow (Create a Thing) on a List. The List is the result of the GET.
- The workflow “Create a Thing” is populated with the parameters from the GET results, then creates the Thing based upon those parameters.
- There’s a few subsequent Schedule an API workflow steps based upon incremental parameters so I get all the user’s results
This seems very inefficient and it’s processing very slowly. Is there a better way to do this?
EDIT: Just for clarity, the only GET is for each list of activities, there aren’t any subsequent calls to the external API in the creation of the things.