Possibility to run create() sequentially #4038
Labels
enhancement
This issue is a user-facing general improvement that doesn't fix a bug or add a new feature
Milestone
as @vkarpov15 commented here #723 (comment) the
create()
method runs a bunch ofsave()
calls in parallel.It would be useful to implement some kind of callback or sequential promises to allow keeping the order for example in a number sequence like in the following example:
Output:
My current use case, is when a user imports a file into my app, for creating a bunch of documents, the reference number goes crazy, and I would expect them to keep the order.
I know this could be easily implemented by iterating myself and running
save()
however It could be an option in thecreate()
method and probably more performant 👍The text was updated successfully, but these errors were encountered: