Data access method, device, equipment and storage medium

A data access and data storage technology, applied in the field of data processing, can solve the problems of cumbersome process, long time-consuming and high cost, and achieve the effect of simplifying the storage process and reducing the use and maintenance costs.

Pending Publication Date: 2020-09-18
TENCENT TECH (SHENZHEN) CO LTD
View PDF0 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the case of storing data structures in a database-based manner, if you want to store more complex data structures, such as hybrid data structures or custom data structures, you need to design such as adjacency list (Adjacency List), path enumeration (Path Enumeration) , Closure Table and other storage structures, these storage structures are not only expensive to use and maintain, but also need to be completely rewritten when a new data structure appears, the process is cumbersome and time-consuming

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 access method, device, equipment and storage medium
  • Data access method, device, equipment and storage medium
  • Data access method, device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] Embodiments of the present application are described below in conjunction with the accompanying drawings.

[0035] At present, the vast majority of applications on the market still use Android's native database or SharedPreference to store data persistently. There are restrictions on the complexity of the stored data, and too complex data cannot be stored. For example, some data structure data.

[0036] For some complex data structures, it can be stored by designing corresponding database table structures such as adjacency lists. However, once the fields of the data structure change, no matter what kind of design it is, it will be very difficult to update the database table, and it will take a lot of time to adjust, and it is easy to make mistakes if you are not careful. If new and complex data needs to be stored in the future, it needs to start with the steps of creating database tables, writing additions, deletions, modification and query methods, etc. The process is...

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 discloses a data access method, a device, equipment and a storage medium. If a storage request is received, to-be-stored data can be obtained, and the data structure ofthe to-be-stored data is defined by a structure body in a data protocol supporting an extended field. According to the position label of the field in the structural body, the to-be-stored data is encoded to generate the target data file, so that the complex data structure is converted into the binary format convenient for storage in an encoding mode, and the target data file can be directly stored to the target position. Therefore, the method can be suitable for data storage of various data structures, the complex data structure can be converted into a file format convenient for storage during storage, a storage structure does not need to be designed, and the use and maintenance cost is reduced. Meanwhile, due to the fact that the data protocol supports field extension, when a new data structure exists or the data structure is changed, processing of the existing data structure cannot be affected by field addition, and the storage process of the new complex data structure is simplified.

Description

technical field [0001] The present application relates to the field of data processing, in particular to a data access method, device, equipment and storage medium. Background technique [0002] Terminal devices usually generate or need to configure various application data when running applications. The storage of application data is generally stored in the database, including the following methods: SharedPreference (a lightweight storage method), lightweight structured query Language (Structured Query Language Lite, SQLite) database, content provider (ContentProvider), etc. SharedPreference is generally used to store some simple data structures, such as integers, Boolean values, strings, etc. SQLite databases are mostly used to store relational data. [0003] In the case of storing data structures in a database-based manner, if you want to store more complex data structures, such as hybrid data structures or custom data structures, you need to design such as adjacency li...

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): G06F16/245G06F16/22
CPCG06F16/22G06F16/245
Inventor 钟文涛
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products