A Construction Method of Bloom Filter for Multi-layer Database Based on Hierarchical Allocation

A technology of bloom filter and construction method, which is applied in the fields of electrical digital data processing, digital data information retrieval, special data processing applications, etc., can solve the problems of reducing storage space, that is, memory overhead, etc.
CN106874458BActive Publication Date: 2019-10-22PINGCAP XINGCHEN (BEIJING) TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
PINGCAP XINGCHEN (BEIJING) TECH CO LTD
Publication Date
2019-10-22

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a bloom filter construction method based on a hierarchical and distributive multi-layer database. The method is characterized by comprising the steps of designing and constructing a storage structure, calculating a combination probability sum, solving the digit distributed to each layer of a Bloom filter and maintaining the storage structure; when a union operation is carried out, more Bloom filter bit digit is distributed to each key at high layer located at a multi-layer key value database (LevelDB), and less Bloom filter bit digit is distributed to keys at lower layer, wherein the false alarm rate of the Bloom filter is reduced with the increasing of the bit digit. Compared with an LevelDB traditional Bloom filter construction method, when memory overhead is ensure to be consistent with traditional memory overhead, according to the method, hard disk input and output (I / O) operation caused by false alarm of the Bloom filter can be reduced, the times of I / O of the hard disk are reduced, and average delay of LevelDB query operation is reduced; when expected times of I / O of the hard disk are ensured to be basically equal to that of a traditional method in the process of query, the memory overhead brought about by the Bloom filter is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention belongs to the technical field of computer data storage, and in particular relates to a Bloom filter construction method for hierarchically allocating the number of bits of a Bloom filter of a multi-layer key-value database system using a log merging tree as a main body. Background technique

[0002] The Bloom filter (Space / time trade-offs in hash) introduced by the American Association for Computing Machinery's "1970 ACM CACM International Journal" (Communications of the ACM, Volume 13, July 1970, Question 7, Pages 422-426) coding with allowable errors) is an extremely space-efficient probabilistic data structure for checking the presence or absence of an element in a collection. When the multi-layer key-value database system (LevelDB) based on the log merge tree deployed on the hard disk that is open sourced by Google implements and uses the Bloom filter technology, it stores the key-value pairs in the file (SSTable) for each layer. A ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More