The invention relates to a method for increasing random
database data read-write speed. The method is characterized in that a
solid state disk is used as a cache for increasing random read-write speed of a
database, and the method includes a data writing sub-method and a data reading sub-method. The data writing sub-method includes acquiring corresponding sector numbers in a
database hard disk according to data needing writing, calculating corresponding data sets according to the sector numbers, writing the data in the data sets, marking data blocks as
dirty data, and when the
dirty data reaches a set threshold, automatically writing the
dirty data in the database hard disk. The data reading sub-method includes acquiring corresponding sector numbers according to data needing reading, calculating corresponding data sets according to the sector numbers, judging whether data needing reading are included in a current
data set or not, if yes, reading data from the current
data set, and otherwise, reading data from the database hard disk. Compared with the prior art, the method has the advantages of low cost, high reliability, capability of effectively increasing the data read-write speed, and the like.