Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
DATABASE OPERATION METHOD AND APPARATUS, AND DEVICE AND STORAGE MEDIUM
Document Type and Number:
WIPO Patent Application WO/2023/165374
Kind Code:
A1
Abstract:
Provided are a database operation method and apparatus, and a device and a storage medium. The method comprises: a write thread performing traversal starting from a root node of a multi-way tree, and searching for a target record which matches a search key of a write operation; and the write thread applying to add, according to a latch adding rule, X latches to a target node where the target record is located and memory pages corresponding to other nodes which need to be associated and modified, wherein the latch adding rule comprises: if the direction from any node to an associated node does not meet the requirement of a latch adding direction, on the basis of holding the exclusive latch of the memory page corresponding to the any node, before applying to add the exclusive latch to the memory page corresponding to the associated node, the exclusive latch of the memory page corresponding to the any node needs to be released, and a preset mark is set for the memory page corresponding to the any node; and if any memory page which applies to add the exclusive latch has been provided with the preset mark by other write threads, a latch held by the any memory page itself needs to be released.

Inventors:
YANG YUMING (CN)
Application Number:
PCT/CN2023/077340
Publication Date:
September 07, 2023
Filing Date:
February 21, 2023
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
ALIBABA CLOUD COMPUTING LTD (CN)
International Classes:
G06F16/901; G06F9/52; G06F16/903
Domestic Patent References:
WO2014177201A12014-11-06
Foreign References:
CN114282074A2022-04-05
CN110990404A2020-04-10
CN107783988A2018-03-09
CN110162525A2019-08-23
CN105843809A2016-08-10
CN103077174A2013-05-01
US20160239529A12016-08-18
Attorney, Agent or Firm:
BEIJING TONGJUN LAW FIRM (CN)
Download PDF: