You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Batch hasChildren resolution in class tree endpoint
Resolve hasChildren for the whole node set in a single grouped count
query instead of one LIMIT 1 SPARQL round-trip per node. hasChildren is
exactly (childrenCount > 0), so Class.load_has_children_batch derives it
from already-loaded data (the children-count aggregate or loaded
children) and falls back to one grouped query for the rest, pre-warming
@intlHasChildren so the per-node load_has_children calls become no-ops.
Wired into Concept::Tree#tree (path nodes + their children) and
OntologySubmission#roots (gated on :hasChildren), removing the per-root
N+1 that hits up to FLAT_ROOTS_LIMIT queries for flat ontologies.
Adds regression tests asserting hasChildren <-> childrenCount across OWL
and SKOS trees and that roots(:hasChildren) preserves loaded attributes.
#296
0 commit comments