Conversation
and mutation fixes - implement unique index support with strict integrity guarantees - add findBy, updateBy, deleteBy helpers for stable-key operations - add JS array migration helpers (fromRows, firstWhere, countWhere, exists) - introduce comprehensive JS Array vs ColQL benchmark suite (1k / 100k / 1M) - fix mutation performance issues: - bulk delete compaction instead of per-row deleteAt - avoid unnecessary unique index rebuilds - correct benchmark timing to exclude setup cost - improve unique index correctness and rebuild behavior - expand test coverage for unique indexes, mutations, and helpers - update docs to clarify index guarantees and usage patterns
coverage - add user directory scenario (id/email unique + queries + mutations) - add product catalog scenario (sku uniqueness + range queries) - add session/token registry scenario (token uniqueness + expiry + cleanup) - add feature flag scenario (dictionary + boolean + indexed queries) - add mixed operation sequence tests (insert/update/delete/rebuild/serialize) - add edge case coverage for unique indexes and mutations - extend parity checks against JS array oracle - verify correctness across combined operations, not just isolated units
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.
Overview
This release introduces unique indexes, stable key-based helpers, JS array migration utilities, and a comprehensive JS Array vs ColQL benchmark suite.
The goal of v0.3.0 is to make ColQL more practical for real-world backend usage while strengthening correctness guarantees and improving performance transparency.
Highlights
🔐 Unique Indexes (Data Integrity + Fast Lookup)
ColQL now supports unique indexes:
Guarantees:
insertManyis all-or-nothing on duplicatesSupported:
Not supported:
🔑 By-Key Helpers
Stable-key operations are now first-class:
rowIndex🔄 JS Array Migration Helpers
Easier transition from JS arrays:
📊 JS Array vs ColQL Benchmark Suite
New benchmark comparing:
Across:
Key observations:
filter(fn)is a full-scan escape hatch and can be expensive⚡ Performance Improvements
deleteMany🧪 Expanded Test Coverage
Design Notes
When to Use ColQL
ColQL is most useful when:
JS arrays may still be preferable for:
Breaking Changes
None.
Notes
This release focuses on correctness, clarity, and real-world usability rather than adding heavy features or external integrations.