Data storage method and system for a data set - Patents.com

The data storage method addresses DBMS inefficiencies by using intermediate data formats and cryptographic hash values to enhance performance and enable high-speed queries and updates in large datasets, ensuring efficient data management and portability.

JP7540830B2Active Publication Date: 2024-08-27スニーク スウェーデン アーベー
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2020003494
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-01-17
Filing Date
2020-01-14
Publication Date
2024-08-27
Estimated Expiration
2040-01-14

AI Technical Summary

Technical Problem

Traditional DBMSs face performance issues with response time and data synchronization when performing read-only searches on large static datasets, leading to inefficiencies in data management.

Method used

A data storage method involving data capture in an intermediate format, conversion to production format, and merging of data volumes, utilizing cryptographic message digests for hash values and delegating index search tasks to the file system, with data updates performed in batches without service interruption.

Benefits of technology

This approach significantly enhances performance speeds and enables efficient data management with high-speed queries and updates, maintaining data integrity and portability across different environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007540830000001
    Figure 0007540830000001
  • Figure 0007540830000004
    Figure 0007540830000004
  • Figure 0007540830000005
    Figure 0007540830000005
Patent Text Reader

Abstract

To provide code processing and data technology for removing overhead imposed by a standard DBMS system.SOLUTION: A method comprises: storing data in an intermediate format for storage; converting the intermediate data format to a production data format of two data volumes; and merging the two data volumes to one data volume.SELECTED DRAWING: Figure 5
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates generally to code processing and data technology. [Background technology]

[0002] When you need to perform single-key lookups against large sets of static, read-only data (trillions of records), traditional DBMSs (database management systems) simply can't meet the demands not only in response time, but also in the time required to synchronize data between servers and perform backups.

[0003] Even given the simple task of a single-key read-only lookup over a large amount of static data, standard DBMS internal mechanisms, including (but not limited to) concurrency control, access control, transaction processing, and logging, slow down performance. Summary of the Invention

[0004] The following simplified summary is provided to provide a basic understanding of some aspects of various embodiments described in this disclosure. This summary is not an extensive overview of the disclosure. It is not intended to identify key or critical elements of the claimed invention, nor to delineate the scope of the invention. The following summary is merely intended to present some concepts used in the embodiments described in this disclosure in a simplified form as a prelude to the more detailed description of those embodiments.

[0005] An objective of some embodiments described in this disclosure is to arrange a system and method for eliminating the overhead imposed by standard DBMS (Database Management System) systems. This is achieved by a data processing method that includes storing data in an intermediate format for storage, converting the intermediate data format into a production data format of two data volumes, and merging the two data volumes into one data volume.

[0006] The focus of some embodiments described in this disclosure is also a data system including a storage unit that stores data in an intermediate format for storage, a converter unit that converts the intermediate data format into a production data format of two data volumes, and a merger unit that merges the two data volumes into one data volume.

[0007] The embodiments described herein may be based on storing data in an intermediate format for storage and converting the intermediate data format to a production data format of the two data volumes. The embodiments described herein may also be based on merging the two data volumes into one data volume.

[0008] An advantage of the embodiments described herein is that they can enable significantly higher performance speeds than using standard database management systems. [Brief description of the drawings]

[0009] Exemplary and non-limiting embodiments of the present disclosure and their advantages are described in more detail below with reference to the accompanying drawings.

[0010] [Figure 1] This shows sample data consisting of a passport number and a full name. [Diagram 2]This represents the sample data from FIG. 1 with the addition of a record key, which is the MD5 sum of the passport shown in FIG. [Diagram 3] FIG. 1 represents the result data of FIG. 2 stored in raw format. [Figure 4] Represents the result data packed in production format (only bank 0f shown, hex dump). [Diagram 5] FIG. 5 depicts a data system flow chart for processing the data of FIGS. 1 to 4. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] The embodiments described herein relate to a system and method for removing the overhead imposed by standard database management systems (DBMS). The method involves using cryptographic message digests to achieve a uniform distribution of hash values, i.e. hash keys, and relaying part of the index lookup effort to the file system itself. This means that part of the work is passed to the file system. By using part of the hash in the file name, the size of the bank can be made smaller than if the entire hash were stored in the database. Furthermore, this space is essentially free, since each file name requires the name of the file. In other words, part of the hash may be used in the file allocation table of the file system.

