Bridge between PostgreSQL access-path planning and Datahike secondaries.
The SQL predicate remains authoritative. This namespace only constructs conservative candidate queries and exposes a generic external-engine clause so Datahike can pass an EntityBitSet through its planner without first materializing a large vector of entity ids in pg-datahike.
Bridge between PostgreSQL access-path planning and Datahike secondaries. The SQL predicate remains authoritative. This namespace only constructs conservative candidate queries and exposes a generic external-engine clause so Datahike can pass an EntityBitSet through its planner without first materializing a large vector of entity ids in pg-datahike.
(candidates _idx-ident query-spec)Generic secondary candidate set used from generated Datalog clauses.
The planner recognizes the metadata and calls ISecondaryIndex/-search on the named immutable index generation. The function body is merely the legacy fallback shape; pg-datahike only emits this clause when the external-engine planner is available.
Generic secondary candidate set used from generated Datalog clauses. The planner recognizes the metadata and calls ISecondaryIndex/-search on the named immutable index generation. The function body is merely the legacy fallback shape; pg-datahike only emits this clause when the external-engine planner is available.
(filtered-candidates _idx-ident query-spec)Secondary candidate set that must consume an upstream entity relation.
This is a separate marker from candidates because accepting a bitmap and
requiring one are different planner contracts. Filtered ANN needs the
latter: running before the SQL predicate would recreate PostgreSQL's
post-filter under-fill cliff and would prevent Proximum from using its
native filtered search.
Secondary candidate set that must consume an upstream entity relation. This is a separate marker from `candidates` because accepting a bitmap and requiring one are different planner contracts. Filtered ANN needs the latter: running before the SQL predicate would recreate PostgreSQL's post-filter under-fill cliff and would prevent Proximum from using its native filtered search.
(scriptum-query-spec query)Compile a PostgreSQL tsquery into a complete Scriptum candidate query.
Returns nil when Scriptum's analyzer-free builders are unavailable. The caller must then keep the exact primary scan. The returned declarations are deliberately PostgreSQL-facing: Lucene candidates always require @@ recheck, have complete recall, and carry no SQL-visible ordering.
Compile a PostgreSQL tsquery into a complete Scriptum candidate query. Returns nil when Scriptum's analyzer-free builders are unavailable. The caller must then keep the exact primary scan. The returned declarations are deliberately PostgreSQL-facing: Lucene candidates always require @@ recheck, have complete recall, and carry no SQL-visible ordering.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |