Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data storing and reading method and device using protobuf

A technology of data storage and storage location, which is applied in database indexing, electronic digital data processing, structured data retrieval, etc. It can solve the problems of reducing manual maintenance costs, inconsistent configuration files and proto package files, and achieve the goal of reducing manual maintenance costs Effect

Active Publication Date: 2016-06-15
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the embodiments of the present invention is to provide a data storage and reading method and device using protobuf, which solves the problem of inconsistency between configuration files and proto package files, thereby reducing manual maintenance costs

Method used

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
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data storing and reading method and device using protobuf
  • Data storing and reading method and device using protobuf
  • Data storing and reading method and device using protobuf

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0043] In order to reduce the maintenance cost of manually maintaining the consistency between configuration files and proto package files, embodiments of the present invention provide a data storage method and device using protobuf and a data reading method and device using protobuf.

[0044] A data storage method using protobuf provided by an embodiment of the present invention is firstly introduced below.

[0045] It should be noted that, a data storage met...

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

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a data storing and reading method and device using protobuf. The method includes the steps of obtaining to-be-stored data, establishing a target information example used for storing the to-be-stored data, defining the name of the target information example according to preset rules, obtaining target correlation configuration information corresponding to the target storage identification related to the name of the target information example from a proto package file, and storing the target information example in the storage position indicated by the target correlation configuration information in a database, wherein the storage identification related to the name of the information example and the correlation configuration information corresponding to the storage identification are stored in the proto package file. Compared with the prior art, no configuration files are needed, consistency of proto source files and configuration files does not need to be manually maintained, and the manual maintenance cost is greatly reduced.

Description

technical field [0001] The invention relates to the technical field of data storage, in particular to a data storage method and device using protobuf, and a data reading method and device using protobuf. Background technique [0002] protobuf is a set of methods for serializing data structures developed by Google. It can be used as a communication protocol, data storage format, etc., and it has unlimited system languages, unlimited system platforms, strong scalability, and simple operation. advantage. [0003] In the prior art, the proto source file in protobuf stores the data format definition, that is, defines the storage identifier related to the name of the message instance, wherein each message instance corresponds to a unique message instance name, and the name related to the message instance The storage identifier is: the name of the message instance, or information about the combination of the name of the message instance and the name of the class corresponding to t...

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

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30
CPCG06F16/22
Inventor 郑程李雄锋
Owner BEIJING QIYI CENTURY SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products