[0012] Preferably, the data set is divided into data banks, some of the data keys are stored in the names of files and directories, and some of the index search tasks are delegated to the file system. Data updates are preferably performed in batches without service interruption.

[0013] The disclosed data storage method can include three phases: Data capture stores data in an intermediate (raw format) format that ensures the fastest possible data recording; Data packing converts the captured data into a production-ready format (production format) that allows fast queries; When the intermediate format is processed and stored, the production format is achieved for the fastest possible look-up tables (LUTs); Data merging merges at least two existing data volumes into one volume.

[0014] The data storage method described in this patent application overcomes the deficiencies of prior art DBMS solutions to deliver high performance queries against large data sets. The data sets described in this patent application are characterized by a single key and mutable data fields that can be updated without service interruption. Data is stored in a portable format that allows for coding implementation in different computing environments and platforms.

[0015] In one exemplary embodiment, the purpose of the data capture mechanism is to provide the fastest possible data storage for future processing and merging. Thus, data capture may be performed on an unlimited number of machines, merged together at a later stage, and then moved into production.

[0016] A dataset consists of two fields: a data index and data records. The data index is converted to a message digest using a preferred cryptographic algorithm with the goal of providing a uniform distribution of the indexes. The data records preferably do not have a fixed length, but may be limited to a predefined maximum length in some embodiments.

[0017] In one exemplary embodiment, information from a data collection is stored in individual flat files called databanks. These databanks are named after the first N (addressing) nibbles of the data index and can contain, for example, plain text information or information in binary format, one line per data record. The line contains the data index followed by the entire data record.

[0018] Information can be obtained in different instances and in raw format, and can be merged by simply concatenating the databanks together, for example using colon separated fields, or by expressing everything in JSON format. This can result in duplicate information, but any duplicate information is removed during data packing.

[0019] In one exemplary embodiment shown in Figures 1 and 2, given a simple passport number and full name data structure, the desired key may be the passport number. The data index (passport number) may be converted to a message digest using the MD5 cryptographic algorithm.

[0020] Assuming that the information is stored in a database volume named people containing a data volume named passports, with two nibble databank addressing, the data in Figure 2 may be recorded in raw format in two databanks as presented in Figure 3. Using two nibbles results in a maximum of 256 databanks for the passports data volume.

[0021] In another exemplary embodiment, the process of data packing converts the raw format data volume into a production format. During this process, the data bank may be sorted and duplicate records removed, and then the data bank may be converted into two files, an index and a data, for which the file extensions .index and .data are used in this description.

[0022] The data indexes are converted from hex (ASCII) to binary and placed in the index file along with fixed length data pointers to the data records in the .data file. Nibbles from the index that are present in the bank name may be removed from the index file. Given small index files, they can be copied to RAM for faster seek times. The data file contains a concatenation of all the data records. Each record preferably contains a header describing the record length and optionally an integrity checksum.

[0023] In one exemplary embodiment, the data pointer is set to 32 bits, allowing a maximum data bank size of 4 Gb, the record length is a single byte, allowing a maximum data record size of 256 bytes, and the data checksum is set to a single byte.

[0024] Taking bank 0f using the raw format of Figure 3, the databank looks like this: bank 0f contains two records stored in the file 0f.data. These two records are shown in the Contents of the file 0f.data in Figure 4. The data records are preceded by a two byte header that declares the record size and checksum. Both records are 8 bytes long and the checksums are 97 and c6 (hex) respectively.

[0025] The bank's index file, 0f.index, contains the remaining 15 bytes of the record key (note that the first byte is in the filename), followed by a 32-bit (4-byte) pointer to the start of the record in the data file (bytes 0 and 10 respectively).

