-
公开(公告)号:US11132260B2
公开(公告)日:2021-09-28
申请号:US15927301
申请日:2018-03-21
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Hao Fang , Jieshan Bi , Chaoqiang Zhong
Abstract: The present application provides a data processing method and apparatus. The method includes: when a region in a table of a database system meets a predefined condition, saving data in the region as a data storage file to a storage device, where the data storage file includes time metadata, and the time metadata comprises a region write time of the data in the region; when a condition for triggering a combination operation is met, obtaining a time for performing a backup operation most recently; selecting at least two first data storage files, where a region write time recorded in time metadata included in the at least two first data storage files is before the obtained time; and combining the selected at least two first data storage files, therefore resolving a problem in the prior art that a time consumed for performing a backup operation is long.
-
公开(公告)号:US20180276262A1
公开(公告)日:2018-09-27
申请号:US15991845
申请日:2018-05-29
Applicant: Huawei Technologies Co., Ltd.
Inventor: Jieshan Bi , Yijun Guo
IPC: G06F17/30
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.
-
公开(公告)号:US20180239800A1
公开(公告)日:2018-08-23
申请号:US15958267
申请日:2018-04-20
Applicant: HUAWEI TECHNOLOGIES CO.,LTD.
Inventor: Yijun Guo , Jieshan Bi
IPC: G06F17/30
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.
-
公开(公告)号:US20180239780A1
公开(公告)日:2018-08-23
申请号:US15960167
申请日:2018-04-23
Applicant: Huawei Technologies Co., Ltd.
Inventor: Jieshan Bi , Hao Fang , Chaoqiang Zhong , Yijun Guo
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.
-
公开(公告)号:US20180210795A1
公开(公告)日:2018-07-26
申请号:US15927332
申请日:2018-03-21
Applicant: HUAWEI TECHNOLOGIES CO.,LTD.
Inventor: Hao Fang , Jieshan Bi , Chaoqiang Zhong
IPC: G06F11/14
CPC classification number: G06F11/1461 , G06F11/14 , G06F11/1451 , G06F16/00 , G06F2201/835
Abstract: A data backup method and a data processing system are provided. The method includes: when a quantity of storage files stored in a storage medium meets a preset threshold, acquiring storage files which are stored in the storage medium after a time point, where the time point is a time of previously backing up storage files in the storage medium; combining the storage files after the time point to obtain at least one new storage file; and backing up the at least one new storage file. Therefore, incremental backup is performed on the storage files after the time point.
-
-
-
-