US 12,450,264 B2
Data storage method and data storage apparatus for string data
Zhitao Shen, Zhejiang (CN); Jiujing Zhang, Zhejiang (CN); Lingkai Meng, Zhejiang (CN); Shiyu Yang, Zhejiang (CN); and Wei Jia, Zhejiang (CN)
Assigned to Alipay (Hangzhou) Information Technology Co., Ltd., Hangzhou (CN)
Filed by Alipay (Hangzhou) Information Technology Co., Ltd., Zhejiang (CN)
Filed on Jan. 16, 2024, as Appl. No. 18/413,729.
Claims priority of application No. 202310095847.1 (CN), filed on Jan. 18, 2023.
Prior Publication US 2024/0241892 A1, Jul. 18, 2024
Int. Cl. G06F 16/28 (2019.01); G06F 16/215 (2019.01)
CPC G06F 16/288 (2019.01) [G06F 16/215 (2019.01)] 20 Claims
OG exemplary drawing
 
1. A data storage method for string data, comprising:
performing pattern matching on each piece of string data in a to-be-stored string data set by using a pattern data set, to determine whether the string data comprises matched pattern data in the pattern data set, wherein the pattern data set is obtained through training by using a string data sample set sampled from the to-be-stored string data set, and each piece of pattern data is common string data of a plurality of string data samples and is stored in a pattern data storage area of a data storage system;
in response to that the string data comprises the matched pattern data, extracting dedicated string data other than the matched pattern data from the string data, and storing the extracted dedicated string data in a dedicated data storage area of the data storage system, wherein an index relationship is formed between the stored dedicated string data and corresponding pattern data stored in the pattern data storage area; and
in response to that the string data does not comprise the matched pattern data, storing original data of the string data in the dedicated data storage area as a whole.