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 storag

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

Example Embodiment

[0027] Example one

[0028] When the related technology stores data, the background daemon needs to load the database data into the shared memory of the business server for storage. If the database data is updated, it is necessary to modify the code of the daemon process, and the daemon process after modifying the code 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, because the code of the daemon needs to be modified to load the updated data into the shared memory for storage, the code is modified The process is cumbersome, and the code needs to be modified every time the updated data is loaded. This makes the process of storing the updated data more cumbersome, with a long delay, and the scalability of the data in the shared memory is poor, resulting in low data storage efficiency .

[0029] In order to prevent the abov...

Example Embodiment

[0054] Example two

[0055] In order to simplify the data storage process, improve the scalability and efficiency when storing data, and thereby improve the efficiency of data query, an embodiment of the present invention provides a data storage method. The source of the data stored in this 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 will be illustrated by examples. See figure 2 , The method flow provided in this embodiment includes:

[0056] 201: Determine at least one data acquisition instruction according to a configuration file, where 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, ...

Example Embodiment

[0109] Example three

[0110] The embodiment of the present invention provides a data storage device, which is used to execute the data storage method provided in the first or second embodiment above. See image 3 , The device includes:

[0111] The first determining module 301 is configured to 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 attribute of each column of data under each data table. The data table corresponds to a data acquisition instruction;

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

[0113] The second determining module 303 is configured 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 is co...

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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products