-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
feat(medusa, core-workflows, product): slightly improve create cart workflow #5725
Conversation
🦋 Changeset detectedLatest commit: 34585d7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Ignored Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What
Improve create cart workflow, passing the entity instead of just the id when we have the entity at hand will prevent the create step to do the entire work a second time from within the cart service. The workflow have been design to split the creation into multiple steps, calling the cart service create method will also do the same step as we are currently only providing ids. On simple cart creation involving the region I got a 15% better response time from 108ms to 92ms after 600 requests for 45s