Skip to content

Feature/syncto improvements - #10

Merged
bplatz merged 3 commits into
masterfrom
feature/syncto-improvements
Nov 3, 2020
Merged

bplatz merged 3 commits into
masterfrom
feature/syncto-improvements

Conversation

@bplatz

@bplatz bplatz commented Oct 30, 2020

Copy link
Copy Markdown
Contributor

No description provided.

@bplatz
bplatz requested a review from a team October 30, 2020 20:00

@cap10morgan cap10morgan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some formatting / style notes you can take or leave.

Comment thread src/fluree/db/connection.cljc Resolved
Comment thread src/fluree/db/conn_events.cljc Resolved
Comment thread src/fluree/db/api/ledger.cljc Resolved
@bplatz
bplatz merged commit 800855d into master Nov 3, 2020
@bplatz
bplatz deleted the feature/syncto-improvements branch November 3, 2020 16:50
flyingmachine pushed a commit that referenced this pull request Feb 22, 2023
aaj3f added a commit that referenced this pull request Jul 18, 2026
…d crawl + wildcard TM-prune guard

The W4-1b fold sets star_constraints on the crawl wildcard, which flipped
has_star_members() and thereby (catch #10) DISABLED the trust_fk_refs
FK-template ref shortcut by construction — the folded crawl paid a full
parent-table scan (FACT_ORDER 36M) for every RefObjectMap POM that the
plain crawl renders scan-free. This was F-16's residual, realized by
W4-1b's own mechanism.

- ref_template_shortcut (operator.rs): re-enabled for a folded wildcard
  ONLY when every folded constraint is ObjectConstant::Scalar (catch #11:
  an IRI constraint on a ref predicate would be satisfied by the templated
  render of a DANGLING FK — the shortcut skips exactly the parent scan
  that would have dropped that subject = over-match). Decimal/Double
  constants are deliberately conservative-excluded (sound parent-scan
  path; only plain scalars qualify). Helper folded_wildcard_all_scalar +
  unit gate test covering scalar/iri/mixed/star/plain/fixed shapes.
- star_required_preds TM-prune: now fixed-predicate-star-only
  (predicate_var.is_none()). The all-preds prune argument does not
  transfer to a wildcard, which emits per-(p,o) across co-subject maps —
  pruning a map lacking the folded constraint predicate would drop its
  rows for vertically-partitioned subjects (F10-class mappings).
- harness: admit the mixed_group_keys feature tag (q066/q067 re-tagged
  with it; q066 joins the smoke subset for tag coverage); corpus
  meta-tests updated for the 68-member corpus incl. q068 rows-only.

F-16 closes pending the live q068 telemetry (expect ref render via
FK-template, zero FACT_ORDER files planned).
aaj3f added a commit that referenced this pull request Jul 18, 2026
…lar-folded crawl

Extracts the trust_fk_refs admission into ref_template_shortcut_enabled
(non-behavioral: the parent-lookup build now calls the named fn) and pins
the fire condition the corpus structurally cannot exercise: SPARQL corpus
queries run via query_from where trust_fk_refs is always false, so a
shortcut regression is perf-silent to q068 (the flag-true-vs-path-taken
seam, catch #10's class).

f16_ref_template_shortcut_fires_for_scalar_folded asserts: admission true
for a scalar-folded crawl under trust + build_ref_shortcut Some for the
single-col templated ref (together = the build inserts the shortcut, no
parent scan); admission false for Iri-folded (catch #11 dangling-FK
over-match hazard — sound parent-scan path), for trust-off (the chat
path), and for fixed-predicate stars; plain wildcards unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants