Skip to content

Bulk-import namespace preflight counts prefixes the MostGranular way under NamedLocal #2429

Closed

Description

@bplatz

Before a bulk import, the namespace preflight (fluree-graph-turtle/src/splitter.rs) samples the input and counts distinct prefixes. The prefix it counts for an IRI runs up to its last / or #, which is the MostGranular rule. Past NS_PREFLIGHT_BUDGET, the import switches the ledger to HostPlusN(1) (fluree-db-api/src/import.rs).

New ledgers on next split under NamedLocal (#2422). Under NamedLocal an IRI ending in a delimiter has no namespace of its own, so a dataset has fewer prefixes than the preflight counts. The preflight can therefore switch to HostPlusN(1) for a dataset that would fit under NamedLocal.

Fix: count prefixes under the mode the import's ledger will use, through canonical_split, rather than with a local copy of the rule.

Activity

  1. added this to the 5.0.0 milestone on Nov 17, 2026
  2. added
    P3
    area:transact
    on Nov 17, 2026
  3. bplatz commented on Nov 20, 2026

    @bplatz
    ContributorAuthor

    Fixed on next by #2422 (merged 2026-11-19, 1767391), in df4aafc: the preflight now counts prefixes the way the new ledger splits them. The PR's Fixes keyword didn't close this because its base was next.

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:transact

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions