All Versions
23
Latest Version
Avg Release Cycle
-
Latest Release
-

Changelog History
Page 2

  • v0.32 Changes

    ๐Ÿ†• New Features

    • #1079 Transactional is now implemented for [&Tree] and [Tree] so you can avoid the previous friction of using tuples, as was necessary previously.
    • ๐Ÿ‘ #1058 The minimum supported Rust version (MSRV) is now 1.39.0.
    • #1037 Subscriber now implements Future (non-fused) so prefix watching may now be iterated over via while let Some(event) = (&mut subscriber).await {}

    ๐Ÿ‘Œ Improvements

    • #965 concurrency control is now dynamically enabled for atomic point operations, so that it may be avoided unless transactional functionality is being used in the system. This significantly increases performance for workloads that do not use transactions.
    • A number of memory optimizations have been implemented.
    • Disk usage has been significantly reduced for many workloads.
    • #1016 On 64-bit systems, we can now store 1-2 trillion items.
    • #993 Added DerefMut and AsMut<[u8]> for IVec where it works similarly to a Cow, making a private copy if the backing Arc's strong count is not 1.
    • ๐Ÿ“š #1020 The sled wiki has been moved into the documentation itself, and is accessible through the doc module exported in lib.

    ๐Ÿ’ฅ Breaking Changes

    • 0๏ธโƒฃ #975 Changed the default segment_size from 8m to 512k. This will result in far smaller database files due to better file garbage collection granularity.
    • ๐Ÿ—„ #975 deprecated several Config options that will be removed over time.
    • #1000 rearranged some transaction-related imports, and moved them to the transaction module away from the library root to keep the top level docs clean.
    • #1015 TransactionalTree::apply_batch now accepts its argument by reference instead of by value.
    • Event has been changed to make the inner fields named instead of anonymous.
    • ๐Ÿšš #1057 read-only mode has been removed due to not having the resources to properly keep it tested while making progress on high priority issues. This may be correctly implemented in the future if resources permit.
    • The conversion between Box<[u8]> and IVec has been temporarily removed. This is re-added in 0.32.1.
  • v0.31 Changes

    ๐Ÿ‘Œ Improvements

    • #947 dramatic read and recovery optimizations
    • #921 reduced the reliance on locks while performing multithreaded IO on windows.
    • #928 use sync_file_range on linux instead of a full fsync for most writes.
    • ๐Ÿ‘ #946 io_uring support changed to the rio crate
    • #939 reduced memory consumption during zstd decompression

    ๐Ÿ’ฅ Breaking Changes

    • ๐Ÿ’… #927 use SQLite-style varints for serializing u64. This dramatically reduces the written bytes for databases that store small keys and values.
    • #943 use varints for most of the fields in message headers, causing an additional large space reduction. combined with #927, these changes reduce bytes written by 68% for workloads writing small items.
  • v0.30.3 Changes

    • ๐Ÿ“š Documentation-only release
  • v0.30.2 Changes

    ๐Ÿ†• New Features

    • โž• Added the open function for quickly opening a database at a path with default configuration.
  • v0.30.1 Changes

    ๐Ÿ›  Bugfixes

    • ๐Ÿ›  Fixed an issue where an idle threadpool worker would spin in a hot loop until work arrived
  • v0.30 Changes

    ๐Ÿ’ฅ Breaking Changes

    • Migrated to a new storage format

    ๐Ÿ›  Bugfixes

    • ๐Ÿ›  Fixed a bug where cache was not being evicted.
    • ๐Ÿ›  Fixed a bug with using transactions with compression.
  • v0.29.2 Changes

    ๐Ÿ†• New Features

    • The create_new option has been added to Config, allowing the user to specify that a database should only be freshly created, rather than re-opened.
  • v0.29.1 Changes

    ๐Ÿ›  Bugfixes

    • ๐Ÿ›  Fixed a bug where prefix encoding could be incorrectly handled when merging nodes together.
  • v0.29 Changes

    ๐Ÿ†• New Features

    • The Config::open method has been added to give Config a similar feel to std's fs::OpenOptions. The Config::build and Db::start methods are now deprecated in favor of calling Config::open directly.
    • A checksum method has been added to Tree and Db for use in verifying backups and migrations.
    • Transactions may now involve up to 69 different tables. Nice.
    • The TransactionError::Abort variant has had a generic member added that can be returned as a way to return information from a manually-aborted transaction. An abort helper function has been added to reduce the boiler- plate required to return aborted results.

    ๐Ÿ’ฅ Breaking Changes

    • ๐Ÿšš The ConfigBuilder structure has been removed in favor of a simplified Config structure with the same functionality.
    • The way that sled versions are detected at initialization time is now independent of serde.
    • ๐Ÿ—„ The cas method is deprecated in favor of the new compare_and_swap method which now returns the proposed value that failed to be applied.
    • Tree nodes now have constant prefix encoding lengths.
    • The io_buf_size configurable renamed to segment_size.
    • The io_buf_size configurable method has been removed from ConfigBuilder. This can be manually set by setting the attribute directly on the ConfigBuilder, but this is discouraged. Additionally, this must now be a power of 2.
    • The page_consolidation_threshold method has been removed from ConfigBuilder, and this is now a constant of 10.
  • v0.28 Changes

    ๐Ÿ’ฅ Breaking Changes

    • Iter no longer has a lifetime parameter.
    • Db::open_tree now returns a Tree instead of an Arc<Tree>. Tree now has an inner type that uses an Arc, so you don't need to think about it.

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  A bug with prefix encoding has been fixed that led to nodes with keys longer than 256 bytes being stored incorrectly, which led to them being inaccessible and also leading to infinite loops during iteration.
    • ๐Ÿšš Several cases of incorrect unsafe code were removed from the sled crate. No bugs are known to have been encountered, but they may have resulted in incorrect optimizations in future refactors.