Skip to content

perf(api): multi-op SPARQL UPDATE re-adopts cumulative namespace deltas per operation (O(n²)) #1479

Open

Description

@aaj3f

Each operation's Txn.namespace_delta is a cumulative superset of its predecessors' (they share one lowering registry), and per-op staging re-adopts the whole thing (tx.rs adopt_delta_for_persistence), so an n-op request does O(n²) delta entries of adoption work. Realistic requests are small-n, so this is currently noise; making it O(n) means carrying per-op incremental deltas through the Txn IR — whose cumulative shape is now documented and load-bearing (see PR #1454's a9106bb, which relies on it for the union commit envelope).

Raised by @bplatz in the PR #1454 review; deferred there by agreement between both reviews ("fix only if huge requests appear").

Activity

  1. added
    P3
    area:sparql
    on Aug 25, 2026
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

    P3area:sparql

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions