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.
实施例提供一种数据存储格式的转换方法及装置,涉及数据库系统技术领域,能够使得数据库系统动态确定底层存储格式,实现系统自动调节优化功能。 该方法包括:若以第一存储格式存储数据的数据库的系统性能指标满足用户设定的转换条件,则确定数据库中存储数据所需的第二存储格式;将数据的存储格式从第一存储格式转换为第二存储格式;判断存储格式转换后的数据库的压缩比是否满足第一预设条件,并对数据库中的数据进行排序,测试排序时间是否满足第二预设条件;若压缩比满足第一预设条件,且排序时间满足第二预设条件,则进行对外服务;或者,若压缩比不满足第一预设条件,和/或排序时间不满足第二预设条件,则重新确定第二存储格式。patents-wipo patents-wipo