Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(medusa): Concurrently get the items and count instead of sequentially #4367

Merged
merged 2 commits into from
Jun 21, 2023

Conversation

adrien2p
Copy link
Member

What
By default, findAndcount, getManyAndCount are doing two queries sequentially. First, they get the items and then they get the count. This pr only change the places where both are needed and make them concurrent instead of sequential.

@changeset-bot
Copy link

changeset-bot bot commented Jun 20, 2023

🦋 Changeset detected

Latest commit: 94169a7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@medusajs/medusa Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Jun 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
medusa-docs ⬜️ Ignored (Inspect) Jun 20, 2023 3:21pm

@adrien2p adrien2p marked this pull request as ready for review June 20, 2023 13:08
@adrien2p adrien2p requested a review from a team as a code owner June 20, 2023 13:08
Copy link
Contributor

@olivermrbl olivermrbl left a comment

Choose a reason for hiding this comment

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

lgtm - nice one!

@olivermrbl olivermrbl merged commit 7bf7d2a into develop Jun 21, 2023
@olivermrbl olivermrbl deleted the chore/improve-repo-find-and-count branch June 21, 2023 09:28
@github-actions github-actions bot mentioned this pull request Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants