Patent ID: 9589004
Date: 2017-03-07
CPC Classifications: G06F

Claim:
1. A data storage method in a computer system of a distributed computer system to provide fast access to stored data, comprising: determining, by the computer system, a same column attribute of at least two data objects that are to be stored in a KeyValue type distributed database, wherein each data object has a data record; determining, by the computer system, a format of a row identifier, in the KeyValue type distributed database, of each data object of the at least two data objects, wherein the row identifier format comprises the same column attribute and a data object identifier, wherein data object identifiers of different data objects in the at least two data objects are at a same location in the row identifier format and located after the same column attribute; determining, by the computer system, a row identifier value for each data record of each data object according to the determined row identifier format; and sorting, by the computer system, all the data records of the at least two data objects in a first order according to row identifier values of all the data records, wherein all data records of the at least two data objects form a cluster table; storing, by the computer system, each data record in the cluster table and the row identifier value of each data record in the KeyValue type distributed database, wherein the row identifier value of each data record is used as a primary index of each data record in the KeyValue type distributed database; receiving a data request, wherein the data request instructs to query or acquire a data record in the at least two data objects; constructing, according to the row identifier format, query information for querying the KeyValue type distributed database, wherein the query information comprises the same column attribute; and exporting, according to the query information, a data record whose primary index comprises the query information from the KeyValue type distributed database.