CPC G06F 16/2379 (2019.01) [G06F 16/22 (2019.01); G06F 16/2365 (2019.01); G06F 16/245 (2019.01); G06F 16/27 (2019.01)] | 20 Claims |
1. A computer-implemented method, comprising:
obtaining, by a data service provider that stores data by using a blockchain-type ledger, a service identifier and a service label of a data record, wherein the blockchain-type ledger includes multiple different data records having a same service identifier;
establishing, by the data service provider, a mapping relationship among the service identifier, the service label, and location information that indicates a location of the data record in the blockchain-type ledger;
writing, by the data service provider, the mapping relationship into an index for which a primary key is the service identifier, and for which an index value includes respective mapping relationships for each data record in the blockchain-type ledger having the same service identifier;
receiving, by the data service provider from a client, a query that comprises a given service identifier and a given service label;
determining, by the data service provider, the location information for one or more data records represented in the index that match the given service identifier and the given service label;
obtaining, by the data service provider, the one or more data records from the blockchain-type ledger based on the location information; and
providing, by the data service provider to the client, the one or more data records.
|