CN109646947A - Deposit method, apparatus, equipment and the storage medium of game data - Google Patents

Deposit method, apparatus, equipment and the storage medium of game data Download PDF

Info

Publication number
CN109646947A
CN109646947A CN201811478439.XA CN201811478439A CN109646947A CN 109646947 A CN109646947 A CN 109646947A CN 201811478439 A CN201811478439 A CN 201811478439A CN 109646947 A CN109646947 A CN 109646947A
Authority
CN
China
Prior art keywords
data
game
deposit
variation
database
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811478439.XA
Other languages
Chinese (zh)
Other versions
CN109646947B (en
Inventor
尚乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201811478439.XA priority Critical patent/CN109646947B/en
Publication of CN109646947A publication Critical patent/CN109646947A/en
Application granted granted Critical
Publication of CN109646947B publication Critical patent/CN109646947B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/45Controlling the progress of the video game
    • A63F13/49Saving the game status; Pausing or ending the game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/90Constructional details or arrangements of video game devices not provided for in groups A63F13/20 or A63F13/25, e.g. housing, wiring, connections or cabinets
    • A63F13/95Storage media specially adapted for storing game information, e.g. video game cartridges

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the present invention provides deposit method, apparatus, equipment and the storage medium of a kind of game data.The deposit method of the game data passes through after game starting operation, whether the data for monitoring preset kind in the game in real time change, if the first data in the game there are preset kind change, the first data write-in database after variation is deposited.The real-time storage for realizing game data reduces the expense of bandwidth and the expense of central processing unit.

Description

Deposit method, apparatus, equipment and the storage medium of game data
Technical field
The present invention relates to deposit method, apparatus, equipment and the storages of electronic game field more particularly to a kind of game data Medium.
Background technique
It needs player's data in memory headroom when game running carrying out persistent storage in development of games, purpose exists It can restore role of the player in game according to perdurable data after player logs in again or server restarts to believe Breath, the process of this persistent storage are also named deposit, either end trip, page trip or hand trip, and deposit system is all game services A very important system in device exploitation.
Currently, common deposit scheme includes timing deposit and increment deposit two schemes, timing deposit is much to produce Product are in a kind of mechanism used.In concrete implementation, the data of game player usually go to operate in memory, when one section Between, usually 10-20 minutes, the data of game player can be done and once write database deposit operation, store data in data In library.Increment deposit is the scheme improved on the basis of timing is deposited, and whether player repairs in each second audit memory The dirty data corrected one's mistakes stores in the database if there is then writing the dirty data modified.
However, the periodically deposit period is longer, once game is exited extremely or server failure, what the deposit period was less than Data will lose, and need to need to mark the data as dirty number manually when application-level modifications deposit data during increment deposit According to, it is also necessary to it is per second to be polled inquiry dirty data, bring the expense of additional central processing unit.
Summary of the invention
The present invention provides deposit method, apparatus, equipment and the storage medium of a kind of game data, for solving the prior art The problem of middle loss of data or increase central processing unit expense.
First aspect present invention provides a kind of deposit method of game data, after game starting operation, monitors institute in real time Whether the data for stating preset kind in game change;
If the first data in the game there are preset kind change, number is written into the first data after variation It deposits according to library.
Specifically, the preset kind includes multiple data types.
In a kind of concrete implementation mode, the first data after the variation include:
The data attribute name of first data, the value of the first data after the variation, the first number after the variation According to parent object, the corresponding owner of first data.
It is described after game starting operation in a kind of concrete implementation mode, it monitors in real time and presets class in the game Before whether the data of type change, the method also includes:
Receive deposit data type setting instruction;
It is arranged according to the deposit data type and is instructed, the data for needing to be deposited in real time in the game is set Type.
In a kind of concrete implementation mode, first data write-in database by after variation is deposited, Include:
Deposit instruction is sent to the client of the game, so that the client of the game will according to deposit instruction It deposits in the first data write-in database after the variation;It include after one or more changes in first data Data.
Second aspect of the present invention provides a kind of deposit device of game data, comprising:
Monitoring module, for after game starting operation, whether the data for monitoring preset kind in the game in real time to be sent out Changing;
Processing module, if the first data in the game there are preset kind change, after variation The first data write-in database is deposited.
Specifically, the preset kind includes multiple data types.
Optionally, the first data after the variation include:
The data attribute name of first data, the value of the first data after the variation, the first number after the variation According to parent object, the corresponding owner of first data.
In a kind of concrete implementation mode, described device further include:
Receiving module, for receiving deposit data type setting instruction;
The processing module is also used to be arranged according to the deposit data type and instruct, and is arranged and needs to carry out in the game The data type deposited in real time.
In a kind of concrete implementation mode, the processing module is specifically used for:
Deposit instruction is sent to the client of the game, so that the client of the game will according to deposit instruction It deposits in the first data write-in database;It include the data after one or more variation in first data.
Third aspect present invention provides a kind of electronic equipment, comprising:
Processor and memory;
Memory is for storing program and data, and the processor calls the program of memory storage, to execute first party The deposit method of the described in any item game datas in face.
Third aspect present invention provides a kind of computer readable storage medium, and the computer readable storage medium includes journey Sequence, described program is when being executed by processor for executing the deposit method of the described in any item game datas of first aspect.
Deposit method, apparatus, equipment and the storage medium of a kind of game data provided in an embodiment of the present invention, are opened in game After dynamic operation, whether the data for monitoring preset kind in the game in real time change, if there is default class in the game First data of type change, then the first data write-in database after variation are deposited.Realize game data Real-time storage reduces the expense of bandwidth and the expense of central processing unit.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of the deposit embodiment of the method one for game data that one embodiment of the invention provides;
Fig. 2 is a kind of flow diagram of the deposit embodiment of the method two for game data that one embodiment of the invention provides;
Fig. 3 is a kind of structural schematic diagram of the deposit Installation practice one for game data that one embodiment of the invention provides;
Fig. 4 is a kind of structural schematic diagram of the deposit Installation practice two for game data that one embodiment of the invention provides;
Fig. 5 is the structural schematic diagram for a kind of electronic equipment embodiment one that one embodiment of the invention provides.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
In the prior art, timing deposit is by all data storages, since data volume is bigger, so interval time is opposite It is longer, in deposit interval, in data in EMS memory and database data there are consistency problem, once process exception exit or Server failure, also not synchronous data can be lost, and will lead to player's data of depositing is not newest and generates back shelves or object Product duplication returns shelves degree and depends on deposit time interval, this is a very serious problem for game operation.And increment is deposited For disk because only depositing dirty data, data volume is relatively small, so the frequency of deposit is higher, usually once per second, the program compare Near real-time deposit can reduce back shelves loss to a certain extent, but need to count manually when application-level modifications deposit data According to dirty data is labeled as, when modification deposit data frequency is very low, the poll inquiry dirty data of once per second can bring additional CPU overhead, when online number of players is huge, this expense be can't be ignored.
For the problems of the prior art, present solution provides a kind of deposit methods of game data, by monitoring game The variation of data carries out real-time update to game data, and by closing batch deposit, is maintaining lower central processing unit expense In the case of realize the real-time storage of game data.
For ease of understanding, following technical term is explained first:
Python: a kind of explanation type, object-oriented, dynamic data type high-level programming language.
Dirty data: modifying in memory, but without data of the update into database.
Fig. 1 is a kind of flow diagram of the deposit embodiment of the method one for game data that one embodiment of the invention provides. The executing subject of this method can be Games Software/client background server, and but not limited to this.
As shown in Figure 1, this method comprises:
S101: after game starting operation, whether the data for monitoring preset kind in game in real time change.
Wherein, data type includes variable data type (mutable data) and immutable data type (immutable Data).
Variable data type includes: list (list), dictionary (dict), set (set) etc..
Immutable data type includes: integer (int), character string type (string), tuple (tuple) etc..
Preset kind is the preset data type for needing to monitor it in real time in this programme, and usually above-mentioned can Become data type, may include one such or a variety of.
In this step, it should be appreciated that after game starting operation, i.e., the variable data type in preset kind is carried out real When monitoring, including to variable data type attribute and content monitor in real time, so as to be deposited when data change Disk operation.
S102: if the first data in the game there are preset kind change, by the first data after variation Write-in database is deposited.
First data can be the data of one of preset kind variable data type, can also be more in preset kind The data of a variable data type.First data include: the data attribute name of the first data, the first data after variation Value, the parent object of the first data after variation, the corresponding owner of the first data.
Wherein, if the value of the first data after the data attribute name of the first data and variation changes, show first Data change;When changed first data are embedded data, then the parent object of the first data after recording variation Owner corresponding with the first data.
During game, if the first data of preset kind change, the first data after variation are written Database is deposited.Specifically, if the attribute-name or value of the first data change, can by call call back function into Row deposit in real time;If the first data are embedded data, the parent object of the first data after recording variation, by calling parent object Call back function deposited in real time.
The first data write-in database after variation is deposited, is deposited specifically, being sent to the client of the game The client of instruction, the game will be deposited according to the deposit instruction received in the first data write-in database after variation Disk, first data may include one or more data, it can after same deposit instruction one variation of storage Data or multiple variations after data.Optionally, can by remote procedure call (Remote Procedure Call, RPC deposit process), which is sent, by deposit instruction writes database deposit.
In a kind of concrete implementation mode, often there is mass data to change simultaneously in a frame in game progress, Correspondingly, needing to deposit to mass data.And it deposits need to carry out remote procedure call every time, and database is grasped Make, to reduce remote procedure call number and to the number of operations of database, this programme provides a kind of close and criticizes deposit scheme, will be same Multiple corresponding a plurality of deposit instructions of data changed in one frame close to criticize to be instructed at a deposit, and deposit instruction is sent To deposit process, in turn, it need to only carry out a remote procedure call and depositing for a plurality of dirty data can be completed in primary deposit operation Disk effectively reduces the expense of central processing unit.
A kind of deposit method of game data provided in this embodiment monitors the trip in real time after game starting operation Whether the data of preset kind change in play, if the first data in the game there are preset kind change, The first data write-in database after variation is deposited.The real-time storage for realizing game data reduces opening for bandwidth The expense of pin and central processing unit.
Fig. 2 is a kind of flow diagram of the deposit embodiment of the method two for game data that one embodiment of the invention provides. On the basis of embodiment shown in Fig. 1, before step S101, as shown in Fig. 2, this method further include:
S103: deposit data type setting instruction is received.
S104: according to deposit data type setting instruction, the data type for needing to be deposited in real time in game is set.
In game running, the attribute variable for needing to deposit in real time, i.e., the data monitored to needs are bound to the class of player Type is monitored and deposits, and the operation that other are obtained, use and modified with deposit attribute does not execute, it is therefore desirable to right The data type of deposit is configured, and can be configured according to the data type for operating selection of designer, can also basis The deposit data type setting instruction received is arranged which data type needs is deposited in real time.
On the basis of the above embodiments, below by taking python computer language as an example, pass through a kind of concrete implementation side The deposit method of the game data of this programme is described in detail in formula.
The present invention provides a kind of object properties binding scheme, and the program is realized based on the descriptor of python, python's Descriptor is the object properties of a binding behavior, and in descriptor agreement, we can pass through the access method of rewriting attribute Realize the monitoring to deposit attribute.These methods include _ get_, _ set_, _ getitem_, _ setitem_, _ delitem_, _ Getattr_ etc..
The data type of python is pressed two class of variable data type and immutable data type first.
Secondly it defines Monitor attribute and monitors class, and by list, the method column of data can be changed in dict, set Out.
In _ init_ function some initialization, including actual value, Monitor attributes object can be done in owner to attribute Call back function (carrying out deposit operation) when attribute-name, value on owner are modified, if it is embedded data (list, dict Value), then record the owner of father Monitor object, Monitor attributes object.
When Monitor object owner owner obtains attribute by owner.attr_name mode, can call Monitor class _ get_ function, native data is first obtained in owner._dict_, if it is immutable data, is then directly returned It returns, otherwise creates a Monitor attribute monitored object and return.
When Monitor object owner owner is set a property by owner.attr_name=xxx mode, can call Monitor class _ set_ function, owner._dict_ is first set, then the call back function of attribute modification is called to be deposited in real time Disk
When Monitor object owner owner obtains dict content by owner.attr_name [key] mode, meeting Calling Monitor class _ _ getitem__ function, native data is first obtained, is then directly returned if it is immutable data, otherwise When the purpose of generating new Monitor object to return, and set membership is arranged, set membership is arranged is that sub- Monitor attribute changes Owner can be notified by father Monitor from level to level.
When Monitor object owner owner by owner.attr_name [key]=xxx or passes through del When owner.attr_name [key] mode is modified and deletes data, can call respectively Monitor _ setitem_ and _ Delitem_ function can call the call back function of attribute modification to be deposited in real time after modification.
For the Monitor object of variable data type (list, dict, set), Monitor class heavy duty _ getattr_ Method can modify the function call of data content, after calling all can notification callback function deposit.
It is then relatively simple for the call back function realization of data modification, if there is father Monitor then calls father Monitor Readjustment, otherwise call directly call back function deposit.
Call back function _ value_changed_cb specific implementation is exactly to obtain self._owner (player) memory headroom In the entitled self._attr_name attribute of variable value, then by rpc send instructions to deposit process write database deposit.
There is this set attribute to monitor class, we can monitor the modification of deposit attribute, and modified dirty data is real Shi Cunpan, it is contemplated that often modify many deposit data, such as following operation simultaneously in a frame in game logic:
Owner.save_attr1=val1
Owner.save_attr2=val2
Owner.save_attr100=val100
100 attributes are modified simultaneously, if one similar { " save_attr1 ": val1 } is sent out in each modification Deposit instruction, not only increase RPC call number, also increase the number of operations to database, based on this consideration, we adopt Conjunction batch deposit scheme has been taken, by multiple deposit attribute modifications in same frame, has closed and criticizes at one { " save_attr1 ": val1, " Save_attr2 ": val2... " save_attr100 ": val100 } deposit instruction be sent to deposit process, it is only necessary to one The deposit of a plurality of dirty data can be completed in RPC and primary deposit operation, effectively reduces expense.
For existing game, it is only necessary to which the class (assuming that the entitled PlayerClass of class) in program operation to player is adjusted The attribute variable for needing to deposit in real time is bound with PlayerClass.bind_realtime_save_attr (), remaining is obtained It takes, use, the code for modifying deposit attribute, is not required to do any change, the deposit side for being quickly incorporated into the game data can be realized Method.
The deposit method for verifying the game data with real case in game server, for immutable data (int Type citing) modify and check that in memory data procedures are as follows:
It is 100 that variable gold attribute is arranged in > > > player.gold=100 # memory
>>>player.gold
It is 100 that gold value is obtained in 100 # memories
Data are as follows in correspondence database after modification:
{“_id”:objectId(“5bdaae9cffd52a1164f6d071”),“gold”:100
Gold field becomes 100 at once in # database
For modifying and checking that data procedures are as follows in mutalbe data (citing of dict type) memory:
{ " first ": it is { " first ": 1001 } that 1001 } skill attribute is arranged in # to > > > self.skill=
>>>self.skill
Monitorobj:{"first:1001}
> > > self.skill [" second "]=1002 # add " second " newer field to skill
>>>self.skill
Monitorobj:{"second":1002,'first':1001)}
" first " field of > > > del self.skill [" first "] # deletion skill
>>>self.skill
Monitorobj:{'second':1002}
Data variation is as follows in correspondence database after modification:
Mongos > db.entities.find (' uid':47198, ' skil1':1)
{ " _ id ": objectId (" 5bdaae9cffd52a1164f6d071 "), " skill ": { " first ": 1001 } }
Database updates as in memory at once after # setting skill
Mongos > db.entities.find (' uid':47198, ' skil1':1)
" _ id ": objectId (" 5bdaae9cffd52a1164f6d071 "), " skill ": " second ": 1002, " First ": after 1001 } } # increases second, database updates at once
Mongos > db.entities.find (' uid':47198, ' skil1':1)
{ " _ id ": objectId (" 5bdaae9cffd52a1164f6d071 "), " skill ": { " second ": 1002 } }
After # deletes first, database and internal storage data synchronized update
From verification result, it can be seen that, actual effect is consistent with expection, and database energy real-time update is deposited number into memory According to modification.
Fig. 3 is a kind of structural schematic diagram of the deposit Installation practice one for game data that one embodiment of the invention provides. As shown in figure 3, a kind of deposit device 10 of game data provided in this embodiment includes:
Monitoring module 101: for game starting operation after, monitor in real time preset kind in the game data whether It changes;
Processing module 102: if the first data in the game there are preset kind change, after changing First data write-in database deposit.
A kind of deposit device of game data provided in this embodiment, including monitoring module and processing module, monitoring module For after game starting operation, whether the data for monitoring preset kind in the game in real time to change, and processing module is used If the first data in the game there are preset kind change, data are written into first data after variation It deposits in library.The real-time storage for realizing game data reduces the expense of bandwidth and the expense of central processing unit.
On the basis of the above embodiments, the deposit device 10 of the game data further includes following several implementations.
In a kind of concrete implementation mode, the preset kind includes multiple data types.
In a kind of concrete implementation mode, the first data after the variation include:
The data attribute name of first data, the value of the first data after the variation, the first number after the variation According to parent object, the corresponding owner of first data.
Fig. 4 is a kind of structural schematic diagram of the deposit Installation practice two for game data that one embodiment of the invention provides. As shown in figure 4, the deposit device 10 of the game data further include:
Receiving module 103, for receiving deposit data type setting instruction;
The processing module 102 is also used to be arranged according to the deposit data type and instruct, and is arranged in the game and needs The data type deposited in real time.
In a kind of concrete implementation mode, processing module 102 is specifically used for: the client of Xiang Suoshu game sends deposit Instruction is deposited so that the client of the game instructs first data to be written in database according to the deposit; It include the data after one or more variation in first data.
Electronic equipment provided in this embodiment, can execute the technical solution of above method embodiment, realization principle and Technical effect is similar, and details are not described herein again for the present embodiment.
Fig. 5 is the structural schematic diagram for a kind of electronic equipment embodiment one that one embodiment of the invention provides, as shown in figure 5, Electronic equipment 20 provided in this embodiment may include: memory 201, processor 202;It optionally can also include bus 203. Wherein, bus 203 is for realizing the connection between each element.
The memory 201 stores computer executed instructions;
At least one described processor 202 executes the computer executed instructions that the memory 201 stores, so that the place Reason device executes the deposit method for the game data that any one of aforementioned embodiment provides.
Wherein, be directly or indirectly electrically connected between memory 201 and processor 202, with realize data transmission or Interaction.It is electrically connected for example, these elements can be realized between each other by one or more of communication bus or signal wire, such as It can be connected by bus 203.The computer executed instructions for realizing data access control method, packet are stored in memory 201 At least one software function module that can be stored in the form of software or firmware in memory 201 is included, processor 202 passes through fortune The software program and module that row is stored in memory 201, thereby executing various function application and data processing.
Memory 201 may be, but not limited to, random access memory (Random Access Memory, referred to as: RAM), read-only memory (Read Only Memory, referred to as: ROM), programmable read only memory (Programmable Read-Only Memory, referred to as: PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, referred to as: EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read- Only Memory, referred to as: EEPROM) etc..Wherein, memory 201 is receiving execution for storing program, processor 202 After instruction, program is executed.Further, the software program in above-mentioned memory 201 and module may also include operating system, May include the various component softwares for management system task (such as memory management, storage equipment control, power management etc.) with/ Or driving, and can be in communication with each other with various hardware or component software, to provide the running environment of other software component.
Processor 202 can be a kind of IC chip, the processing capacity with signal.Above-mentioned processor 202 can To be general processor, including central processing unit (Central Processing Unit, referred to as: CPU), network processing unit (Network Processor, referred to as: NP) etc..It may be implemented or execute disclosed each method, the step in the embodiment of the present invention Rapid and logic diagram.General processor can be microprocessor or the processor is also possible to any conventional processor etc..
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored thereon with computer executed instructions, meter Calculation machine executes instruction the processing method that the access instruction that any of the above-described embodiment of the method provides may be implemented when being executed by processor.
Computer readable storage medium in the present embodiment can be any usable medium that computer can access, or It is that can be magnetic comprising data storage devices, usable mediums such as one or more usable mediums integrated server, data centers Property medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as SSD) etc..
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (12)

