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

Improving GetEGRID performance #1680

Merged
merged 1 commit into from
Jan 24, 2023
Merged

Conversation

peterschaer
Copy link
Collaborator

With this change the request time goes down to 200ms on my development environment. On production it may even be quicker. Maybe someone has a more elegant solution.

@codecov
Copy link

codecov bot commented Jan 13, 2023

Codecov Report

Merging #1680 (870639b) into master (98843fa) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1680      +/-   ##
==========================================
+ Coverage   77.50%   77.51%   +0.01%     
==========================================
  Files         127      127              
  Lines        5209     5212       +3     
==========================================
+ Hits         4037     4040       +3     
  Misses       1172     1172              
Flag Coverage Δ
unittests 77.51% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pyramid_oereb/core/processor.py 97.85% <100.00%> (+0.04%) ⬆️
pyramid_oereb/core/views/webservice.py 86.66% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@peterschaer
Copy link
Collaborator Author

This PR tries to fix #1679

Copy link
Collaborator

@michmuel michmuel left a comment

Choose a reason for hiding this comment

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

Looks good and works in our environment. I did not test the improvement in performance.

Copy link
Collaborator

@vvmruder vvmruder left a comment

Choose a reason for hiding this comment

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

This is a good catch. It goes in the right direction-since we load config on server boot, the next improvement can be based on that. THX @peterschaer

@jwkaltz
Copy link
Member

jwkaltz commented Jan 24, 2023

Hi @peterschaer , please feel free to merge your request.

@peterschaer peterschaer merged commit b277859 into master Jan 24, 2023
@peterschaer peterschaer deleted the improve_getegrid_performance branch January 24, 2023 06:55
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.

4 participants