1---
2title: RocksDB 5.2.1 Released!
3layout: post
4author: sdong
5category: blog
6---
7
8### Public API Change
9* NewLRUCache() will determine number of shard bits automatically based on capacity, if the user doesn't pass one. This also impacts the default block cache when the user doesn't explict provide one.
10* Change the default of delayed slowdown value to 16MB/s and further increase the L0 stop condition to 36 files.
11
12### New Features
13* Added new overloaded function GetApproximateSizes that allows to specify if memtable stats should be computed only without computing SST files' stats approximations.
14* Added new function GetApproximateMemTableStats that approximates both number of records and size of memtables.
15* (Experimental) Two-level indexing that partition the index and creates a 2nd level index on the partitions. The feature can be enabled by setting kTwoLevelIndexSearch as IndexType and configuring index_per_partition.
16
17### Bug Fixes
18* RangeSync() should work if ROCKSDB_FALLOCATE_PRESENT is not set
19* Fix wrong results in a data race case in Get()
20* Some fixes related to 2PC.
21* Fix several bugs in Direct I/O supports.
22* Fix a regression bug which can cause Seek() to miss some keys if the return key has been updated many times after the snapshot which is used by the iterator.
23