mgutz / mapper

Lightweight, blazing fast node.js ODM on top of mysql-libmysqlclient
MIT License
124 stars 11 forks source link

no guarantee of order of results from execParallel #8

Open SharonU opened 10 years ago

SharonU commented 10 years ago

execParallel is based on caolan/async's each function, on which is noted:

"Note, that since this function applies the iterator to each item in parallel there is no guarantee that the iterator functions will complete in order."

mgutz commented 10 years ago

There is also execSeries. I added execParallel for symmetry. TBH, I rarely used it. I used it in testing to delete data from a set of tables without concern for order.