Changelog

2026-11-24
Server v4.6.5ODM v4.6.5
Behavior changes
  • server_id must be exactly 12 lowercase letters or digits; the server does not start with another value. _ids stored by earlier versions stay valid.
  • The server answers HTTP on port 34568 (127.0.0.1 only by default). Set http=0 to turn it off.
  • A wrong user name or password makes connect() fail at once with a clear error instead of timing out.
Features
  • Multi-master replication: several servers hold the same data and each accepts writes (cluster_peers, cluster_secret).
  • insertMany: many documents in one request and one disk write, about 40 times faster than single inserts for 10,000 documents.
  • Salted challenge-response authentication with scrypt and an encryption key per connection. Server and ODM 4.0 keep working (legacy_auth, legacyAuth).
  • Monitoring over HTTP: GET /health and Prometheus GET /metrics.
  • New _ids carry a counter, so ids made in the same millisecond can't collide.
  • Snapshots read big fields in slices: with 300,000 documents the longest pause while a snapshot is saved went from 456 ms to 93 ms.
Fixes
  • Documents removed while a snapshot was being saved could come back after a crash.
  • Transactions failed after updateCollection added a field, until the server was restarted.
  • Error entries in the server log had no message.
  • ODM: a connection closed right after connecting logged a misleading "check the user name" error.
2026-11-23
Server v4.0.1
Fixes
  • The Debian package failed to install on systems without adduser (minimal images such as ubuntu:26.04): it now depends on adduser.
Features
  • Docker images for 64-bit ARM: databikers/diana-db:debian-arm and databikers/diana-db:alpine-arm.
2026-11-23
Server v4.0.0ODM v4.0.0
Behavior changes
  • Requests are refused with 008 Memory Error (MEMORY in the ODM) while memory is almost exhausted, except health, version and removals.
  • Numeric strings on NUMBER fields and "true"/"false" on BOOLEAN fields are stored and queried as numbers and booleans (they were accepted but stored as strings).
  • New databases are named with letters, digits, _ and -; collection, view, field and migration names can't contain quotes, brackets or control characters.
  • Prototype keys (__proto__, constructor, …) are removed from requests; JSON nested deeper than 256 levels is refused.
  • With server_id set, _ids start with it instead of the MAC address; ODM versions before 4.0.0 reject such ids in queries.
Features
  • VECTOR type with dimensions, and similarity search: $neighbors (euclidean, cosine, dot) and $direction.
  • server_id and memory_reserve_percent options; getHealth reports memory.
  • Packages for 64-bit ARM: Debian arm64 and Alpine aarch64; the server binary runs with a 64 GB heap limit.
  • Validation without joi: same rules and messages, 3–14x faster.
Fixes
  • Applied migrations were lost at restart.
  • An update with a key such as constructor failed halfway, leaving the change in memory but not in the write-ahead log.
  • A new database name containing a dot was restored incorrectly from the dump.
  • Backups now copy the latest snapshot.
Performance
  • Write-ahead log writes and fsync no longer block other requests.
  • Snapshots are written one field at a time with requests running in between, without a copy of every database: much less memory while saving, and the longest pause in our test went from 2.4 s to 0.76 s.
2026-10-20
Server v3.0.1 - 3.3.3ODM v3.0.0
Refactoring
  • Core optimizations and refactoring (much lower memory use: memory now follows the size of the live data)
2026-10-17
Server v3.0.0ODM v3.0.0
Breaking Changes
  • ODM 3.0.0 is required for subscriptions; subscriber authentication is now mandatory.
  • Subscription updates now deliver database updates directly.
  • Migration methods require a database and return migration details.
  • Connection and request failures now throw structured errors.
  • NUMBER fields no longer default to integer rounding.
Features
  • Added write-ahead logging and atomic snapshots for improved data durability.
  • Expanded ODM migration, subscription, and configuration capabilities.
  • Improved reconnection handling, TLS support, and credential security.
Fixes
  • Fixed message framing, large-message handling, transactions, TTL expiration, queries, and indexes.
  • Fixed ODM initialization, connection management, subscriptions, and transaction handling.
  • Improved consistency and reliability across database operations.
Performance
  • Significantly improved document removal, updates, and paginated queries.
  • Reduced memory usage per document by approximately 23%.
  • Optimized view updates to avoid unnecessary full rebuilds.
2026-08-17
Server v2.2.8 - v2.5.3ODM v2.2.8 - v2.5.3
Features
  • Provided client-level database management (createDatabase, removeDatabase, createCollection, removeCollection)
  • Added replaceRoot to LookupQuery
Refactoring
  • Core optimizations and refactoring
