Repository navigation
NHyDB 0.28.0 #9
nhydb
announced in
Announcements
Replies: 1 comment
|
NHyDB 0.28.0 is here! 🎉 We're happy to announce NHyDB 0.28.0, another important step in the development of our mathematically addressed database technology. This release focuses on reliability, data integrity, and performance. It includes numerous fixes, improved recovery and verification capabilities, and optimizations across storage, indexing, queries, and large-integer addressing. All 30 platform and Python compatibility tests have passed. Packages are available for Python 3.9–3.14 on Linux, macOS, and Windows. Install or upgrade with:
NHyDB remains an evolving experimental technology, and we look forward to exploring its possibilities further. Thank you for following the project! Links: |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
NHyDB 0.28.0
Databases created with NHyDB 0.27.1 or earlier do not open in 0.28.0
(see R013 below). Export the data with 0.27.1 and re-import it with 0.28.0.
The complete list of changes, including new functions and performance
improvements, is in
CHANGELOG.md.Identifiers below are stable references for reported problems.
Fixed
repair_filecould cut intact committed blocks that followed a damaged block.unumbers above a fixed bit length could not be read back after reopening.create(overwrite=True)could delete a layout plan or key file belonging to another database.create(overwrite=True)could destroy the existing database.create_shape/create_realmwith an existing ID replaced the definition and made existing data unreadable.uabove 2^32.verify,stats,health) changed the file.compact_file/repair_filecould not be restored after two schema commits (layout plan not included).varuint/varintvalues above about 16 390 bits were written but the cell could no longer be read.read_numpywith a hugecountcould abort the process.repair_filekept uncommitted blocks as committed data.range,selectandread_numpycould silently returnNone, an older value or miss records. Damaged SPARSE prefixes, a DATA realm that does not match its shape, and damaged DATAu_startvalues without overlapping segments now raiseCorruptionError.bytesfield (bytes(n)) could abort the process.None, NaN or mixed values raisedTypeError.delete(realm, u).FROM <layout>returned records of other layouts.close()was inconsistent: some reads still returned cached data.math_max_intermediate_bits.int().CorruptionError.str, bool, NaN,memoryview);read_numpydtypes depended on the data.lock=/lock_timeout_ms=replaced the whole lock configuration.compact_fileleft files behind that blocked a retry.IndexErrorinstead ofCorruptionError.bytesintoutf8, unknown dict keys).kernel.dec_valuewith an out-of-range position could panic.kernel.intersect_sorted_intshandled duplicate values differently from the reference.== NaNmatched through an index but not through a scan.delete_cellon a missing cell reported success.OSErrorsubclass or named the wrong file.db_max_size_byteswere accepted.verify()stopped at the first damage; a stale index was reported as an error.get_valuedid not accept column names.k1,@record_n,search(limit=), lone surrogates in stored JSON).FileExistsError.MathError,LayoutErrorandQueryErrordid not derive fromNHyDBError; damaged column offset tables could panic.fsyncdid not order the data writes before the superblock write (risk on power loss).lock=Falsecould cut another writer's uncommitted tail.repair_filewrote both superblocks with generation 1 and without a sync in between.close()after a failed commit did not release file handle and lock.repair_fileinspected the file before taking the lock.lock=False, closing a handle without changes could hide another writer's acknowledged commit.createleft its lock file behind.Known issues
.nhydbdata file is not encrypted.u_startin a DATA block prefix may only be detected when that block is loaded or byverify(deep=True).None, without a dense record, is counted byCOUNT(*)andQ.all(), whileget()returnsNoneandrange()skips it..layout.keyfile inherits the permissions of its directory; NHyDB sets no owner-only ACL.[cache]keysvindex_max_marksandvindex_max_indexesare accepted but not used.utf8field of a dense record stores any value as text viastr():Nonewritten withput/put_dense_batchis read back as'None', not as a null value (put_cellstores a real null).put_record(layout_id, object_id, get_record(...))raisesSchemaError(unknown column_realm); the metadata keys of aget_recordresult must be removed before writing it back.API behavior
CorruptionErrornaming 0.27.1; there is no migration.delete(realm, u)hides the dense record only; single cells and extension fields written for thatustay visible.delete_record(layout_id, object_id)removes a record completely;delete_cell/delete_pointremove single cells.SchemaError,bytesfor autf8field raiseTypeError, non-finite float results raiseValueError. Records returned byget()can be written back withput().TypeError; integral values such as3.0are accepted.create_realm,create_shapeandcreate_indexwith an ID that is already in use raiseSchemaErrorinstead of replacing the definition.delete_cellreturnsTrue/Falseand writes nothing for an empty cell.from nhydb import *no longer exportsopen; usenhydb.open(...).strictis removed (it had no effect); usereadonly=True.set_math_max_intermediate_bitsaffects standalone MATH expressions only; database operations use the configured limit, frozen per MATH layout.NHyDBobject between threads; a write on an object that another thread is using raisesRuntimeErrorwithout changing data.occupied_addressescannot call back into the same database duringdelete_record(RuntimeError); it must compute the addresses from its arguments.None; NumPy batch paths raiseValueError.This discussion was created from the release NHyDB 0.28.0.
All reactions