Skip to content

LUBM Q9: compare encoded ids in batched-exists checks against a constant class #2290

Open

Description

@bplatz

On LUBM Q9, after the batched join step that closes a cycle, most of the remaining time (~350 ms warm on LUBM-25, served from a reasoning index) goes to:

  • scatter/emit and binding clones; and
  • batched-exists checks against a constant class (?x a Student, ?z a Course). For each row these decode the row's object and re-encode the constant class IRI (term_matches_probe_value → encode_iri, fluree-db-query/src/join.rs).

Proposed: resolve the constant class to its encoded id once per operator, compare encoded values per row, and fall back to the decoded comparison only where the encoding differs. Measure on EC2 against the current lane, and keep equal row sets on all 14 LUBM queries.

Activity

  1. added
    P3
    area:query
    performance
    on Nov 9, 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:queryperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions