Patent ID: 11947829
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 11:
12. A computer device, comprising:
a processor and a memory; and
the memory storing a plurality of computer programs, and the computer programs, when executed by the processor, causing the computer device to perform a data writing method including:
writing, when a write request is received, write data corresponding to the write request to a write buffer;
in response to the amount of data in the write buffer reaches a threshold:
acquiring historical access data of a data block corresponding to to-be-flushed data in the write buffer when a data flushing operation is triggered for the write buffer;
determining whether the to-be-flushed data is write-only data based on the historical access data;
in accordance with a determination that the to-be-flushed data is the write-only data, writing the to-be-flushed data to a hard disk drive; and
in accordance with a determination that the to-be-flushed data is not the write-only data, writing the to-be-flushed data to a cache.