grep --tag "SQLite" ./posts
# タグ: SQLite
D1 FTS5日本語bigram索引:2 code point検索
隣接2 code pointsをD1 FTS5へ保存し、changes() guardと完全snapshot backfillで競合とstale索引を防ぐ実装記録です。
D1にdown migrationはない:forward-only運用の復旧戦略
WranglerのD1 migration CLIにdown commandはありません。forward fix、Time Travel、schema互換性を使い分け、migration historyを変更せず復旧する手順を解説します。
D1(SQLite)で日本語全文検索: FTS5 trigramと段階的フォールバックの実装
1文字はLIKE、2文字はbigram、3文字以上はtrigramへ送り、経路別fallbackとforward-only migrationを解説します。
D1のサイト内検索をFTS5で運用する:trigram・bigram・LIKEの役割分担
公開検索をWeb検索から分離し、1 code point、2 code points、3 code points以上でLIKE、bigram、trigramを選ぶ実装と運用記録です。