摘要 |
Provided in the embodiment are a method and apparatus for the conversion of data storage formats, which relate to the technical field of database systems and can enable a dynamic determination of the low-level storage format by a database system so as to realize the automatic regulation and optimization functions of the system. The method comprises: if the system performance indexes of a database in which data is stored in a first storage format meet a conversion condition set by a user, then determining a second storage form required for data storage in the database; converting the storage format of the data from the first storage format to the second storage format; judging whether the compression ratio of the database undergoing storage format conversion meets a first preset condition, sorting the data in the database, and testing whether the time for sorting meets a second preset condition; if the compression ratio meets the first preset condition and the time for sorting meets the second preset condition, then providing external services; or if the compression ratio fails to meet the first preset condition and/or the time for sorting fails to meet the second preset condition, then re-determining the second storage format. |