Data processing method and apparatus
First Claim
Patent Images
1. A data processing method comprising:
- determining, according to a database execution plan, a partition quantity corresponding to a currently free programmable memory;
partitioning the currently free programmable memory according to the partition quantity to obtain a programmable memory partition corresponding to the partition quantity; and
executing, using the programmable memory partition, a relational algebra logical operation corresponding to the database execution plan,wherein determining, according to the database execution plan, the partition quantity corresponding to the currently free programmable memory at least comprises;
collecting statistics about an optimal value op of a ratio of a data throughput processed when the free programmable memory executes the relational algebra logical operation to a size of the free programmable memory;
determining, according to the database execution plan, an estimated value rc of a data volume required for the database execution plan;
finding a maximum value rp of a ratio of a data area to a complementary area;
obtaining an amount mc of the currently free programmable memory; and
determining, according to op, rc, rp, and mc, the partition quantity corresponding to the currently free programmable memory.
1 Assignment
0 Petitions
Accused Products
Abstract
A data processing method and apparatus are provided. The data processing method includes determining, according to a database execution plan, a partition quantity corresponding to a currently free programmable memory, partitioning the currently free programmable memory according to the partition quantity, to obtain a programmable memory partition corresponding to the partition quantity, and executing, using the programmable memory partition, a relational algebra logical operation corresponding to the database execution plan. Embodiments of the present disclosure can be used to improve data processing efficiency.
13 Citations
17 Claims
-
1. A data processing method comprising:
-
determining, according to a database execution plan, a partition quantity corresponding to a currently free programmable memory; partitioning the currently free programmable memory according to the partition quantity to obtain a programmable memory partition corresponding to the partition quantity; and executing, using the programmable memory partition, a relational algebra logical operation corresponding to the database execution plan, wherein determining, according to the database execution plan, the partition quantity corresponding to the currently free programmable memory at least comprises; collecting statistics about an optimal value op of a ratio of a data throughput processed when the free programmable memory executes the relational algebra logical operation to a size of the free programmable memory; determining, according to the database execution plan, an estimated value rc of a data volume required for the database execution plan; finding a maximum value rp of a ratio of a data area to a complementary area; obtaining an amount mc of the currently free programmable memory; and determining, according to op, rc, rp, and mc, the partition quantity corresponding to the currently free programmable memory. - View Dependent Claims (2, 3, 4, 5, 6, 7, 15, 16, 17)
-
-
8. A data processing apparatus comprising:
-
a processor; a memory configured to store a computer execution instruction; and a bus coupling the processor and the memory, wherein the processor is configured to execute the computer execution instruction stored in the memory to; determine, according to a database execution plan, a partition quantity corresponding to a currently free programmable memory; partition the currently free programmable memory according to the partition quantity to obtain a programmable memory partition corresponding to the partition quantity; execute, using the programmable memory partition, a relational algebra logical operation corresponding to the database execution plan; collect statistics about an optimal value op of a ratio of a data throughput processed when the free programmable memory executes the relational algebra logical operation to a size of the free programmable memory; determine, according to the database execution plan, an estimated value rc of a data volume required for the database execution plan; find a maximum value rp of a ratio of a data area to a complementary area; obtain an amount mc of the currently free programmable memory; and determine, according to op, rc, rp, and mc, the partition quantity corresponding to the currently free programmable memory. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
Specification