I have an app that saves all the data entered into a collection called data10. When the user finishes creating all the entries for the day, they press submit and data10 is patched into my data source and cleared. The users have complained that it takes too long to submit the data when they have a lot of entries. To fix this, I was thinking I could create a new collection caled tempdata. The user will press a button and we'll port over the data from data10 into tempdata and clear out data10. It will begin patching the data from tempdata into the data source allowing the user to continue to enter new data into data10.
Does anyone have any experience trying something like this? Is there a better way to go about doing something like this?
Also if you have a patch with a forall it’s going to slam through those as fast as possible and cripple the app while it goes it. You might look into adding a short delay as well to keep it from throttling your app.