1. a kind of deposit method of game data, which is characterized in that
After game starting operation, whether the data for monitoring preset kind in the game in real time change;
If the first data in the game there are preset kind change, database is written into the first data after variation It deposits.
2. the method according to claim 1, wherein the preset kind includes multiple data types.
3. method according to claim 1 or 2, which is characterized in that the first data after the variation include:
The data attribute name of first data, the value of the first data after the variation, the first data after the variation Parent object, the corresponding owner of first data.
4. method according to claim 1 or 2, which is characterized in that it is described after game starting operation, described in real time monitoring Before whether the data of preset kind change in game, the method also includes:
Receive deposit data type setting instruction;
It is arranged according to the deposit data type and is instructed, the data class for needing to be deposited in real time in the game is set Type.
5. method according to claim 1 or 2, which is characterized in that number is written in first data by after variation It deposits according to library, comprising:
Deposit instruction is sent to the client of the game, so that the client of the game will be described according to deposit instruction It deposits in the first data write-in database after variation;It include the number after one or more variation in first data According to.
6. a kind of deposit device of game data characterized by comprising
Monitoring module, for after game starting operation, whether the data for monitoring preset kind in the game in real time to become Change;
Processing module, if the first data in the game there are preset kind change, described in after variation First data write-in database is deposited.
7. device according to claim 6, which is characterized in that the preset kind includes multiple data types.
8. device according to claim 6 or 7, which is characterized in that the first data after the variation include:
The data attribute name of first data, the value of the first data after the variation, the first data after the variation Parent object, the corresponding owner of first data.
9. device according to claim 6 or 7, which is characterized in that described device further include:
Receiving module, for receiving deposit data type setting instruction;
The processing module is also used to be arranged according to the deposit data type and instruct, and is arranged in the game and needs to carry out in real time The data type of deposit.
10. device according to claim 6 or 7, which is characterized in that the processing module is specifically used for:
Deposit instruction is sent to the client of the game, so that the client of the game will be described according to deposit instruction It deposits in first data write-in database;It include the data after one or more variation in first data.
11. a kind of electronic equipment characterized by comprising
Processor and memory;
For memory for storing program and data, the processor calls the program of memory storage, with perform claim require 1 to The deposit method of 5 described in any item game datas.
12. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium includes program, described Program requires the deposit method of 1 to 5 described in any item game datas when being executed by processor for perform claim.
CN201811478439.XA 2018-12-05 2018-12-05 Game data storage method, device, equipment and storage medium Active CN109646947B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811478439.XA CN109646947B (en) 2018-12-05 2018-12-05 Game data storage method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811478439.XA CN109646947B (en) 2018-12-05 2018-12-05 Game data storage method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109646947A true CN109646947A (en) 2019-04-19
CN109646947B CN109646947B (en) 2022-08-05

