CN110292775A - Obtain the method and device of variance data - Google Patents
Obtain the method and device of variance data Download PDFInfo
- Publication number
- CN110292775A CN110292775A CN201910585963.5A CN201910585963A CN110292775A CN 110292775 A CN110292775 A CN 110292775A CN 201910585963 A CN201910585963 A CN 201910585963A CN 110292775 A CN110292775 A CN 110292775A
- Authority
- CN
- China
- Prior art keywords
- mentioned
- version
- variance data
- data
- edition
- 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
Links
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/60—Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/60—Methods for processing data by generating or executing the game program
- A63F2300/6009—Methods for processing data by generating or executing the game program for importing or creating game content, e.g. authoring tools during game development, adapting content to different platforms, use of a scripting language to create content
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of method and devices for obtaining variance data.Wherein, this method comprises: obtaining the inquiry request from client, wherein for above-mentioned inquiry request for inquiring variance data of the target data file from first version to the second edition, the above-mentioned second edition is later than above-mentioned first version;Above-mentioned variance data is obtained from default storage region according to above-mentioned inquiry request;Above-mentioned variance data is back to above-mentioned client.The occupied computing resource of variance data that the table change that the present invention solves the prior art is checked between platform obtains multiple form documents is higher and obtains the lower technical problem of efficiency.
Description
Technical field
The present invention relates to field of computer technology, in particular to a kind of method and device for obtaining variance data.
Background technique
It is perfect with game system playing method in game item development process, increasingly it can change planning work by frequent increase
Planning table data in work, and planning table data modification all carries out regression test and will obviously bring huge workload every time.
Also, planning form document belongs to binary file, different from the text formatting of code file, version control tool SVN service
The included diff algorithm function of device cannot support checking for table change well.
The planning table change of the prior art checks that platform can not effectively realize the table changed content for obtaining planning table data,
And it is primarily present following technical problem: needs to store planning table data in 1. existing schemes, if planning table text
Part is more, data volume is big, modification is submitted frequently, then can occupy more memory source, have higher requirement to server performance;2.
Plan data volume in table it is larger when, Diff efficiency of algorithm reduces, when no matter web interface or SDK window will wait longer
Between can just get table changed content, user experience is poor;3. different user, which is checked, needs to undergo multiple waiting process;4. same
Different plannings are when designing different playing methods in project team, may modify same table, the corresponding tester of different playing methods
When checking specified two old versions (across multi version) change that the project staff oneself to be followed up submits, in the change of this multi version
The modification of multiple plannings is contained, cannot achieve independent differentiation.
Table change for the above-mentioned prior art is checked occupied by the variance data between platform obtains multiple form documents
Computing resource it is higher and obtain the lower problem of efficiency, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of method and devices for obtaining variance data, at least to solve the table of the prior art
Lattice change checks that the occupied computing resource of variance data between platform obtains multiple form documents is higher and it is lower to obtain efficiency
The technical issues of.
According to an aspect of an embodiment of the present invention, a kind of method for obtaining variance data is provided, comprising: acquisition comes from
In the inquiry request of client, wherein above-mentioned inquiry request is for inquiring target data file from first version to the second edition
Variance data, the above-mentioned second edition is later than above-mentioned first version;According to above-mentioned inquiry request from the acquisition of default storage region
State variance data;Above-mentioned variance data is back to above-mentioned client.
In an alternative embodiment, above-mentioned difference is being obtained from above-mentioned default storage region according to above-mentioned inquiry request
Before data, the above method further include: submit and record from version control tool SVN server pull SVN;It is mentioned according to above-mentioned SVN
Record is handed over to obtain above-mentioned first version and the above-mentioned second edition from above-mentioned SVN server;To above-mentioned first version and above-mentioned
Two versions carry out difference calculating, obtain above-mentioned variance data;Above-mentioned variance data is stored to above-mentioned default storage region.
In an alternative embodiment, above-mentioned variance data includes: first part and second part;Above-mentioned first part
It include: change label, the corresponding filename of each data unit, every number of each data unit in above-mentioned target data file
According to unit before changing after version number, wherein above-mentioned change label is for the change operation type pair according to each data unit
Above-mentioned target data file is classified;Above-mentioned second part includes: the corresponding description information of each data unit.
In an alternative embodiment, above-mentioned variance data is stored using dictionary structure to above-mentioned default storage region,
Wherein, above-mentioned dictionary structure include: identified by change of location and before changing after the key-value pair that constitutes of numerical value.
In an alternative embodiment, above-mentioned first version is the previous version adjacent with the above-mentioned second edition, will be upper
Stating variance data and being back to above-mentioned client includes: that above-mentioned variance data is directly back to above-mentioned client.
In an alternative embodiment, there are multiple versions between above-mentioned first version and the above-mentioned second edition, will be upper
Stating variance data and being back to above-mentioned client includes: by each adjacent two version between above-mentioned first version and the above-mentioned second edition
Between difference subdata carry out Data Fusion, obtain above-mentioned variance data;Above-mentioned variance data is back to above-mentioned visitor
Family end.
In an alternative embodiment, by each adjacent two version between above-mentioned first version and the above-mentioned second edition it
Between difference subdata carry out Data Fusion, obtaining above-mentioned variance data includes: will be from above-mentioned first version to above-mentioned the
The all versions that two versions are included carry out ascending sort, obtain ranking results;Every phase is sequentially overlapped according to above-mentioned ranking results
Difference subdata between adjacent two versions, obtains above-mentioned variance data.
According to another aspect of an embodiment of the present invention, a kind of device for obtaining variance data is additionally provided, comprising: first obtains
Modulus block, for obtaining the inquiry request from client, wherein above-mentioned inquiry request for inquire target data file from
For first version to the variance data of the second edition, the above-mentioned second edition is later than above-mentioned first version;Second obtains module, is used for root
Above-mentioned variance data is obtained from default storage region according to above-mentioned inquiry request;Return module, for returning to above-mentioned variance data
To above-mentioned client.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, above-mentioned storage medium includes storage
Program, wherein above procedure operation when control above-mentioned storage medium where equipment execute any one it is above-mentioned acquisition it is poor
The method of heteromerism evidence.
According to another aspect of an embodiment of the present invention, a kind of processor is additionally provided, above-mentioned processor is used to run program,
Wherein, the method for executing the above-mentioned acquisition variance data of any one when above procedure is run.
In embodiments of the present invention, by obtaining the inquiry request from client, wherein above-mentioned inquiry request is used for
Variance data of the target data file from first version to the second edition is inquired, the above-mentioned second edition is later than above-mentioned first version;
Above-mentioned variance data is obtained from default storage region according to above-mentioned inquiry request;Above-mentioned variance data is back to above-mentioned client
End has reached the reduction storage occupied computing resource of form document, and has reduced the purpose for obtaining the time of variance data, from
And the technical effect for improving the efficiency that client obtains variance data is realized, and then the table change for solving the prior art is looked into
The occupied computing resource of variance data seen between platform obtains multiple form documents is higher and the acquisition lower technology of efficiency is asked
Topic.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of method for obtaining variance data according to an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of a scenario of optional method for obtaining variance data according to an embodiment of the present invention;And
Fig. 3 is a kind of structural schematic diagram of device for obtaining variance data according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Firstly, understand the embodiment of the present invention for convenience, below will to part term involved in the present invention or noun into
Row illustrates:
JSON (JavaScript Object Notation, JS object numbered musical notation): the light weight based on JavaScript language
The data interchange format of grade.
Version control tool (Subversion, SVN): it is the version control system of an open source code, compares
RCS, CVS, SVN use branch management system.
Software tool development kit (Software Development Kit, SDK): generally referring to some software engineers is
The set of developing instrument when specific software package, software frame, hardware platform, operating system etc. establish application software.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of method for obtaining variance data is provided, it should be noted that
The step of process of attached drawing illustrates can execute in a computer system such as a set of computer executable instructions, also,
It, in some cases, can be to be different from shown in sequence execution herein although logical order is shown in flow charts
The step of out or describing.
Fig. 1 is a kind of flow chart of method for obtaining variance data according to an embodiment of the present invention, as shown in Figure 1, the party
Method includes the following steps:
Step S102 obtains the inquiry request from client, wherein above-mentioned inquiry request is for inquiring target data
Variance data of the file from first version to the second edition, the above-mentioned second edition are later than above-mentioned first version;
Step S104 obtains above-mentioned variance data from default storage region according to above-mentioned inquiry request;
Above-mentioned variance data is back to above-mentioned client by step S106.
Optionally, above-mentioned inquiry request is for inquiring difference number of the target data file from first version to the second edition
According to above-mentioned first version refers to the target data file of first version (for example, form document: planning form document);Above-mentioned
Two versions refer to the target data file of the second edition.
Wherein, the above-mentioned second edition is later than above-mentioned first version, and first version can be, but not limited to the second edition as phase
Adjacent version;For example, above-mentioned first version can be the previous version of latest edition if the above-mentioned second edition is latest edition;
There may also be multiple versions between above-mentioned first version and the above-mentioned second edition, for example, if the above-mentioned second edition is latest edition
This, then above-mentioned first version can be any version before latest edition.
Optionally, above-mentioned default storage region can be preset database, or pre-set storage in the database
Region.
In an alternative embodiment, above-mentioned variance data includes: first part and second part;Above-mentioned first part
It include: change label, the corresponding filename of each data unit, every number of each data unit in above-mentioned target data file
According to unit before changing after version number, wherein above-mentioned change label is for the change operation type pair according to each data unit
Above-mentioned target data file is classified;Above-mentioned second part includes: the corresponding description information of each data unit.
It should be noted that it is provided by the present application it is a kind of obtain variance data embodiment of the method in, to avoid storing
A large amount of list data, and compute repeatedly the table changed content (i.e. variance data) between different tables, it is contemplated that table
Data volume of the data volume for the variance data that file changes every time much smaller than the entire form document of two versions, the application implementation
Table change checks that platform does not store form document in example, but directly counts difference lookup algorithm Diff algorithm every time
It calculates resulting variance data to carry out format analysis processing and store, when different user, which obtains variance data by client, to be checked
Variance data is obtained directly from storing data library to be rendered in front end, and the efficiency that client obtains variance data is improved.
By the above embodiments of the present application, on the basis of reducing period of reservation of number, it is a large amount of that storage can be effectively reduced
Form document data, avoid computing repeatedly table changed content and the repetition of different user wait;Also, such as Fig. 2
Shown, multiple target data files (such as: form document) can be committed in SVN server, user by different project staff
When checking the one or more form documents modified in turn by different project staff, can be mentioned by screening target project staff
The form document for the multiple versions handed over disposably obtains multiple (being greater than two) versions, the variance data of multiple files.
In embodiments of the present invention, by obtaining the inquiry request from client, wherein above-mentioned inquiry request is used for
Variance data of the target data file from first version to the second edition is inquired, the above-mentioned second edition is later than above-mentioned first version;
Above-mentioned variance data is obtained from default storage region according to above-mentioned inquiry request;Above-mentioned variance data is back to above-mentioned client
End has reached the reduction storage occupied computing resource of form document, and has reduced the purpose for obtaining the time of variance data, from
And the technical effect for improving the efficiency that client obtains variance data is realized, and then the table change for solving the prior art is looked into
The occupied computing resource of variance data seen between platform obtains multiple form documents is higher and the acquisition lower technology of efficiency is asked
Topic.
In an alternative embodiment, above-mentioned difference is being obtained from above-mentioned default storage region according to above-mentioned inquiry request
Before data, the above method further include:
Step S202 is submitted from version control tool SVN server pull SVN and is recorded;
Step S204 submits record to obtain from above-mentioned SVN server above-mentioned first version and above-mentioned the according to above-mentioned SVN
Two versions;
Step S206 carries out difference calculating to above-mentioned first version and the above-mentioned second edition, obtains above-mentioned variance data;
Step S208 stores above-mentioned variance data to above-mentioned default storage region.
It should be noted that since the frequency of SVN submission record in project development is higher, the especially sport of multiple person cooperational
Mesh, thus submit the timing of record to pull mission frequency from version control tool SVN server pull SVN, it is also desirable to accordingly set
Set the higher demand for being just able to satisfy project team and obtaining variance data in real time.
Also, a series of more time-consuming tasks are needed to be implemented due to periodically pulling task: pulling SVN and submit record, obtain
It takes target data file and calculates variance data of the target data file from first version to the second edition, if setting pulls
SVN submits the timing of record to pull that mission frequency is excessively high, then will lead to version control tool SVN server end calculating pressure and
IO pressure is all very big, and especially the time of SVN server response is longer, Ge Biebiao there may be waiting for acquisition target data file
Lattice file data volume leads to problems such as greatly the calculating of Diff algorithm take a long time.
Therefore, factors above is comprehensively considered, in a kind of optional embodiment of the application, as shown in Fig. 2, taking in SVN
The setting timing of business device end pulls task to pull SVN and submit record, due to being stored with above-mentioned target data file in SVN server
First version and the second edition, record can be submitted to obtain from SVN server according to above-mentioned SVN using Diff algorithm above-mentioned
First version and the above-mentioned second edition, and difference calculating is carried out to above-mentioned first version and the above-mentioned second edition, obtain above-mentioned difference
Heteromerism evidence, and above-mentioned variance data is stored into default storage region, and then can be in the inquiry request for receiving client
When, above-mentioned variance data is back to above-mentioned client.
In the embodiment of the present application, appointed by being realized in version control tool SVN server end based on celery distribution
The timing of business queue pulls task, and splits to task is periodically pulled, such as: every timing in five minutes is drawn from SVN server
Take SVN submit record and this periodically pull task start after two minutes timing acquisition target data files, calculate variance data
And variance data will be obtained and stored.
By the above embodiments of the present application, not only meet and pull the needs of SVN submits record in real time, can also be staggered timing
The opening time of task is pulled, so that active balance SVN server end is periodically pulling calculating pressure and IO pressure in task
Power.
In an alternative embodiment, above-mentioned variance data is stored using dictionary structure to above-mentioned default storage region,
Wherein, above-mentioned dictionary structure include: identified by change of location and before changing after the key-value pair that constitutes of numerical value.
Above-mentioned variance data is stored in the database for convenience, variance data can be handled and is stored as JSON format
Medium character string mediumtext field is stored above-mentioned variance data into database using dictionary structure, can be very convenient
Ground is mutually converted with dictionary format, and then is stored accordingly to variance data or calculation processing.
Since excel form document includes multiple sublists, Diff algorithm is successively read sublist data and calculates corresponding difference
Data, therefore, the variance data of entire form document can be treated as two parts: being identified by change of location and counted afterwards before changing
It is worth the key-value pair constituted.
Above-mentioned change of location mark may include: the change label of all sublists of form document, will own in form document
Sublist table name is referred to respectively in increased, modification, deleting, unchanged list, while it is corresponding to record this variance data
Changing file name, before changing after SVN version number;Above-mentioned numerical value rear before changing is tab sequential in identifying according to change of location
The detailed content of each sublist change, includes at least one of: changing file name, change sublist name, change all column of sublist
Name, and according to the affiliated ranks of variance data respectively by each column labeled as increase, modification, delete or it is unchanged, will change row data
It is recorded as dictionary format and is referred in corresponding increase list, modification list or delete list.
In an alternative embodiment, by identifying above-mentioned change of location with rear numerical value before changing according to fixed key assignments
To being stored in dictionary structure, the basis that this dictionary structure is merged as subsequent variance data.Further, since file
Certain submission may be compared with multiple and different old versions, can be generated with the comparison of each old version as described above same
The dictionary structure of sample format, and on this basis, the old version number that can also increase the secondary Diff algorithm comparison is used as key,
Above-mentioned dictionary content forms the new dictionary structure that can store multiple and different old version variance datas as value.
By taking above-mentioned form document is bonus data table as an example, the file size of the bonus data table is 5.22MB, will be entire
The storage of bonus data table occupies 2.82MB in the database, and the submission number of the bonus data table is 19 times in one week, if institute
There is form document all to be stored, needs to occupy the space 53.58MB, but the variance data for storing 19 submissions only needs to account for
With the space of 0.57MB, the 1% of the scheme memory space of existing all form documents of storage is only just corresponded to.
By the above embodiments of the present application, it not only may be implemented to reduce SVN server end or platform sheet checked in table change
Ground store list data resource technical effect, may also reach up be effectively reduced table change check platform to hardware store item
The purpose of the requirement of part and performance.
In an alternative embodiment, above-mentioned first version is the previous version adjacent with the above-mentioned second edition, will be upper
Stating variance data and being back to above-mentioned client includes: step S1061, and above-mentioned variance data is directly back to above-mentioned client.
It is the feelings of the previous version adjacent with the above-mentioned second edition in above-mentioned first version in above-mentioned optional embodiment
Under condition, other versions, the difference between first version and the second edition are not present between above-mentioned first version and the above-mentioned second edition
Variance data between first version and the second edition then directly can be back to client i.e. according to uniquely determining by heteromerism
It can.
In an alternative embodiment, there are multiple versions between above-mentioned first version and the above-mentioned second edition, will be upper
It states variance data and is back to above-mentioned client and include:
Step S1063, by difference between above-mentioned first version and the above-mentioned second edition between each adjacent two version
Data carry out Data Fusion, obtain above-mentioned variance data;
Above-mentioned variance data is back to above-mentioned client by step S1065.
It is that there are multiple versions between the above-mentioned second edition in above-mentioned first version in above-mentioned optional embodiment
In the case of, then between above-mentioned first version and the above-mentioned second edition there is also other one or more versions, first version and the
Variance data between two versions is not to uniquely determine, then can will be every between above-mentioned first version and the above-mentioned second edition
Difference subdata between two neighboring version carries out Data Fusion, and the variance data that fusion treatment is obtained is back to
Client.
In a kind of optional embodiment of the application, can be, but not limited in the modification information of form document comprising each sublist
Changing category, detailed variance data the table name of sublist can be rendered to different samples after obtaining above-mentioned modification information
Formula distinguishes;The embodiment of the present application can also show all column names of sublist, according to the change type progress of column in front end
The rendering of different patterns compares display according to the specific change numerical value of change row.
By taking above-mentioned form document is the biggish stage property tables of data of data volume as an example, user is the same as the acquisition difference number once submitted
According to request, submit request to front end to show variance data from user, needing period of reservation of number is 8.19s, but utilizes backstage
0.21s is only needed after task and database purchase variance data, the waiting of user can be greatly reduced by the embodiment of the present application
Time, and other users check that the same variance data only needs to wait 0.21s, and the waiting time shortens 97%.
By the above embodiments of the present application, when user obtains the variance data of the form document of multiple versions, SVN service
Device end can go forward side by side from the variance data between the form document for reading specified multiple form documents, multiple versions in database
Row Data Fusion renders data fusion result in front end, compares and carries out the multiple Diff algorithm of multiple files
The efficiency for obtaining variance data can be substantially improved by calculating.
In an alternative embodiment, by each adjacent two version between above-mentioned first version and the above-mentioned second edition it
Between difference subdata carry out Data Fusion, obtaining above-mentioned variance data includes:
The all versions for being included from above-mentioned first version to the above-mentioned second edition are carried out ascending sort by step S302,
Obtain ranking results;
Step S304 is sequentially overlapped the difference subdata between each adjacent two version according to above-mentioned ranking results, obtains
Above-mentioned variance data.
In the embodiment of the present application, the variance data that each SVN submits record to generate all is organized into corresponding dictionary lattice
Formula, when a SVN, which is submitted, in record includes the form document of multiple versions, it is only necessary to by above-mentioned first version and above-mentioned second
Difference subdata between version between each adjacent two version carries out Data Fusion, using form document name as key, with
The variance data dictionary of each corresponding form document forms new dictionary structure as value.
It, can be according to form document when client needs to obtain the variance data of multiple versions of same form document
Version number reads the variance data of the multiple versions of same file as key, and will be between above-mentioned first version and the above-mentioned second edition
Difference subdata between each adjacent two version carries out Data Fusion.Wherein, the logic of above-mentioned Data Fusion can
Think and all versions for being included from above-mentioned first version to the above-mentioned second edition be subjected to ascending sort, obtains ranking results,
It is sequentially overlapped the difference subdata between each adjacent two version according to above-mentioned ranking results, obtains above-mentioned variance data.
Specifically, being by the increase, modification, deletion, unchanged in the variance data dictionary of two identical data formats
Table sheet list merged, generate new table sheet categorical listings, and to increase in the table sheet of change,
Modification, the ranks value deleted carry out Data Fusion, delete afterwards for example, the same numerical value first increases, then from increase list
It deletes.Format due to variance data by design, when Data Fusion only need to handle list, compare again through
The efficiency that Diff algorithm calculates variance data is higher, and can really realize that cross-version change is checked, i.e., in multiple plotters
In the form document that member modifies in turn, the variance data between several specified versions is just looked at.
In an alternative embodiment, when the variance data between the multiple versions of user query, with stage property tables of data
For continuously submitting version three times, if needing to wait 9.43s again through the calculating of Diff algorithm, but by provided by the present application
Obtain variance data scheme, it is only necessary to 0.54s can obtain the variance data of multiple versions, can substantially shorten user etc.
To the time, and it provide the user convenient approach and check the function of skipping the variance data of indicated release modification, not only mention
Height obtains the efficiency and accuracy of variance data.
In an alternative embodiment, it when the variance data between the multiple versions of user query, is fought with form of general use
It struggles against for unit amount table, to the form of general use battle unit, numerical tabular is modified two project staff in turn if it exists,
When user wants to check changed content of the project staff W to table, manual approach needs to check the changed content of multiple versions,
It manually merges to obtain final variance data against the changed content of multiple portions again, whole process undergoes Diff three times
The process that algorithm is calculated and manually calculated, it is contemplated that time-consuming is more than 1min;Also, when modifying more than the changed content and repeatedly, people
Work control is easy to appear omission or mistake.
Different from the above-mentioned prior art, through the scheme provided by the embodiments of the present application for obtaining variance data, in 0.57s
The specified variance data accurately merged repeatedly submitted can be viewed, the efficiency for obtaining variance data can be substantially improved.
Embodiment 2
According to embodiments of the present invention, a kind of device implementation for implementing the method for above-mentioned acquisition variance data is additionally provided
Example, Fig. 3 is a kind of structural schematic diagram of device for obtaining variance data according to an embodiment of the present invention, as shown in figure 3, above-mentioned obtain
Take the device of variance data, comprising: first, which obtains module 30, second, obtains module 32 and return module 34, in which:
First obtains module 30, for obtaining the inquiry request from client, wherein above-mentioned inquiry request is for looking into
Variance data of the target data file from first version to the second edition is ask, the above-mentioned second edition is later than above-mentioned first version;The
Two obtain module 32, for obtaining above-mentioned variance data from default storage region according to above-mentioned inquiry request;Return module 34 is used
In above-mentioned variance data is back to above-mentioned client.
It should be noted that above-mentioned modules can be realized by software or hardware, for example, for the latter,
Can be accomplished by the following way: above-mentioned modules can be located in same processor;Alternatively, above-mentioned modules are with any
Combined mode is located in different processors.
Herein it should be noted that above-mentioned first acquisition module 30, second obtains module 32 and return module 34 corresponds to
Step S102 to step S106 in embodiment 1, above-mentioned module is identical as example and application scenarios that corresponding step is realized,
But it is not limited to the above embodiments 1 disclosure of that.It should be noted that above-mentioned module can be run as a part of of device
In terminal.
It should be noted that the optional or preferred embodiment of the present embodiment may refer to the associated description in embodiment 1,
Details are not described herein again.
The device of above-mentioned acquisition variance data can also include processor and memory, it is above-mentioned first obtain module 30,
Second, which obtains module 32 and return module 34 etc., stores in memory as program unit, is stored in by processor execution
Above procedure unit in reservoir realizes corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel, above-mentioned kernel can be set
One or more.Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM)
And/or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM), memory includes at least one
Storage chip.
According to the embodiment of the present application, a kind of storage medium embodiment is additionally provided.Optionally, in the present embodiment, above-mentioned
Storage medium includes the program of storage, wherein equipment where controlling above-mentioned storage medium in above procedure operation executes above-mentioned
Any one obtains the method for variance data.
Optionally, in the present embodiment, above-mentioned storage medium can be located in computer network in computer terminal group
In any one terminal, or in any one mobile terminal in mobile terminal group, above-mentioned storage medium packet
Include the program of storage.
Optionally, when program is run, equipment where control storage medium executes following functions: obtaining from client
Inquiry request, wherein above-mentioned inquiry request is for inquiring difference number of the target data file from first version to the second edition
According to the above-mentioned second edition is later than above-mentioned first version;Above-mentioned difference number is obtained from default storage region according to above-mentioned inquiry request
According to;Above-mentioned variance data is back to above-mentioned client.
Optionally, when program is run, equipment where control storage medium executes following functions: from version control tool SVN
Server pull SVN submits record;According to above-mentioned SVN submit record obtain from above-mentioned SVN server above-mentioned first version and
The above-mentioned second edition;Difference calculating is carried out to above-mentioned first version and the above-mentioned second edition, obtains above-mentioned variance data;It will be above-mentioned
Variance data is stored to above-mentioned default storage region.
Optionally, when program is run, equipment where control storage medium executes following functions: directly by above-mentioned difference number
According to being back to above-mentioned client.
Optionally, program run when control storage medium where equipment execute following functions: by above-mentioned first version with
Difference subdata between the above-mentioned second edition between each adjacent two version carries out Data Fusion, obtains above-mentioned difference number
According to;Above-mentioned variance data is back to above-mentioned client.
Optionally, when program is run, equipment where control storage medium executes following functions: will be from above-mentioned first version
The all versions for being included to the above-mentioned second edition carry out ascending sort, obtain ranking results;Successively according to above-mentioned ranking results
The difference subdata being superimposed between each adjacent two version, obtains above-mentioned variance data.
According to the embodiment of the present application, a kind of processor embodiment is additionally provided.Optionally, in the present embodiment, above-mentioned place
Reason device is for running program, wherein above procedure executes the method that any one of the above obtains variance data when running.
The embodiment of the present application provides a kind of equipment, equipment include processor, memory and storage on a memory and can
The program run on a processor, processor perform the steps of the inquiry request obtained from client when executing program,
Wherein, above-mentioned inquiry request is for inquiring variance data of the target data file from first version to the second edition, and above-mentioned second
Version is later than above-mentioned first version;Above-mentioned variance data is obtained from default storage region according to above-mentioned inquiry request;By above-mentioned difference
Heteromerism evidence is back to above-mentioned client.
Optionally, it when above-mentioned processor executes program, can also be submitted from version control tool SVN server pull SVN
Record;Record is submitted to obtain above-mentioned first version and the above-mentioned second edition from above-mentioned SVN server according to above-mentioned SVN;To upper
It states first version and the above-mentioned second edition carries out difference calculating, obtain above-mentioned variance data;Above-mentioned variance data is stored supreme
State default storage region.
Optionally, when above-mentioned processor executes program, above-mentioned variance data directly can also be back to above-mentioned client.
It optionally, can also will be every between above-mentioned first version and the above-mentioned second edition when above-mentioned processor executes program
Difference subdata between two neighboring version carries out Data Fusion, obtains above-mentioned variance data;By above-mentioned variance data
It is back to above-mentioned client.
Optionally, it when above-mentioned processor executes program, can also will be wrapped from above-mentioned first version to the above-mentioned second edition
The all versions contained carry out ascending sort, obtain ranking results;Each adjacent two version is sequentially overlapped according to above-mentioned ranking results
Between difference subdata, obtain above-mentioned variance data.
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just
The program of beginningization there are as below methods step: the inquiry request from client is obtained, wherein above-mentioned inquiry request is for inquiring
Variance data of the target data file from first version to the second edition, the above-mentioned second edition are later than above-mentioned first version;According to
Above-mentioned inquiry request obtains above-mentioned variance data from default storage region;Above-mentioned variance data is back to above-mentioned client.
It optionally, can also be from version control tool SVN server pull when above-mentioned computer program product executes program
SVN submits record;Record is submitted to obtain above-mentioned first version and the above-mentioned second edition from above-mentioned SVN server according to above-mentioned SVN
This;Difference calculating is carried out to above-mentioned first version and the above-mentioned second edition, obtains above-mentioned variance data;Above-mentioned variance data is deposited
It stores up to above-mentioned default storage region.
Optionally, when above-mentioned computer program product executes program, directly above-mentioned variance data can also be back to
State client.
It optionally, can also be by above-mentioned first version and the above-mentioned second edition when above-mentioned computer program product executes program
Difference subdata between this between each adjacent two version carries out Data Fusion, obtains above-mentioned variance data;It will be above-mentioned
Variance data is back to above-mentioned client.
It optionally, can also will be from above-mentioned first version to above-mentioned second when above-mentioned computer program product executes program
The all versions that version is included carry out ascending sort, obtain ranking results;It is sequentially overlapped according to above-mentioned ranking results per adjacent
Difference subdata between two versions, obtains above-mentioned variance data.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of method for obtaining variance data characterized by comprising
Obtain the inquiry request from client, wherein the inquiry request is for inquiring target data file from the first edition
Originally to the variance data of the second edition, the second edition is later than the first version;
The variance data is obtained from default storage region according to the inquiry request;
The variance data is back to the client.
2. the method according to claim 1, wherein according to the inquiry request from the default storage region
Before obtaining the variance data, the method also includes:
It submits and records from version control tool SVN server pull SVN;
Record is submitted to obtain the first version and the second edition from the SVN server according to the SVN;
Difference calculating is carried out to the first version and the second edition, obtains the variance data;
The variance data is stored to the default storage region.
3. according to the method described in claim 2, it is characterized in that, the variance data includes: first part and second part;
The first part includes: the change label of each data unit in the target data file, each data unit pair
The filename answered, each data unit before changing after version number, wherein the change label is for according to each data unit
Change operation type classify to the target data file;
The second part includes: the corresponding description information of each data unit.
4. according to the method in claim 2 or 3, which is characterized in that the variance data is stored using dictionary structure to institute
State default storage region, wherein the dictionary structure include: identified by change of location and before changing after the key assignments that constitutes of numerical value
It is right.
5. the method according to claim 1, wherein before the first version is adjacent with the second edition
One version, the variance data, which is back to the client, includes:
The variance data is directly back to the client.
6. the method according to claim 1, wherein existing between the first version and the second edition more
A version, the variance data, which is back to the client, includes:
Difference subdata between the first version and the second edition between each adjacent two version is carried out data to melt
Conjunction processing, obtains the variance data;
The variance data is back to the client.
7. according to the method described in claim 6, it is characterized in that, by phase every between the first version and the second edition
Difference subdata between adjacent two versions carries out Data Fusion, and obtaining the variance data includes:
The all versions for being included from the first version to the second edition are subjected to ascending sort, obtain ranking results;
It is sequentially overlapped the difference subdata between each adjacent two version according to the ranking results, obtains the variance data.
8. a kind of device for obtaining variance data characterized by comprising
First obtains module, for obtaining the inquiry request from client, wherein the inquiry request is for inquiring target
Variance data of the data file from first version to the second edition, the second edition are later than the first version;
Second obtains module, for obtaining the variance data from default storage region according to the inquiry request;
Return module, for the variance data to be back to the client.
9. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program
When control the storage medium where equipment perform claim require any one of 1 to 7 described in acquisition variance data method.
10. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run
Benefit require any one of 1 to 7 described in acquisition variance data method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910585963.5A CN110292775B (en) | 2019-07-01 | 2019-07-01 | Method and device for acquiring difference data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910585963.5A CN110292775B (en) | 2019-07-01 | 2019-07-01 | Method and device for acquiring difference data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110292775A true CN110292775A (en) | 2019-10-01 |
CN110292775B CN110292775B (en) | 2023-03-24 |
Family
ID=68029734
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910585963.5A Active CN110292775B (en) | 2019-07-01 | 2019-07-01 | Method and device for acquiring difference data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110292775B (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110765145A (en) * | 2019-10-15 | 2020-02-07 | 益萃网络科技(中国)有限公司 | Content item transmission method, device, equipment and storage medium |
CN111177302A (en) * | 2019-12-16 | 2020-05-19 | 金蝶软件(中国)有限公司 | Business document processing method and device, computer equipment and storage medium |
CN111813412A (en) * | 2020-06-28 | 2020-10-23 | 中国科学院计算机网络信息中心 | Method and system for constructing test data set for evaluating binary code comparison tool |
CN111858679A (en) * | 2020-07-29 | 2020-10-30 | 武汉修齐科技有限公司 | Data caching method, caching system and query method |
CN112287658A (en) * | 2020-11-03 | 2021-01-29 | 深圳壹账通智能科技有限公司 | Business data processing method and device, electronic equipment and medium |
CN112287028A (en) * | 2020-10-30 | 2021-01-29 | 完美世界(重庆)互动科技有限公司 | Data synchronization method and device, storage medium and computing equipment |
CN112579611A (en) * | 2020-12-29 | 2021-03-30 | 珠海金山网络游戏科技有限公司 | Data processing method and device |
CN112965952A (en) * | 2021-02-09 | 2021-06-15 | 中国工商银行股份有限公司 | Data asset processing method and device |
CN113704257A (en) * | 2021-08-06 | 2021-11-26 | 网易(杭州)网络有限公司 | Data table updating method and device |
CN113918209A (en) * | 2021-12-16 | 2022-01-11 | 深圳市明源云科技有限公司 | Method and device for generating upgrade list and readable storage medium |
CN113934644A (en) * | 2021-12-16 | 2022-01-14 | 深圳市明源云链互联网科技有限公司 | Version difference comparison method and device, intelligent terminal and readable storage medium |
CN115086345A (en) * | 2022-05-13 | 2022-09-20 | 北京百度网讯科技有限公司 | File synchronization method and device, electronic equipment and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160301763A1 (en) * | 2013-12-30 | 2016-10-13 | Uc Mobile Co., Ltd. | Network data transmission method, device and system |
CN106547698A (en) * | 2016-11-30 | 2017-03-29 | 网易(杭州)网络有限公司 | The processing method of coverage data, device and server |
CN106681725A (en) * | 2016-12-29 | 2017-05-17 | 广州华多网络科技有限公司 | Code quantity statistical method and device |
CN108108425A (en) * | 2017-12-18 | 2018-06-01 | 苏州蜗牛数字科技股份有限公司 | Text-processing comparative approach and device |
CN109325058A (en) * | 2018-09-03 | 2019-02-12 | 中国平安人寿保险股份有限公司 | Regular batch comparison method, device, computer equipment and storage medium |
-
2019
- 2019-07-01 CN CN201910585963.5A patent/CN110292775B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160301763A1 (en) * | 2013-12-30 | 2016-10-13 | Uc Mobile Co., Ltd. | Network data transmission method, device and system |
CN106547698A (en) * | 2016-11-30 | 2017-03-29 | 网易(杭州)网络有限公司 | The processing method of coverage data, device and server |
CN106681725A (en) * | 2016-12-29 | 2017-05-17 | 广州华多网络科技有限公司 | Code quantity statistical method and device |
CN108108425A (en) * | 2017-12-18 | 2018-06-01 | 苏州蜗牛数字科技股份有限公司 | Text-processing comparative approach and device |
CN109325058A (en) * | 2018-09-03 | 2019-02-12 | 中国平安人寿保险股份有限公司 | Regular batch comparison method, device, computer equipment and storage medium |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110765145B (en) * | 2019-10-15 | 2022-08-09 | 益萃网络科技(中国)有限公司 | Content item transmission method, device, equipment and storage medium |
CN110765145A (en) * | 2019-10-15 | 2020-02-07 | 益萃网络科技(中国)有限公司 | Content item transmission method, device, equipment and storage medium |
CN111177302A (en) * | 2019-12-16 | 2020-05-19 | 金蝶软件(中国)有限公司 | Business document processing method and device, computer equipment and storage medium |
CN111177302B (en) * | 2019-12-16 | 2024-02-13 | 金蝶软件(中国)有限公司 | Service bill processing method, device, computer equipment and storage medium |
CN111813412A (en) * | 2020-06-28 | 2020-10-23 | 中国科学院计算机网络信息中心 | Method and system for constructing test data set for evaluating binary code comparison tool |
CN111858679A (en) * | 2020-07-29 | 2020-10-30 | 武汉修齐科技有限公司 | Data caching method, caching system and query method |
CN112287028A (en) * | 2020-10-30 | 2021-01-29 | 完美世界(重庆)互动科技有限公司 | Data synchronization method and device, storage medium and computing equipment |
CN112287658A (en) * | 2020-11-03 | 2021-01-29 | 深圳壹账通智能科技有限公司 | Business data processing method and device, electronic equipment and medium |
CN112579611A (en) * | 2020-12-29 | 2021-03-30 | 珠海金山网络游戏科技有限公司 | Data processing method and device |
CN112579611B (en) * | 2020-12-29 | 2024-03-19 | 珠海金山数字网络科技有限公司 | Data processing method and device |
CN112965952A (en) * | 2021-02-09 | 2021-06-15 | 中国工商银行股份有限公司 | Data asset processing method and device |
CN112965952B (en) * | 2021-02-09 | 2024-02-27 | 中国工商银行股份有限公司 | Data asset processing method and device |
CN113704257A (en) * | 2021-08-06 | 2021-11-26 | 网易(杭州)网络有限公司 | Data table updating method and device |
CN113704257B (en) * | 2021-08-06 | 2023-09-26 | 网易(杭州)网络有限公司 | Data table updating method and device |
CN113918209A (en) * | 2021-12-16 | 2022-01-11 | 深圳市明源云科技有限公司 | Method and device for generating upgrade list and readable storage medium |
CN113934644A (en) * | 2021-12-16 | 2022-01-14 | 深圳市明源云链互联网科技有限公司 | Version difference comparison method and device, intelligent terminal and readable storage medium |
CN113918209B (en) * | 2021-12-16 | 2022-04-15 | 深圳市明源云科技有限公司 | Method and device for generating upgrade list and readable storage medium |
CN115086345A (en) * | 2022-05-13 | 2022-09-20 | 北京百度网讯科技有限公司 | File synchronization method and device, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110292775B (en) | 2023-03-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110292775A (en) | Obtain the method and device of variance data | |
US11620574B2 (en) | Holistic optimization for accelerating iterative machine learning | |
EP2513785B1 (en) | Method and system of adapting a data model to a user interface component | |
US7886028B2 (en) | Method and system for system migration | |
WO2019047790A1 (en) | Method and system for generating combined features of machine learning samples | |
US20110106799A1 (en) | Measuring web site satisfaction of information needs | |
CN110019251A (en) | A kind of data processing system, method and apparatus | |
US20100312737A1 (en) | Semi-Automatic Evaluation and Prioritization of Architectural Alternatives for Data Integration | |
US10713625B2 (en) | Semi-automatic object reuse across application parts | |
CN106503007B (en) | Database operation method and device | |
CN108536692A (en) | A kind of generation method of executive plan, device and database server | |
CN103077192B (en) | A kind of data processing method and system thereof | |
KR101975272B1 (en) | System and method for recommending component reuse based on collaboration dependency | |
CN110457333A (en) | Data real time updating method, device and computer readable storage medium | |
CN106897123A (en) | Database operation method and device | |
US20110295861A1 (en) | Searching using taxonomy | |
CN112970011A (en) | Recording pedigrees in query optimization | |
CN110413307A (en) | Correlating method, device and the electronic equipment of code function | |
CN112558966B (en) | Depth model visualization data processing method and device and electronic equipment | |
US20140039876A1 (en) | Extracting related concepts from a content stream using temporal distribution | |
US8036921B2 (en) | System and method for optimization process repeatability in an on-demand computing environment | |
CN115033595A (en) | Query statement processing method, system, device and medium based on super node | |
US8775873B2 (en) | Data processing apparatus that performs test validation and computer-readable storage medium | |
US20110185167A1 (en) | Change impact research support device and change impact research support method | |
JP2004185346A (en) | Method and system for supporting project work |
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 |