Method and apparatus for parallel execution in terminal database using data partitions

    公开(公告)号:US10884817B2

    公开(公告)日:2021-01-05

    申请号:US15917166

    申请日:2018-03-09

    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.

Patent Agency Ranking