Family

ID=66112443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811478439.XA Active CN109646947B (en) 2018-12-05 2018-12-05 Game data storage method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109646947B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110975279A (en) * 2019-11-27 2020-04-10 网易(杭州)网络有限公司 Game data processing method and device, game server and storage medium
CN111569413A (en) * 2020-05-14 2020-08-25 北京代码乾坤科技有限公司 Data synchronization method and device
CN112791415A (en) * 2021-01-26 2021-05-14 广州心源互动科技有限公司 Game data storage method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101426026A (en) * 2008-09-17 2009-05-06 北京六维世纪网络技术有限公司 Method and system for data synchronization between multiple servers
CN101446972A (en) * 2008-12-12 2009-06-03 中兴通讯股份有限公司 Method and system for dynamic data synchronization
JP2012061347A (en) * 2011-12-27 2012-03-29 Sankyo Co Ltd Game machine
CN103617171A (en) * 2013-10-25 2014-03-05 芜湖大学科技园发展有限公司 Massive historical data fast enquiry system
CN103780694A (en) * 2014-01-08 2014-05-07 深圳市掌玩网络技术有限公司 Wide area network real-time interactive game distributed networking method and device, and system
CN205524319U (en) * 2016-04-29 2016-08-31 中国铁道科学研究院 Braking state and warning playback device based on on --spot deposit data
CN108744504A (en) * 2018-05-17 2018-11-06 网易(杭州)网络有限公司 The processing method and processing device of game data, game server, games system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101426026A (en) * 2008-09-17 2009-05-06 北京六维世纪网络技术有限公司 Method and system for data synchronization between multiple servers
CN101446972A (en) * 2008-12-12 2009-06-03 中兴通讯股份有限公司 Method and system for dynamic data synchronization
JP2012061347A (en) * 2011-12-27 2012-03-29 Sankyo Co Ltd Game machine
CN103617171A (en) * 2013-10-25 2014-03-05 芜湖大学科技园发展有限公司 Massive historical data fast enquiry system
CN103780694A (en) * 2014-01-08 2014-05-07 深圳市掌玩网络技术有限公司 Wide area network real-time interactive game distributed networking method and device, and system
CN205524319U (en) * 2016-04-29 2016-08-31 中国铁道科学研究院 Braking state and warning playback device based on on --spot deposit data
CN108744504A (en) * 2018-05-17 2018-11-06 网易(杭州)网络有限公司 The processing method and processing device of game data, game server, games system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110975279A (en) * 2019-11-27 2020-04-10 网易(杭州)网络有限公司 Game data processing method and device, game server and storage medium
CN110975279B (en) * 2019-11-27 2023-08-22 网易(杭州)网络有限公司 Game data processing method and device, game server and storage medium
CN111569413A (en) * 2020-05-14 2020-08-25 北京代码乾坤科技有限公司 Data synchronization method and device
CN111569413B (en) * 2020-05-14 2023-06-13 北京代码乾坤科技有限公司 Data synchronization method and device
CN112791415A (en) * 2021-01-26 2021-05-14 广州心源互动科技有限公司 Game data storage method and device

