Data storage method and apparatus

    公开(公告)号:US11030178B2

    公开(公告)日:2021-06-08

    申请号:US15991845

    申请日:2018-05-29

    Abstract: A data storage method and apparatus, where the method includes obtaining a primary index of a data object, where a row identifier of the primary index includes at least one field, determining a row identifier of a secondary index of the data object, where the row identifier of the secondary index includes an index field and a field other than the index field in the at least one field of the row identifier of the primary index, and the index field is different from the first field in the at least one field of the row identifier of the primary index, generating the secondary index of the data object according to the row identifier of the secondary index, and storing the data object according to the primary index and the secondary index, thereby saving storage space.

    Method and apparatus for updating data table in keyvalue database

    公开(公告)号:US10467192B2

    公开(公告)日:2019-11-05

    申请号:US15054475

    申请日:2016-02-26

    Abstract: A method for updating a data table in a KeyValue database is provided. Raw data is received and formatted into a data updating file. An update timestamp is set for each column qualifier in each row of the data updating file. A data deleting file is generated. A delete timestamp is set for each row of the data deleting file. Each row of the data deleting file corresponds to one row of old data in the data table. Each row of the data deleting file includes a row key that is the same as the row key of the corresponding row of old data in the data table. The data updating file and the data deleting file are both imported into the data table. Consequently, timestamp is used to indicate the valid data in the data table. An apparatus configured to perform the method is also provided.

    Data Storage Method and Apparatus
    4.
    发明申请

    公开(公告)号:US20180276262A1

    公开(公告)日:2018-09-27

    申请号:US15991845

    申请日:2018-05-29

    CPC classification number: G06F16/2264 G06F16/221 G06F16/2272

    Abstract: A data storage method and apparatus, where the method includes obtaining a primary index of a data object, where a row identifier of the primary index includes at least one field, determining a row identifier of a secondary index of the data object, where the row identifier of the secondary index includes an index field and a field other than the index field in the at least one field of the row identifier of the primary index, and the index field is different from the first field in the at least one field of the row identifier of the primary index, generating the secondary index of the data object according to the row identifier of the secondary index, and storing the data object according to the primary index and the secondary index, thereby saving storage space.

    DATA QUERY METHOD AND APPARATUS
    5.
    发明申请

    公开(公告)号:US20180239800A1

    公开(公告)日:2018-08-23

    申请号:US15958267

    申请日:2018-04-20

    CPC classification number: G06F16/2455 G06F16/22 G06F16/2272 G06F16/248

    Abstract: The present disclosure relates to the field of databases, and provides a data query method and apparatus. The method includes: receiving a query request sent by a client device, where the query request includes query data; querying a target secondary index of a primary index according to the query request, to obtain a target row primary key corresponding to the query data; obtaining, from the primary index, index data in a target index row corresponding to the target row primary key; and providing the index data in the target index row for the client device. According to the present disclosure, the target secondary index is queried by using the query data. A row primary key corresponding to the query data is obtained, then index data corresponding to the row primary key is obtained, thereby resolving a problem that in a related technology, when query is performed, query efficiency is relatively low.

    Method for Splitting Region in Distributed Database, Region Node, and System

    公开(公告)号:US20180239780A1

    公开(公告)日:2018-08-23

    申请号:US15960167

    申请日:2018-04-23

    CPC classification number: G06F16/173 G06F3/061 G06F16/23 G06F16/28 G06F16/901

    Abstract: In an embodiment, a first region is set according to a preset condition, the first region is a blank region reserved for storing new data of a key-value type. An embodiment method includes: when the new data of the key-value type is to be stored in the first region, receiving a region split command; updating, according to the region split command, a state identifier of the first region and in a state table to an identifier indicating that a read/write service is no longer provided, splitting the first region into at least two second regions, updating state identifiers of the second regions in the state table to identifiers indicating that a read/write service can be provided; and recording, in a metadata table, storage location information of the second regions.

Patent Agency Ranking