[0026] In another exemplary method, the data merge may include combining a source data volume with a destination data volume. The merge may be performed on a data volume in raw format by simply concatenating the individual data banks.

[0027] A binary merge of a production format data volume can include processing the databanks in the data volume and merging them into a temporary databank that has unity in the destination volume. Once a databank is merged, it is transferred to the destination databank. This allows data to be updated without the need to interrupt service.

[0028] Merging two data banks may be performed by processing each record on the banks and writing them in order to the merged bank, skipping duplicates.

[0029] Searching for a data record may include performing a search using a specific search algorithm, such as an interpolation search or a logarithmic search, in an index file for a corresponding data bank, obtaining the data position from a pointer, and obtaining the data length by subtracting the pointer from the next record's pointer (or the data file length in case of the last record).

[0030] FIG. 5 depicts a data system flow chart according to an exemplary and non-limiting embodiment of the present disclosure. The data system may include a storage unit 100 that stores data in an intermediate format for storage, and a converter unit 102 that converts the intermediate data format to a production data format of at least two data volumes. The conversion may be performed, for example, using a cryptographic algorithm process. The at least two data volumes may be, for example, a data index and a data record. In one exemplary embodiment, the data index may be located in a binary format in an index file with fixed-length data pointers to the data records in the file of data records. The data index may be converted from the intermediate format to the production format.

[0031] The data system further includes a merger unit 104 for merging at least two data volumes into one data volume. In one exemplary embodiment, a data record is searched by performing a search on the data index file, obtaining a data position from a given pointer, and obtaining a data length by subtracting the value of the given pointer from the value of the pointer of the next data record, or by subtracting the value of the given pointer from the data volume length if the given pointer is the last pointer in the data volume. Each data record volume may include a header describing the data record length and optionally an integrity checksum.

[0032] The data systems, such as units 100, 102 and 104, may be implemented, for example, with processor-based computer and microprocessor technology, to use algorithms and perform the methods according to the present invention.

[0033] The specific examples provided in the description given above should not be construed as limiting the scope and / or applicability of the appended claims.

Claims

1. Storing data in an intermediate data format for storage by capturing data in a dataset including a data index and data records, and splitting and storing the dataset into individual flat files; sorting the stored data to remove duplicate records and converting the stored data from the intermediate data format to a production format of at least two data volumes including an index file and a data file, the converting including storing a given data index in a binary format along with fixed length pointers to data records in the data files; merging the at least two data volumes into one data volume; and retrieving a data record from the one data volume by performing a search on the index file to obtain a data record position from a given pointer and subtracting the value of the given pointer from the value of the pointer for a next sequential data record or, if the given pointer is the last pointer, subtracting the value of the given pointer from the length of the data file to obtain a data record length.

2. The method of claim 1 , wherein the conversion is performed by using a cryptographic algorithm process.

3. 3. The method of claim 2, wherein each data file includes a header that describes at least one of a data record length and, optionally, an integrity checksum.

4. A data system, comprising: a storage unit for capturing data in a data set including a data index and data records, and storing the data in an intermediate data format for storage by splitting and storing the data set into individual flat files; a converter unit that sorts the stored data to remove duplicate records and converts the stored data from the intermediate data format to a production format of at least two data volumes including an index file and a data file, the converting including storing a given data index in a binary format together with fixed length pointers to data records in the data files; a merger unit for merging the two data volumes into one data volume; The data system is configured to retrieve a data record from the one data volume by performing a search on the index file to obtain a data record position from a given pointer and obtaining a data record length by subtracting the value of the given pointer from the value of the pointer for a next sequential data record or, if the given pointer is the last pointer, by subtracting the value of the given pointer from the length of the data file.

5. 5. The data system of claim 4, wherein the conversion is performed by using a cryptographic algorithm process.

6. 6. The data system of claim 5, wherein each data file includes a header describing at least one of a data record length and optionally an integrity checksum.

Citation Information

Patent Citations

  • Rapid caching and data delivery system and method

    US20120221606A1