Skip to content

Release PostgreSQL binary text keyset support in 0.2.6 - #65

Merged
eldonm merged 1 commit into
mainfrom
fix/postgres-binary-text-keyset
Nov 7, 2026
Merged

eldonm merged 1 commit into
mainfrom
fix/postgres-binary-text-keyset

Conversation

@eldonm

@eldonm eldonm commented Nov 7, 2026

Copy link
Copy Markdown
Member

Add an opt-in PostgreSQL keyset read for scoped text ordering. The read uses binary collation for text and ID, keeps missing values last, and uses separate index seeks for the non-null cursor and null tail. Unsupported predicates and scoped values outside the index contract fall back to the caller's portable implementation. Storage candidates remain subject to host authorization.

The release version is 0.2.6. Local PostgreSQL regression tests passed 83 cases. Integral Core's source qualification verified exact totals, title pages, exclusions, direct grants, and revocation with four concurrent reads at 250,000 and 500,000 records.

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

Benchmark comparison

Threshold: ±25% (informational, does not block merge)

benchmark baseline (s) current (s) delta status
tests/benchmarks/test_deferred_save_benchmarks.py::test_bench_deferred_save_batched_100 0.011753 0.016167 +37.6% REGRESSION (+37.6%)
tests/benchmarks/test_deferred_save_benchmarks.py::test_bench_immediate_save_100 0.011539 0.015991 +38.6% REGRESSION (+38.6%)
tests/benchmarks/test_graph_projection_benchmarks.py::test_warm_projection_capture[hierarchy] 0.002117 0.002801 +32.3% REGRESSION (+32.3%)
tests/benchmarks/test_graph_projection_benchmarks.py::test_warm_projection_capture[ontology] 0.002169 0.002938 +35.5% REGRESSION (+35.5%)
tests/benchmarks/test_graph_projection_benchmarks.py::test_warm_projection_capture[relationships] 0.002200 0.002863 +30.2% REGRESSION (+30.2%)
tests/benchmarks/test_graph_projection_benchmarks.py::test_warm_rich_projection_capture[hierarchy] 0.001763 0.002635 +49.5% REGRESSION (+49.5%)
tests/benchmarks/test_graph_projection_benchmarks.py::test_warm_rich_projection_capture[ontology] 0.001825 0.002358 +29.2% REGRESSION (+29.2%)
tests/benchmarks/test_graph_projection_benchmarks.py::test_warm_rich_projection_capture[relationships] 0.001878 0.002528 +34.6% REGRESSION (+34.6%)
tests/benchmarks/test_jsondb_benchmarks.py::test_bench_jsondb_batched_saves_500 0.441105 0.383738 -13.0% OK
tests/benchmarks/test_jsondb_benchmarks.py::test_bench_jsondb_count_empty_query 0.001199 0.001424 +18.8% OK
tests/benchmarks/test_jsondb_benchmarks.py::test_bench_jsondb_count_filtered 0.067510 0.071810 +6.4% OK
tests/benchmarks/test_jsondb_benchmarks.py::test_bench_jsondb_find_filtered 0.055413 0.073551 +32.7% REGRESSION (+32.7%)
tests/benchmarks/test_jsondb_benchmarks.py::test_bench_jsondb_save_throughput 0.001314 0.001353 +3.0% OK
tests/benchmarks/test_postgres_benchmarks.py::test_bench_postgres_find_many_bulk 0.000523 0.000738 +41.2% REGRESSION (+41.2%)
tests/benchmarks/test_postgres_benchmarks.py::test_bench_postgres_traverse_depth 0.000274 0.000441 +61.0% REGRESSION (+61.0%)
tests/benchmarks/test_sqlite_benchmarks.py::test_bench_sqlite_count_empty 0.000116 0.000163 +41.1% REGRESSION (+41.1%)
tests/benchmarks/test_sqlite_benchmarks.py::test_bench_sqlite_count_fallback_via_regex 0.016459 0.022699 +37.9% REGRESSION (+37.9%)
tests/benchmarks/test_sqlite_benchmarks.py::test_bench_sqlite_count_pushdown 0.000742 0.001053 +42.0% REGRESSION (+42.0%)
tests/benchmarks/test_sqlite_benchmarks.py::test_bench_sqlite_find_fallback_via_regex 0.016349 0.022524 +37.8% REGRESSION (+37.8%)
tests/benchmarks/test_sqlite_benchmarks.py::test_bench_sqlite_find_pushdown 0.000207 0.000287 +38.6% REGRESSION (+38.6%)
tests/benchmarks/test_sqlite_benchmarks.py::test_bench_sqlite_sort_limit_pushdown 0.001379 0.001817 +31.7% REGRESSION (+31.7%)

@eldonm
eldonm merged commit 4ea6e45 into main Nov 7, 2026
6 checks passed
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.

1 participant