-
公开(公告)号:US20190384775A1
公开(公告)日:2019-12-19
申请号:US16552833
申请日:2019-08-27
Applicant: Huawei Technologies Co., Ltd.
Abstract: An active transaction list synchronization method and apparatus comprising a first node that records, in a transaction list incremental log buffer, a transaction list incremental log that is obtained after last active transaction list synchronization, where the transaction list incremental log indicates a change of a transaction recorded in an active transaction list of the first node and includes an added-transaction log and a committed-transaction log, wherein the added-transaction log indicates a transaction is added to the active transaction list, wherein the committed-transaction log indicates a transaction is deleted from the active transaction list. When performing group commit on transactions recorded in the committed-transaction log, the first node sends the transaction list incremental log to at least one second node.
-
公开(公告)号:US20180196703A1
公开(公告)日:2018-07-12
申请号:US15917166
申请日:2018-03-09
Applicant: Huawei Technologies Co., Ltd.
Inventor: Qiang Tong , Zongchao Liu , Bo Shang
CPC classification number: G06F9/5077 , G06F9/3009 , G06F9/3851 , G06F9/4843 , G06F16/278 , G06F16/90335
Abstract: A parallel execution method and apparatus in a terminal database, where the method includes determining, by a terminal, each thread central processing unit (CPU) based on a preset degree of parallelism, where the degree of parallelism is a quantity of threads executed in parallel, obtaining, by the terminal, a frequency of each thread CPU, calculating a frequency proportion of the thread CPUs, dividing, by the terminal, a to-be-queried data table in the terminal database into data partitions based on the frequency proportion of the thread CPUs, determining a data partition corresponding to each thread CPU, and querying in parallel, by the terminal, data in the corresponding data partition using each thread CPU.
-
公开(公告)号:US11442961B2
公开(公告)日:2022-09-13
申请号:US16552833
申请日:2019-08-27
Applicant: Huawei Technologies Co., Ltd.
Abstract: An active transaction list synchronization method and apparatus comprising a first node that records, in a transaction list incremental log buffer, a transaction list incremental log that is obtained after last active transaction list synchronization, where the transaction list incremental log indicates a change of a transaction recorded in an active transaction list of the first node and includes an added-transaction log and a committed-transaction log, wherein the added-transaction log indicates a transaction is added to the active transaction list, wherein the committed-transaction log indicates a transaction is deleted from the active transaction list. When performing group commit on transactions recorded in the committed-transaction log, the first node sends the transaction list incremental log to at least one second node.
-
公开(公告)号:US11132265B2
公开(公告)日:2021-09-28
申请号:US16448581
申请日:2019-06-21
Applicant: Huawei Technologies Co., Ltd.
Inventor: Guangwei Cheng , Bo Shang , Tian Qi
Abstract: Embodiments of this application provide a method and an apparatus for multi-replica data restoration. The method is applied to a distributed database and includes: when a first page in replica data of a first node has a fault, obtain N latest LSNs in data log information of a second node that corresponds to a first page identifier. The first page is any page that is in the replica data of the first node and that has a fault. The first node further determines a node corresponding to a largest LSN in the N latest LSNs in the data log information of the second node that corresponds to the first page identifier is a third node. Then the first node performs data restoration on the first page in the replica data of the first node according to replica data of the third node.
-
公开(公告)号:US10884817B2
公开(公告)日:2021-01-05
申请号:US15917166
申请日:2018-03-09
Applicant: Huawei Technologies Co., Ltd.
Inventor: Qiang Tong , Zongchao Liu , Bo Shang
Abstract: A parallel execution method and apparatus in a terminal database, where the method includes determining, by a terminal, each thread central processing unit (CPU) based on a preset degree of parallelism, where the degree of parallelism is a quantity of threads executed in parallel, obtaining, by the terminal, a frequency of each thread CPU, calculating a frequency proportion of the thread CPUs, dividing, by the terminal, a to-be-queried data table in the terminal database into data partitions based on the frequency proportion of the thread CPUs, determining a data partition corresponding to each thread CPU, and querying in parallel, by the terminal, data in the corresponding data partition using each thread CPU.
-
-
-
-