2026-07-14
Server v2.2.7ODM v2.2.7
Refactoring
  • Core optimization
  • refactored aggregation framework
  • refactored ODM for Node.js
2026-07-13
Server v2.2.6ODM v2.2.1
Refactoring
  • Core optimization
2026-07-12
Server v2.2.5ODM v2.2.1
Refactoring
  • Core optimization
2026-07-12
Server v2.2.4ODM v2.2.1
Refactoring
  • Refactored updating collection schema
2026-07-12
Server v2.2.3ODM v2.2.1
Refactoring
  • Refactored locking/unlocking schemas
2026-07-10
Server v2.2.2ODM v2.2.1
Refactoring
  • Refactored min, max, and distinct query performance
  • Improved collection schema update handling
  • Streamlined default value assignment
2026-07-09
Server v2.2.1ODM v2.2.1
Features
  • Added Client.getVersion() method (returns server version)
Refactoring
  • Refactored updating collections schema
2026-07-06
Server v2.1.3ODM v2.1.0
Features
  • Added Model.removeView(view) method
  • Added Model.getViews() method
  • Added Client.getCollectionViews(db, collection) method
Refactoring
  • Fixed return types mismatch between Server/ODM in several methods
2026-07-06
Server v2.1.2ODM v2.0.0
Features
  • Added TLS/mTLS support for secure client-server connections
  • Implemented different storage strategies — local (previous default) and s3 (storing the data at S3-like storages)
  • Added the ability to lock/unlock a collection's schema, protecting data from unexpected structural changes
  • Added document-level (row-level) locking for transactions
Refactoring
  • Storage engine optimization
  • Added missing remove-backup CLI command
  • Before switching to store_strategy=s3: manually upload your existing users file and current data (/var/lib/diana-db/*) files to the target S3 bucket first. DianaDb does not migrate existing local data automatically when the storage strategy is changed — switching without uploading beforehand will make the server start with a fresh/empty dataset. look at updated Install and Run DianaDB Server
2026-02-24
Server v1.9.2ODM v1.9.2
Features
  • Added getDatabases() ODM instance method (returns list of databases names)
  • Added getHealth() ODM instance method (returns current server health data)
2026-02-23
Server v1.9.1ODM v1.9.1
Features
  • Added uppercase and lowercase schema item properties for string fields
2026-02-19
Server v1.9.0ODM v1.9.0
Features
  • Renamed $add → $addItem and $remove → $removeItem to prevent conflicts with numeric $add operations
Refactoring
  • Fixed ACID transaction consistency issues (ODM ≥ 1.9.0, Server ≥ 1.9.0)
  • Refactored and improved migration engine reliability (ODM ≥ 1.9.0, Server ≥ 1.9.0)
  • Optimized temporal query execution and performance (Server ≥ 1.9.0)
2026-02-18
Server v1.8.3ODM v1.8.1
Features
  • Added countByView model method (similar to findByView)
  • Added real-time server performance tracking
Refactoring
  • Fixed broken projection in the $group pipeline
2026-02-16
Server v1.8.2ODM v1.8.0
Refactoring
  • Refactored data restoring
2026-02-16
Server v1.8.1ODM v1.8.0
Features
  • Provided ability to use connection string at the client side (ODM)
Refactoring
  • Optimized encryption mechanism to speed up client-server interaction
  • Optimized internal processing pipeline to ensure stable runtime performance
2026-02-12
Server v1.8.0ODM v1.7.0
Refactoring
  • Optimized internal processing pipeline to ensure stable runtime performance
2026-02-07
Server v1.7.0ODM v1.7.0
Refactoring
  • Optimize encryption and key derivation, improve encryption performance
2026-02-07
Server v1.6.0ODM v1.6.0
Features
  • Added materialized views updating on the fly.
  • Added support for using objects as the _id in the $group pipeline of Transform Queries.
  • Access management (CLI Tool) and control features to ensure secure access to databases
  • Backup management (CLI Tool)
Refactoring
  • Fixed wrong pointer evaluation inside the TransformQueries
  • Fixed broken $match pipeline for methods $nc, $cn, $notStartsWith, $notEndsWith
2026-01-17
Server v1.5.0ODM v1.5.0
Features
  • Added max and min model methods to retrieve documents with the maximum or minimum value of a specified property
  • Added $max, $min, and $avg operators to the group and project pipelines of TransformQuery
Refactoring
  • Fixed the data restoration mechanism
2026-01-16
Server v1.4.9ODM v1.4.12
Refactoring
  • Refactored FilterQuery validation and processing
2026-01-13
Server v1.4.8ODM v1.4.11
Features
  • Added "distinct" model method
  • Improved encryption implementation
Refactoring
  • Refactored connection management