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

Performance scalability issues with Thumbnail generation #9637

Closed
afabiani opened this issue Jul 11, 2022 · 0 comments
Closed

Performance scalability issues with Thumbnail generation #9637

afabiani opened this issue Jul 11, 2022 · 0 comments
Assignees
Labels
3.3.x 4.0.x major A high priority issue which might affect a lot of people or large parts of the codebase master performance Issues regarding server Performance and Speed

Comments

@afabiani
Copy link
Member

When creating a Thumbnail, GeoNode actually performs a WMS GetMap Request against GeoServer.

The issue with the former request is that before performing it GeoNose alwyas fetches the whole GetCapabilities docuemnt (see here).

The OWSLib constructor wms = WebMapService(...) by default perform a full GetCapabilites request against the server.

A severe issue with this approach is that this is not scalable, other than we already know the layers we want to fetch and therefore there's no need to perform an additional request.

The proposed solution would be to perform the GetMap straight without parsing the GetCapabilites document first.

@afabiani afabiani added major A high priority issue which might affect a lot of people or large parts of the codebase performance Issues regarding server Performance and Speed 3.3.x master 4.0.x labels Jul 11, 2022
@afabiani afabiani self-assigned this Jul 11, 2022
github-actions bot pushed a commit that referenced this issue Jul 11, 2022
#9638)

* [WIP] Direct GetMap request

* [Fixes #9637] Performance scalability issues with Thumbnail generation

* [Fixes #9637] Performance scalability issues with Thumbnail generation

* [PEP-8] Fix syntax issues

* - Fix test cases
afabiani added a commit that referenced this issue Jul 11, 2022
#9638) (#9640)

* [WIP] Direct GetMap request

* [Fixes #9637] Performance scalability issues with Thumbnail generation

* [Fixes #9637] Performance scalability issues with Thumbnail generation

* [PEP-8] Fix syntax issues

* - Fix test cases

Co-authored-by: Alessio Fabiani <[email protected]>
afabiani added a commit that referenced this issue Jul 11, 2022
afabiani added a commit that referenced this issue Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.3.x 4.0.x major A high priority issue which might affect a lot of people or large parts of the codebase master performance Issues regarding server Performance and Speed
Projects
None yet
Development

No branches or pull requests

1 participant