The application discloses a
data retrieval method and device, and relates to the field of databases.The method comprises the following steps: searching for a first secondary index item in a first secondary index page at a first
position number, wherein the first secondary index item comprises
time range information of a first primary index page and storage location information of the first primary index page, the
time range indicated by the
time range information comprises a target time point, obtaining the first primary index page based on the storage location information of the first primary index page, searching for a first primary index item in the first primary index page, wherein the first primary index item comprises the target time point, and obtaining data of the first
position number at the target time point according to the first primary index item.The method is equivalent to reading multiple primary index pages by reading one secondary index page, the first primary index page is quickly located, and therefore, the data of the first
position number at the target time point is quickly retrieved, and the
data retrieval efficiency is improved.