[codex] Optimize D1 full-field lookups#45
Merged
Conversation
Rewrite mojidata full-field SQL predicates so D1 can use existing IVS, SVS, TGHB, MJIH, and KDPV indexes, and add missing IDS and MJIH phonetic indexes to generated databases. Related: #41 Generated-by: Codex/GPT-5.4
Switch the standalone D1 Worker bindings to the 20260504-d1-indexes release databases after import and smoke validation. Related: #41 Generated-by: Codex/GPT-5.4
Include current IDS mirror and rotation operators in ids_similar while retaining legacy aliases, and update SQL-shape tests for API core and D1. Related: #42 Generated-by: Codex/GPT-5.4
Cover current IDS mirror and rotation operators across sql.js, better-sqlite3, node:sqlite, and sqlite-wasm API DB paths. Related: #42 Generated-by: Codex/GPT-5.4
Introduce a shared HTTP API conformance helper and run it against the default Node, sql.js, better-sqlite3, node:sqlite, sqlite-wasm, and D1 app paths. Related: #43 Generated-by: Codex/GPT-5.4
Add a dedicated prepare-db-cache job that materializes mojidata, idsdb, and idsdb-fts5 artifacts before validation so test failures do not prevent saving fresh DB caches. Related: #44 Generated-by: Codex/GPT-5.4
Add the same database cache warmup job to the release workflow so release validation and publishing steps can reuse prepared mojidata and IDS artifacts even when later release steps fail. Related: #44 Generated-by: Codex/GPT-5.4
Merged
mandel59
added a commit
that referenced
this pull request
May 3, 2026
Drop Linux optional dependency cache files that were generated by the release workflow from the Changesets release PR, keeping the release diff focused on version and changelog updates. Related: #45 Generated-by: Codex/GPT-5.4
mandel59
added a commit
that referenced
this pull request
May 3, 2026
Keep the Linux optional dependency archives generated by the release workflow because this repository tracks .yarn/cache for zero-install consistency across development and CI platforms. Related: #45 Generated-by: Codex/GPT-5.4
This was referenced May 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ids_similarto match the current IDS operators (,) while preserving legacy operator compatibility.20260504-d1-indexesblue/green databases and clean up obsolete Cloudflare D1 databases.ids_similar.Related Issues
Release Prep
@mandel59/mojidata,@mandel59/mojidata-api-core, and@mandel59/mojidata-cliat patch level.Releaseworkflow after this feature PR is merged tomain.Validation
corepack yarn changeset status --since=maincorepack yarn ci:testcorepack yarn ci:packcorepack yarn workspace @mandel59/mojidata-api testcorepack yarn workspace @mandel59/mojidata-api-sqljs testcorepack yarn workspace @mandel59/mojidata-api-better-sqlite3 testcorepack yarn workspace @mandel59/mojidata-api-node-sqlite testcorepack yarn workspace @mandel59/mojidata-api-sqlite-wasm testcorepack yarn workspace @mandel59/mojidata-api-d1 testcorepack yarn workspace @mandel59/mojidata-cli preparecorepack yarn mojidata-api:d1:checkcorepack yarn mojidata-api:d1:smoke -- --base-url https://mojidata-api-d1.mandel59.workers.devruby -e "require 'yaml'; YAML.load_file('.github/workflows/validate.yml'); puts 'validate.yml OK'"ruby -e "require 'yaml'; YAML.load_file('.github/workflows/release.yml'); puts 'release.yml OK'"corepack yarn build:idsdb-stackcorepack yarn workspace @mandel59/idsdb-fts5 run prepare