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

feat(medusa): Performance improvement of listing shipping options #2632

Merged
merged 8 commits into from
Nov 21, 2022

Conversation

adrien2p
Copy link
Member

@adrien2p adrien2p commented Nov 18, 2022

Prod response time (named "rp" below): 7s
Local rp: 4.5s

After changes

Local rp: 16-60ms

Overall improvement up to x250

The side effect of this should be felt on every endpoint rp

FIXES CORE-813

@changeset-bot
Copy link

changeset-bot bot commented Nov 18, 2022

🦋 Changeset detected

Latest commit: 998bb94

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

@olivermrbl
Copy link
Contributor

/snapshot-this

@github-actions
Copy link
Contributor

🚀 A snapshot release has been made for this PR

Test the snapshots by updating your package.json with the newly published versions:

yarn add @medusajs/medusa@1.6.4-snapshot-20221118155333
yarn add medusa-payment-stripe@1.1.48-snapshot-20221118155333
yarn add medusa-plugin-discount-generator@1.1.20-snapshot-20221118155333
yarn add medusa-plugin-restock-notification@1.0.1-snapshot-20221118155333

Latest commit: 3aa0827

@adrien2p adrien2p changed the title feat(medusa): Improve overall algorithmic performances feat(medusa): Improve overall algorithmic performances for list-shipping-options Nov 18, 2022
@adrien2p
Copy link
Member Author

/snapshot-this

@github-actions
Copy link
Contributor

🚀 A snapshot release has been made for this PR

Test the snapshots by updating your package.json with the newly published versions:

yarn add @medusajs/medusa@1.6.4-snapshot-20221118173847
yarn add medusa-payment-stripe@1.1.48-snapshot-20221118173847
yarn add medusa-plugin-discount-generator@1.1.20-snapshot-20221118173847
yarn add medusa-plugin-restock-notification@1.0.1-snapshot-20221118173847

Latest commit: 3aa0827

@adrien2p
Copy link
Member Author

adrien2p commented Nov 18, 2022

Used artillery for little load test + pm2

Screenshot 2022-11-19 at 00 42 51

@olivermrbl
Copy link
Contributor

/snapshot-this

@github-actions
Copy link
Contributor

🚀 A snapshot release has been made for this PR

Test the snapshots by updating your package.json with the newly published versions:

yarn add @medusajs/medusa@1.6.4-snapshot-20221119094555
yarn add medusa-payment-stripe@1.1.48-snapshot-20221119094555
yarn add medusa-plugin-discount-generator@1.1.20-snapshot-20221119094555
yarn add medusa-plugin-restock-notification@1.0.1-snapshot-20221119094555

Latest commit: 3aa0827

@adrien2p
Copy link
Member Author

New results

Screenshot 2022-11-20 at 00 35 45

@adrien2p
Copy link
Member Author

/snapshot-this

@github-actions
Copy link
Contributor

🚀 A snapshot release has been made for this PR

Test the snapshots by updating your package.json with the newly published versions:

yarn add @medusajs/medusa@1.6.4-snapshot-20221120001748
yarn add medusa-payment-stripe@1.1.48-snapshot-20221120001748
yarn add medusa-plugin-discount-generator@1.1.20-snapshot-20221120001748
yarn add medusa-plugin-restock-notification@1.0.1-snapshot-20221120001748

Latest commit: 3aa0827

@adrien2p adrien2p marked this pull request as ready for review November 20, 2022 12:42
@adrien2p adrien2p requested a review from a team as a code owner November 20, 2022 12:42
@olivermrbl olivermrbl changed the title feat(medusa): Improve overall algorithmic performances for list-shipping-options feat(medusa): Performance improvement of listing shipping options Nov 20, 2022
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, absolutely amazing performance improvements - great work 😍

@olivermrbl olivermrbl merged commit 5d977a8 into develop Nov 21, 2022
@olivermrbl olivermrbl deleted the feat/list-shipping-options-perf branch November 21, 2022 07:09
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