Skip to content

Add a transact_filtered_delete bench — filtered-DELETE staging has no coverage #1684

Closed

Description

@bplatz

Raised in review of #1675.

Problem

Nothing benches the filtered-DELETE staging path. fluree-db-api/benches/transact_commit.rs does not exercise WHERE/DELETE at all, which is how a retractions × novelty shape in hydrate_list_index_meta_for_retractions sat unnoticed until a 40k-subject delete on a novelty-heavy ledger stopped finishing altogether. #1675 fixed that shape; nothing currently guards the win.

Ask

A transact_filtered_delete bench over a novelty-heavy ledger:

  • Enough retracted (subject, predicate) groups and enough novelty that a per-group overlay walk is visibly quadratic — the regression this is meant to catch is superlinear, so the fixture has to be large enough for the two curves to separate.
  • Cover both branches of the skip guard (snapshot.has_list_meta == Some(false) with clean novelty vs. a @list present), since they have very different cost profiles: the reference numbers from perf: make filtered-DELETE list-meta hydration O(novelty), not O(retractions × novelty) #1675 were 0.9 s with no lists and 3.1 s with a @list present on the same 40.5k-retraction delete.
  • Add the matching regression-budget.json entry so workspace_reconcile stays happy.

Related

validate_staged_nodes in the SHACL path has the same per-subject-range shape and is already named as a follow-up on #1675; worth deciding whether one bench covers both or they want separate fixtures.

Origin

Review of #1675.

Activity

  1. added
    enhancement
    on Aug 25, 2026
  2. added
    P2
    area:transact
    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

    P2area:transactenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions