Hash Database Configuration Method and Apparatus
First Claim
Patent Images
1. A hash database configuration method, comprising:
- establishing an index area and a data area on a disk, wherein the index area comprises p disk pages with an equal size;
receiving an allocation request of key-value pairs;
allocating each key of m keys in the key-value pairs to a disk page in the index area; and
allocating n values in the key-value pairs to the data area, wherein m, n, and p are all integers greater than 1.
1 Assignment
0 Petitions
Accused Products
Abstract
A hash database configuration method and apparatus, where the method includes establishing an index area and a data area on a disk, where the index area includes p disk pages with an equal size, and receiving an allocation request of key-value pairs, allocating m keys in the key-value pairs to disk pages in the index area, and allocating n values in the key-value pairs to the data area, where m, n, and p are all integers greater than 1, and the efficiency of accessing the hash database is improved.
5 Citations
16 Claims
-
1. A hash database configuration method, comprising:
-
establishing an index area and a data area on a disk, wherein the index area comprises p disk pages with an equal size; receiving an allocation request of key-value pairs; allocating each key of m keys in the key-value pairs to a disk page in the index area; and allocating n values in the key-value pairs to the data area, wherein m, n, and p are all integers greater than 1. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A device, comprising:
-
a memory configured to store instructions; and a processor coupled to the memory to execute the instructions to execute the following operations; establish an index area and a data area on a disk, wherein the index area comprises p disk pages with an equal size; receive an allocation request of key-value pairs; allocate each key of m keys in the key-value pairs to a disk page in the index area; and allocate n values in the key-value pairs to the data area, wherein m, n, and p are all integers greater than 1. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
Specification