-
公开(公告)号: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.
-
公开(公告)号: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.
-