主权项 |
1. A database, comprising:
a memory, configured to store a kernel program; a CPU, coupled to the memory and configured to execute the kernel program; a data storage element, coupled to the CPU; and a data cache element, coupled to the CPU, wherein when receiving a data read command from an application, the kernel program determines whether the data storage element is set for accelerated data accessing, and when the data storage element is set for the accelerated data accessing, the kernel program guides the data read command to read a copy file from the data cache element, wherein the copy file is corresponding to a target file in the data storage element, and when receiving a data write command from the application, the kernel program determines whether the data storage element is set for the accelerated data accessing, and when the data storage element is set for the accelerated data accessing, the kernel program writes a file of the data write command into the data storage element and the data cache element simultaneously. |