Skip to content

Speed up node directory pages by limiting before IATA aggregation #109

Description

@n30nex

Node and map loading are slow on larger directories (reported around 20,000 nodes). In ListNodes, the node/IATA join is grouped and aggregated before the final timestamp sort and page limit.

I would like to test a focused query change that selects the filtered node page first and enriches only those rows. It should preserve all filters, IATA ordering, observer identity, neighbour counts and optional neighbour IDs. No API or ingestion changes are planned for this fix.

Validation will include a synthetic 20,000-node PostgreSQL dataset on a Raspberry Pi 5, before/after EXPLAIN ANALYZE, response equivalence for filters/cursors and normal Go checks. This is an AI-assisted investigation; code will be reviewed before a contribution is submitted.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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