Unlock instant, AI-driven research and patent intelligence for your innovation.

Storage method and device of Json data

A data storage and data table technology, which is applied in electronic digital data processing, structured data retrieval, special data processing applications, etc., can solve the problems of large memory consumption, memory waste, unfavorable cross-platform use, etc., to increase the operating load of the system , reduce memory dependence, save the effect of memory idle

Active Publication Date: 2016-05-25
ZHEJIANG DAHUA TECH
View PDF8 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Obviously, data storage with Json structure requires a large number of nodes to be configured, which will take up a large amount of memory, making the memory resources of embedded systems with relatively small memory more compact; on the other hand, Json data tables have strong Scalability, operations such as adding and modifying can be performed at any time, but adding, deleting, and searching large-scale Json tables will only involve changes in data in a small area. If the entire Json table resides in memory for a long time, it will cause a lot of waste of memory
[0006] The existing Json modularization technology is mostly applied on the front-end web or platforms with sufficient memory, and the parsing of module data depends on functional modules, which is not suitable for embedded system application scenarios and is not conducive to cross-platform use; in addition, the existing The Json modularization technology requires that the data in the module must be a complete Json table, which is not suitable for the storage and processing of Json tables containing a large number of nodes
[0007] Therefore, in order to realize the storage of Json data in the embedded system, and also to be compatible with the defect that Json data consumes too much memory, it is necessary to improve the storage mechanism of Json data to ensure that Json data will not be expanded due to node expansion during operation. lead to unlimited memory growth

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
  • Storage method and device of Json data
  • Storage method and device of Json data
  • Storage method and device of Json data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0059] Preferred embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.

[0060] In order to realize the smooth storage of Json data in an environment with insufficient memory, in the embodiment of the present application, the Json data table resident in the memory is stored in blocks by means of data segmentation, memory mapping, etc. to a designated storage device (such as, Hard disk, Flash, thereby reducing the memory usage of Json during device operation.)

[0061] refer to figure 1 As shown, in the embodiment of this application, the schematic flow of Json data storage is as follows:

[0062] Step 100: Divide the Json data table into several Json data information (recorded in the JB block) according to the set path depth N, which represents the number of paths from the selected root node to the outermost leaf node.

[0063] For example, see figure 2 As shown, assuming N=3, then, starting from the ROOT no...

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 invention relates to the data storage technology, in particular to a storage method and device of Json data. The storage method and device is used for realizing the successful storage of the Json data in an environment that memory is insufficient. The method comprises the following steps: a Json data table is subjected to segmentation processing, Json data information obtained by segmentation and corresponding Json abstract information are mutually associated through relational index information, a relation chain is formed, the data is mapped to an appointed storage area via a memory exchange area, so that more data nodes can be processed under the environment that the memory is insufficient, a Json table which occupies more memory saves the idle memory and does not increase system operating load, and dependency on the memory by a code operating period is reduced.

Description

technical field [0001] This application relates to data storage technology, in particular to a method and device for storing Json data. Background technique [0002] The present application relates to the field of application program processing, and in particular to a method and system for storing a large amount of information configuration or data summary based on Json in an embedded system with relatively tight memory. [0003] Under the existing technology, Json has been widely used as a data storage structure. Json is a relatively flexible and intuitive data storage structure. It has good compatibility and scalability, and is very suitable as a client and device Interaction carrier between terminals. [0004] Json stores data in the form of strings, and adds descriptions to the stored data, which is very intuitive during the equipment development and debugging phase. Specifically, Json data usually exists in the form of a data table. The Json data table mainly has two ...

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/21G06F16/2228
Inventor 杨帅
Owner ZHEJIANG DAHUA TECH