Skip to content

Importer is becoming slower when geoserver catalog becomes big #285

@pchevali

Description

@pchevali

Hi,

I know that this importer is being integrated in geonode itself but i think the problem is the same, I noticed that the import process is getting slower and slower the more data there is in the geoserver catalog (with my setup, roughly 1000 layers results in 60seconds per layer import, no SSD).
From the geoserver log I see that there is a request made on each stores in the workspace of geoserver.

I think that this is due to the sanity_check phase of the publisher, as it makes request over all stores of geoserver with all possible names to check for srid.

https://github.com/GeoNode/geonode-importer/blob/master/importer/publisher.py#L75

As the publish_resources makes a call to geoserver-restconfig function : create_coveragestore, which returns the created resource, maybe we can avoid the sanity check over all the stores ?

https://github.com/GeoNode/geoserver-restconfig/blob/ffbcbb175e9df37dbbd4bf0240058d79fb92eca0/src/geoserver/catalog.py#L689

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions