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

Data storage method and device

A data storage and data technology, which is applied in electrical digital data processing, special data processing applications, instruments, etc., can solve the problems of poor data scalability, low data storage efficiency, cumbersome and other problems, and achieve good scalability, high efficiency, Simple process effect

Active Publication Date: 2015-11-04
TENCENT TECH (BEIJING) CO LTD
View PDF4 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] When the amount of data is too large, the shared memory will not be able to load all the data, resulting in poor scalability of the storage structure; in addition, because the code of the daemon process needs to be modified when the updated data is loaded into the shared memory for storage, The code modification process is cumbersome, and the code needs to be modified every time the updated data is loaded, making the process of storing the updated data cumbersome, with a long delay, and poor scalability of the data in the shared memory, resulting in data storage. less efficient

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 storage method and device
  • Data storage method and device
  • Data storage method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] Because the related technology needs to load the database data into the shared memory of the business server by the background daemon process to store the data when storing the data. If the database data is updated, it is necessary to modify the code of the daemon process, and the daemon process after the code modification loads the updated data into the shared memory for storage. When the amount of data is too large, the shared memory cannot load all the data, resulting in poor scalability of the storage structure; in addition, since it is necessary to modify the code of the daemon process to load the updated data into the shared memory for storage, the code modification The process is cumbersome, and the code needs to be modified every time the updated data is loaded, which makes the process of storing the updated data cumbersome, with a long delay, and poor scalability of the data in the shared memory, resulting in low data storage efficiency .

[0029] In order to ...

Embodiment 2

[0055] In order to simplify the data storage process, improve the scalability and efficiency of data storage, and further improve the efficiency of data query, an embodiment of the present invention provides a data storage method. The source of the data stored in the method is the data in the first database, and the data in the first database is stored in the form of data tables, and each data table is composed of multiple columns of data. Combining with the content of the first embodiment above, the method provided in this embodiment is described with an example. see figure 2 , the method flow provided by this embodiment includes:

[0056] 201: Determine at least one data acquisition instruction according to the configuration file, the configuration file is used to describe each data table stored in the first database and the attributes of each column of data under each data table;

[0057] The configuration file may include, but is not limited to, an XML (eXtensible Marku...

Embodiment 3

[0110] An embodiment of the present invention provides a data storage device, and the device is used to implement the data storage method provided in the first or second embodiment above. see image 3 , the device consists of:

[0111] The first determining module 301 is configured to determine at least one data acquisition instruction according to a configuration file, the configuration file is used to describe each data table stored in the first database and the attributes of each column of data under each data table, each The data table corresponds to a data acquisition instruction;

[0112] The first acquisition module 302 is configured to acquire at least one piece of first data under each data table from the first database according to each data acquisition instruction;

[0113] The second determination module 303 is used to determine the key value corresponding to each piece of first data and the second data corresponding to each piece of first data, the second data i...

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 discloses a data storage method and device, and belongs to the technical field of data storage. The method comprises the following steps: according to a configuration file, determining at least one data acquisition instruction; according to each data acquisition instruction, obtaining at least one piece of first data under each data table from a first database; determining a key value corresponding to each piece of obtained first data and second data corresponding to each piece of first data; and storing the key value corresponding to each piece of first data and the second data corresponding to each piece of first data to obtain a second database. The key value corresponding to each piece of first data and the corresponding second data are determined, and the key value corresponding to each piece of first data and the second data corresponding to each piece of first data are stored to obtain the second database. Since the configuration file has expansibility, only the configuration file needs to be expanded when updated data needs to be loaded, a data storage process is simple, the stored data has the good expansibility, and therefore, data storage efficiency is high.

Description

technical field [0001] The invention relates to the technical field of data storage, in particular to a data storage method and device. Background technique [0002] With the rapid development of the Internet, more and more people start to use the Internet business. When users use network services, they usually query relevant data in the network services. For example, when a user is playing an online game, if the user needs to know the game data of another user at a certain moment, the user will query the game data of the other user through the interface provided by the game. Since the storage method of data directly affects the query process of data, how to store data is the key to improve the efficiency of data query. [0003] A data storage method is provided in the related art. In this method, the data is stored in the database in the form of a data table, and the background daemon process loads the database data into the shared memory of the service server for storage...

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
Inventor 王伏根
Owner TENCENT TECH (BEIJING) 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