Also Published As

Publication number Publication date
CN109646947B (en) 2022-08-05

Similar Documents

Publication Publication Date Title
US10915526B2 (en) Historical data replay utilizing a computer system
US8732126B2 (en) Filtering workload for database replay
CN109646947A (en) Deposit method, apparatus, equipment and the storage medium of game data
US7890458B2 (en) Capturing database workload while preserving original transactional and concurrency characteristics for replay
US7984015B2 (en) Database workload capture and replay architecture
US7890457B2 (en) Transactionally consistent database workload replay
US7730042B2 (en) Method, system, and program for a policy based storage manager
US20080098003A1 (en) Database workload replay remapping infrastructure
US20030163608A1 (en) Instrumentation and workload recording for a system for performance testing of N-tiered computer systems using recording and playback of workloads
CN112840318A (en) Automated operation management for computer systems
CN103152391B (en) A kind of log-output method and device
EP1952241B1 (en) Database workload capture and replay architecture
US20220358106A1 (en) Proxy-based database scaling
CN108510287A (en) Judgment method, electronic device and the computer readable storage medium that client pays a return visit
US8024171B1 (en) Managed resource simulator for storage area networks
CN111581077A (en) Intelligent contract testing method and device
CN109583901A (en) The unified account management method and device of multiservice system
US11803533B2 (en) Updating multiple data records in a database
CN105760283B (en) A kind of log-output method and device
CN114816806A (en) Container availability verification method and device, computer equipment and storage medium
WO2020215211A1 (en) Site session termination method and apparatus, terminal device and medium
Smirnov et al. A portable implementation framework for intrusion-resilient database management systems
CN105653621A (en) Uninterrupted business system, data export method thereof and streaming data service module
CN114049193B (en) Invoice authentication deduction method and system based on tax control cabinet
CN109584068A (en) A kind of distribution of funds formula liquidation method, apparatus and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant