摘要 |
Embodiments of the present invention disclose a hash database configuration method, including: 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. The embodiments of the present invention further disclose a hash database configuration apparatus. Efficiency of accessing a hash database is improved by using the present invention. |