Method and device for storing data

A technology for storing data and sub-data blocks, applied in the computer field, can solve problems such as inability to meet business logic, affect data interaction efficiency, and reduce storage efficiency, and achieve data synchronization, improve scalability, and prevent data loss.

Active Publication Date: 2013-09-18
SHENZHEN TENCENT COMP SYST CO LTD
View PDF5 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Since data may be updated at any time in the game scene, whether the data generated by the business logic is stored in the cache space of the network storage device or stored in the database, it needs to be connected to the network storage device multiple times through the network, and the network The connection itself will lead to a reduction in storage efficiency, and will also affect the efficiency of subsequent data interaction; at the same time, if the data structure in the database is fixed and the scalability is not high, it will not be able to meet the needs of business logic to change the data structure

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
  • Method and device for storing data
  • Method and device for storing data
  • Method and device for storing data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0079] see figure 1 , this embodiment provides a method for storing data, and the process of the method is as follows:

[0080] 101: Configure a scalable two-dimensional data cache array in the local shared memory according to a preset configuration strategy. The two-dimensional data cache array includes multiple logical data blocks, and each logical data block includes multiple sub-data for storing data Piece;

[0081] 102: According to business logic requirements, load the data on the network storage device into corresponding sub-data blocks.

[0082] Further, after the scalable two-dimensional data cache array is configured in the local shared memory according to the preset configuration strategy, it also includes:

[0083] According to the data stored in each sub-data block, a corresponding data state is set for each sub-data block, and the data state is one of idle state, loading state, normal state, modification state, release state and timing release state.

[0084] ...

Embodiment 2

[0105] This embodiment provides a method for storing data. By configuring a scalable two-dimensional data cache array in the local shared memory, the data that changes continuously with the system operation is not only stored by the network storage device, but also It is loaded from the network storage device into the sub-data blocks of the two-dimensional data cache array, thereby realizing local storage and recall of data. For the convenience of description, in combination with the content of the first embodiment above, this embodiment uses figure 2 The data storage system shown is taken as an example, and the method provided in this embodiment is illustrated in detail. see image 3 , the method flow provided by this embodiment is specifically as follows:

[0106] 301: Configure a scalable two-dimensional data cache array in the local shared memory according to a preset configuration strategy. The two-dimensional data cache array includes multiple logical data blocks, and...

Embodiment 3

[0149] see Figure 7 , this embodiment provides a device for storing data, the device is used to implement the method for storing data provided in Embodiment 1 or Embodiment 2 above, and the device includes:

[0150] The configuration module 701 is configured to configure a scalable two-dimensional data cache array in the local shared memory according to a preset configuration policy, the two-dimensional data cache array includes a plurality of logical data blocks, and each logical data block includes multiple sub-blocks of data;

[0151] The loading module 702 is configured to load data on the network storage device into corresponding sub-data blocks according to business logic requirements.

[0152] Wherein, the local shared memory refers to a large-capacity memory that can be accessed by different central processing units in a multi-tasking processor computer system, and the shared memory can be directly read and written to improve the processing efficiency of the processo...

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 method and a device for storing data and belongs to the technical field of computers. The method comprises the following steps of: configuring an extensible two-dimensional data cache array into a local shared memory according to a preset configuration strategy, wherein the two-dimensional data cache array comprises a plurality of logic data blocks, and each logic data block comprises a plurality of subdata blocks used for storing the data; and loading data in a network storage device into the corresponding subdata blocks according to the business logic requirement. According to the method and the device for storing the data disclosed by the invention, through configuring the extensible two-dimensional data cache array into the local shared memory according to the preset configuration strategy, and loading the data in the network storage device into the corresponding subdata blocks of the two-dimensional data cache array according to the business logic requirement, local data storage is realized, and therefore, the efficiency of data storage and interaction can be improved. Moreover, as the two-dimensional data cache array for storing the data is extensible, the extendibility of a data structure is improved, and the business logic requirement can be met.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for storing data. Background technique [0002] With the vigorous development of the game market, the types of games emerge in endlessly, and the number of players in the game gradually increases from single player to multiplayer. With the increase of the number of players, the amount of data generated by the game gradually increases, and the business logic also becomes more complex. How to efficiently store the data generated by business logic to provide users with better services has become a matter of great concern to game manufacturers. [0003] In the existing technology, when storing the data generated by the business logic, the data generated by the business logic is transmitted to the network storage device through the network, and stored by the database on the network storage device, and in order to speed up the data interaction, the existing techno...

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 Applications(China)
IPC IPC(8): G06F12/08H04L29/08
CPCG06F12/00G06F3/061G06F3/0656G06F12/0871G06F12/0804G06F12/12G06F2212/1016A63F2300/5533A63F13/35G06F16/275G06F3/067G06F12/10
Inventor 林爱民唐炯王军帅
Owner SHENZHEN TENCENT COMP SYST 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