Skip to content
This repository was archived by the owner on Mar 7, 2018. It is now read-only.

Extract shared multi-queries code#82

Merged
c-w merged 3 commits intomasterfrom
multi-queries
Jul 12, 2017
Merged

Extract shared multi-queries code#82
c-w merged 3 commits intomasterfrom
multi-queries

Conversation

@c-w
Copy link
Contributor

@c-w c-w commented Jul 11, 2017

No functional change.

*/
function executeQueries(queries) {
return new Promise((resolve, reject) => {
Promise.all(queries.map(query => executeQuery(query.query, query.params)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about using asyncEachLimit instead of Promise.all?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That'll be a good future enhancement.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice ok!

Copy link
Contributor

@Smarker Smarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, and it would be nice to add asyncEachLimit as a future enhancement.

@c-w c-w merged commit 2b6d058 into master Jul 12, 2017
@c-w c-w deleted the multi-queries branch July 12, 2017 18:54
@c-w c-w removed the in progress label Jul 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants