Skip to content

Investigate dropping the connection pooling from hakunapi-source-gpkg #179

@jampukka

Description

@jampukka

Currently we create one Hikari connection pool per sqlite file. Each connection pool opens three threads (housekeeper, connection adder, connection closer) for the rest of the process. While this is a non-issue with few gpkg files this can quickly consume large amounts of memory just for the background threads with hundreds of geopackage files. I'm not sure if we even benefit from connection pooling with geopackages, we should investigate the performance effects of 1) simply opening and closing the DB connection (file) per query 2) keeping single shared connection open per gpkg (this might be problematic with our stream-it-all ideology) 3) lazily opened threadlocal connection per gpkg.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions