Skip to content

Multi-operation netting reads the base for facts whose first op is a retraction #2064

Open

Description

@bplatz

SequentialStager::drop_reversed_facts (fluree-db-api/src/tx.rs) looks up every fact whose first and last ops differ in the original base, one single-slot read per fact.

Since #2008, staging retracts only a stored fact, so a fact whose first op is a retraction was held by the base: only a first-op assert needs the read. The remaining reads could also go through one CurrentFacts::of_slots call instead of one per fact.

Minor; found while reviewing #2008.

Activity

  1. added
    P3
    area:transact
    performance
    on Oct 11, 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:transactperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions