[Geoserver-devel] [JIRA] (GEOS-11089) Performance penalty adding namespaces while loading catalog

Gabriel Roldan created an issue

GeoServer / ImprovementGEOS-11089

Performance penalty adding namespaces while loading catalog

Issue Type:

ImprovementImprovement

Assignee:

Unassigned

Created:

31/Jul/23 7:04 PM

Priority:

MediumMedium

Reporter:

Gabriel Roldan

DefaultCatalogFacade.add(Namespace Info) hinders performance, especially during startup with many workspaces/namespaces.

The reason is CatalogImpl.add(NamespaceInfo) will validate there’s no other namespace with the same URI, for which IsolatedCatalogFacade will call getNamespacesByURI(String):List, which calls CatalogInfoLookup.list(...) with a predicate to filter out the namespaces by uri.

This on itself ends up being heavier and heavier as the number of namespaces increase.

The proposed solution is to for the namespaces CatalogInfoLookup to maintain an index of NamespaceInfo by URI.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100233-sha1:da16c62)

Atlassian logo