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

A storage method and device for json data

A data storage and data table technology, applied in structured data retrieval, semi-structured data retrieval, database design/maintenance, etc., can solve problems such as large memory consumption, memory waste, unfavorable cross-platform use, etc., to achieve increased system operation Load, reduce memory dependence, save memory idle effect

Active Publication Date: 2019-02-12
ZHEJIANG DAHUA TECH CO LTD
View PDF8 Cites 0 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
  • A storage method and device for json data
  • A storage method and device for json data
  • A storage method and device for json data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0059] The preferred embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0060] In order to achieve 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 (eg, Hard disk, Flash, and then reduce the memory usage of Json during the operation of the device.)

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

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

[0063] For example, see figure 2 As shown, assuming that N=3, then, sta...

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] This application relates to the field of application processing, and in particular to a method and system for storing a configuration or data summary with a large amount of information 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 more 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 in the equipment development and debugging stages. Specifically, Json data usually exists in the form of a data table. The Json data table mainly has two attribute values, key and ...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/84G06F16/81
CPCG06F16/21G06F16/2228
Inventor 杨帅
Owner ZHEJIANG DAHUA TECH CO LTD