{"pub_number":"US12373440B2","doc_number":"12373440","country":"US","kind_code":"B2","patent_type":"utility","status":"active","title":"High-performance key-value store","abstract_text":"A key-value store is provided, implementing multiple-tiered sorted data structures in memory and storage, including concurrent write buffers in memory, and page-level consolidation of updates on storage, where pages are trivially translated in physical-to-virtual address mapping. The key-value store is built on an indexed sorted data structure on storage, occupying much less storage space and incurring much less disk activity in consolidating updates than a conventional log-structured merge tree organized into files. Concurrent write buffers operate concurrently and independently so that data is committed from memory to storage in an efficient manner, while maintaining chronological sequence of delta pages. Trivial mapping allows mappings of a number of physical pages to be omitted, enabling page mapping tables to occupy less storage space, and simplifying processing workload of read operation retrievals from storage.","claims":[{"number":1,"text":"A method comprising: receiving a plurality of inserted record updates at a first write buffer in memory of a storage system; appending the plurality of inserted record updates to a page stream on storage of the storage system as a page, wherein the storage comprises a file system; and writing an indexed sorted data structure to the storage, the indexed sorted data structure comprising a virtual page non-translatory mapped to the page of the page stream by a same offset address of a same extent address as the page on the storage, wherein the offset address and the extent address are each addressed by the file system.","independent":true},{"number":2,"text":"The method of claim 1, wherein the first write buffer is operative to store each inserted record update in a sorted order; and further comprising: freezing the first write buffer; and creating a second write buffer in the memory operative to receive record updates.","independent":false,"depends_on":[1]},{"number":3,"text":"The method of claim 1, wherein a page comprises a plurality of keys corresponding to records not stored in the indexed sorted data structure; wherein the indexed sorted data structure further comprises a page mapping table, and a mapping from the virtual page to the page of the page stream is not recorded in the page mapping table.","independent":false,"depends_on":[1]},{"number":4,"text":"The method of claim 1, wherein appending the plurality of inserted record updates comprises substantially concurrently appending to a first page stream as a base page and appending to a second page stream as a delta page; and wherein a delta page further comprises a system timestamp, and each delta page is appended to the second page stream in order of system timestamps.","independent":false,"depends_on":[1]},{"number":5,"text":"The method of claim 1, further comprising consolidating a plurality of delta pages of a delta chain appended to the virtual page, writing at least one new page based on the consolidated plurality of delta pages, and appending the at least one new page to the page stream; and wherein appending the plurality of inserted record updates is performed at least in part concurrently as consolidating the plurality of delta pages of the delta chain; appending the plurality of inserted record updates comprises appending a delta page to the delta chain; and appending the plurality of inserted record updates is performed after consolidating the plurality of delta pages of the delta chain.","independent":false,"depends_on":[1]},{"number":6,"text":"The method of claim 1, further comprising consolidating a plurality of delta pages of a delta chain appended to the virtual page with the virtual page; wherein consolidating the plurality of delta pages further comprises writing at least one new page based on the consolidated plurality of delta pages and the virtual page, and linking a parent page of the virtual page to the at least one new page; and wherein consolidating the plurality of delta pages further comprises creating a rewrite table.","independent":false,"depends_on":[1]},{"number":7,"text":"The method of claim 1, further comprising merging a child page of the virtual page into the virtual page, and recording the rewriting of the child page into the virtual page in a rewrite table; appending an inserted record update to the page stream; referencing the rewrite table; and appending a delta page comprising the inserted record update to the virtual page instead of the child page.","independent":false,"depends_on":[1]},{"number":8,"text":"A storage system comprising: one or more processors; hosted storage; and memory communicatively coupled to the one or more processors, the memory storing computer-executable modules executable by the one or more processors that, when executed by the one or more processors, perform associated operations, the computer-executable modules comprising: a checkpoint module configured to receive a plurality of inserted record updates at a first write buffer in memory of a storage system; append the plurality of inserted record updates to a page stream on storage of the storage system as a page, wherein the storage comprises a file system; and write an indexed sorted data structure to the storage, the indexed sorted data structure comprising a virtual page non-translatory mapped to the page of the page stream by a same offset address of a same extent address as the page on the storage; wherein the offset address and the extent address are each addressed by the file system.","independent":true}],"description":"BACKGROUND\nAs businesses in many industries become increasingly data-driven, there is a constant need for high-performance database designs, optimized for storage and retrieval of massive volumes of data, based on various data schemas and various hardware architectures. One example of database design is a key-value (\n“\nKV\n”\n) store, based on a data schema storing records containing various data fields, keys that uniquely identify each record, and associations between keys and records. Keys may be mapped to records by various implementations, such as hash tables, dictionaries, and the like.\nKV stores may implement read and write operations based on a log-structured merge (\n“\nLSM\n”\n) tree data structure. Such database designs are generally optimized to support applications, services, and such computer-hosted functionality incurring high-volume write operations. LSM trees are implemented partially in memory and partially on storage of a computing system. In LSM-based KV stores, write transactions may be recorded in memory at first, and then may be compacted and stored on storage of the computing system. In this fashion, the design of LSM-based KV stores seeks to improve write performance of computing systems, while incurring subsequent workloads in compacting write transactions to storage. Such a tradeoff is thought to be particularly desirable for computing systems implementing storage using solid-state drives (\n“\nSSDs\n”\n).\nIn practice, compaction workloads result in substantial performance degradation in deployed LSM-based KV stores. After a KV store logs a substantial number of write transactions for a computing system, storage devices of the computing system must perform a large compaction transaction, resulting in interference between write transactions and compaction transactions. Thus, implementations of LSM-based KV stores tend to trade alleviation of up front write workloads for exacerbation of subsequent compaction workloads. There is a need to further engine","inventors":[{"name":"Zhu Pang","slug":"zhu-pang","city":"Bellevue","country":"US"},{"name":"Qingda Lu","slug":"qingda-lu","city":"Bellevue","country":"US"},{"name":"Shuo Chen","slug":"shuo-chen","city":"Bellevue","country":"US"},{"name":"Yikang Xu","slug":"yikang-xu","city":"Redmond","country":"US"},{"name":"Jiesheng Wu","slug":"jiesheng-wu","city":"Redmond","country":"US"},{"name":"Rui Wang","slug":"rui-wang","city":"Redmond","country":"US"}],"assignees":[{"name":"Alibaba Innovation Private Limited","slug":"alibaba-innovation-private-limited","country":"SG"}],"examiners":[],"cpc_codes":["G06F 16/1805","G06F 16/2246","G06F 16/2322","G06F 16/24561","G06F 16/256"],"ipc_codes":["G06F 16/18","G06F 16/22","G06F 16/23","G06F 16/2455","G06F 16/25"],"filing_date":"2021-06-01","pub_date":"2025-07-29","grant_date":"2025-07-29","expiration_date":"2041-06-01","family_members":[],"citations_made":[{"pub_number":"US7424499B2","category":"applicant"},{"pub_number":"US8612382B1","category":"examiner"},{"pub_number":"US8620884B2","category":"applicant"},{"pub_number":"US8768977B2","category":"applicant"},{"pub_number":"US9176871B1","category":"applicant"},{"pub_number":"US9400816B1","category":"applicant"},{"pub_number":"US9424070B2","category":"applicant"},{"pub_number":"US9438426B2","category":"applicant"},{"pub_number":"US9483516B2","category":"applicant"},{"pub_number":"US9684682B2","category":"applicant"},{"pub_number":"US9785510B1","category":"examiner"},{"pub_number":"US9811546B1","category":"examiner"},{"pub_number":"US10078453B1","category":"examiner"},{"pub_number":"US10127260B2","category":"applicant"},{"pub_number":"US10146793B2","category":"examiner"},{"pub_number":"US10289340B2","category":"applicant"},{"pub_number":"US10331797B2","category":"applicant"},{"pub_number":"US10359966B2","category":"examiner"},{"pub_number":"US10474656B1","category":"examiner"},{"pub_number":"US10482103B2","category":"applicant"},{"pub_number":"US10489406B2","category":"applicant"},{"pub_number":"US10496283B2","category":"applicant"},{"pub_number":"US10552402B2","category":"examiner"},{"pub_number":"US10585876B2","category":"applicant"},{"pub_number":"US10592411B2","category":"examiner"},{"pub_number":"US10666703B2","category":"applicant"},{"pub_number":"US10706105B2","category":"applicant"},{"pub_number":"US10706106B2","category":"applicant"},{"pub_number":"US10719562B2","category":"applicant"},{"pub_number":"US10725988B2","category":"applicant"},{"pub_number":"US10795871B2","category":"applicant"},{"pub_number":"US10956071B2","category":"applicant"},{"pub_number":"US10984018B2","category":"applicant"},{"pub_number":"US10996884B2","category":"applicant"},{"pub_number":"US11003689B2","category":"applicant"},{"pub_number":"US11023457B1","category":"applicant"},{"pub_number":"US11093149B2","category":"applicant"},{"pub_number":"US11100071B2","category":"applicant"},{"pub_number":"US11188241B2","category":"applicant"},{"pub_number":"US11429587B1","category":"examiner"},{"pub_number":"US20040024729A1","category":"examiner"},{"pub_number":"US20060219772A1","category":"applicant"},{"pub_number":"US20090119295A1","category":"applicant"},{"pub_number":"US20100106695A1","category":"applicant"},{"pub_number":"US20110307447A1","category":"examiner"},{"pub_number":"US20120159098A1","category":"examiner"},{"pub_number":"US20140095810A1","category":"examiner"},{"pub_number":"US20160179865A1","category":"applicant"},{"pub_number":"US20170011062A1","category":"examiner"},{"pub_number":"US20170109394A1","category":"applicant"},{"pub_number":"US20170177284A1","category":"applicant"},{"pub_number":"US20170220617A1","category":"applicant"},{"pub_number":"US20170242785A1","category":"examiner"},{"pub_number":"US20170277726A1","category":"applicant"},{"pub_number":"US20180300350A1","category":"applicant"},{"pub_number":"US20190236059A1","category":"applicant"},{"pub_number":"US20190266100A1","category":"applicant"},{"pub_number":"US20190272254A1","category":"applicant"},{"pub_number":"US20190278783A1","category":"applicant"},{"pub_number":"US20190340277A1","category":"applicant"},{"pub_number":"US20190370170A1","category":"applicant"},{"pub_number":"US20200042533A1","category":"applicant"},{"pub_number":"US20200042617A1","category":"examiner"},{"pub_number":"US20200257669A1","category":"applicant"},{"pub_number":"US20200301900A1","category":"examiner"},{"pub_number":"US20210042286A1","category":"applicant"},{"pub_number":"US20210097036A1","category":"applicant"},{"pub_number":"US20210103397A1","category":"examiner"},{"pub_number":"US20210224236A1","category":"examiner"},{"pub_number":"US20210311880A1","category":"examiner"},{"pub_number":"US20220318227A1","category":"applicant"},{"pub_number":"US20220335027A1","category":"examiner"},{"pub_number":"US20220382651A1","category":"applicant"},{"pub_number":"US20220382674A1","category":"applicant"},{"pub_number":"US20220382734A1","category":"applicant"},{"pub_number":"US20230046216A1","category":"applicant"}],"non_patent_literature":["Office Action for U.S. Appl. No. 17/335,728, mailed on Oct. 5, 2022, Lu,","“","Fast Recovery and Replication of Key-Value Stores","”",", 12 pages.","Office Action for U.S. Appl. No. 17/336,141, mailed on Oct. 18, 2022, Wang,","“","Granularly Timestamped Concurrency Control for Key-Value Store","”",", 12 Pages."],"drawings_count":0,"source_id":"uspto_patent_grants","upstream_forward_citations":0,"metrics":{"forward_citations":1,"indexed_forward_citations":1,"backward_citations":76,"npl_citations":10,"citations_per_year":1.0,"pagerank":0.17328679513998632,"citation_rank":2224642,"pagerank_rank":2224642,"velocity_rank":2224642,"family_citations":1}}