Patent ID: 9569489
Date: 2017-02-14
CPC Classifications: G06F

Claim:
1. A method for data preheating, the method comprising: reading, separately, hit ratio information and user configuration information when a database is started, wherein the hit ratio information comprises a hot data table, and the user configuration information comprises a preset hot data table, storage proportions of a to-be-loaded hot data block stored into a shared buffer and a flash memory device, a capacity of the shared buffer, a storage capability of the flash memory device, and a deviation value of the total number of the to-be-loaded hot data blocks; obtaining a union set of the preset hot data table in the user configuration information and the hot data table in the hit ratio information; determining the total number of the to-be-loaded hot data blocks from the union set according to the storage proportions, the capacity of the shared buffer, a capacity of the flash memory device, a size of the hot data block, and the deviation value; determining, according to the storage proportions, the to-be-loaded hot data block to be stored into the shared buffer and the flash memory device; and storing, separately, the to-be-loaded hot data block into the shared buffer and the flash memory device.