Method and device for optimizing memory storage space of mass data
The invention discloses a mass data memory storage space optimization method and device. The method comprises the following steps: acquiring a preset encryption mode to obtain a ciphertext; distributing the key value of each ciphertext to a preset bucket; and intercepting a character string with a p...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a mass data memory storage space optimization method and device. The method comprises the following steps: acquiring a preset encryption mode to obtain a ciphertext; distributing the key value of each ciphertext to a preset bucket; and intercepting a character string with a preset digit in the key in each bucket as a field key so as to store the field in the hash. The storage space is greatly optimized through combination of two modes of bucket dividing and sub-string storage interception of the keys stored in the buckets.
本发明公开了一种海量数据内存存储空间优化的方法及装置,其中方法包括获取预设加密方式得到密文;将各个所述密文的key值分配到预设的桶中;截取每个桶里key中预设位数的字符串作为field key,以对hash内部的filed进行存储。通过通过分桶,以及对桶内存储的key进行截取子串存储两种方式结合将大大的优化存储空间。 |
---|