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

Optimize performance for /api/-/query endpoints #357

Merged
merged 1 commit into from
Nov 8, 2021

Conversation

amvanbaren
Copy link
Contributor

@amvanbaren amvanbaren commented Oct 28, 2021

To measure performance I created server/src/gatling/scala/org/eclipse/openvsx/RegistryAPIGetQuerySimulation.scala
To run it: ./gradlew --rerun-tasks gatlingRun-org.eclipse.openvsx.RegistryAPIGetQuerySimulation

gatling-api-query-results

I saw 2.5x more requests, try to reproduce and if it works please approve

Fixes #356

Changes:
Reduced database queries
Use DTOs instead of managed entities
Fixed unittests
Added Gatling simulation

@akosyakov
Copy link
Member

@amvanbaren Could you update description like here: #350 (comment)? thank you 🙏

Copy link
Member

@spoenemann spoenemann left a comment

Choose a reason for hiding this comment

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

Thanks!

Reduced database queries
Use DTOs instead of managed entities
Fixed unittests
Added Gatling simulation
Copy link
Member

@akosyakov akosyakov left a comment

Choose a reason for hiding this comment

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

@amvanbaren thanks for clarifications 🙏 good to see concrete numbers

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.

Optimize performance for /api/-/query endpoints
3 participants