CN109977127A - Data-updating method and device - Google Patents
Data-updating method and device Download PDFInfo
- Publication number
- CN109977127A CN109977127A CN201910149491.9A CN201910149491A CN109977127A CN 109977127 A CN109977127 A CN 109977127A CN 201910149491 A CN201910149491 A CN 201910149491A CN 109977127 A CN109977127 A CN 109977127A
- Authority
- CN
- China
- Prior art keywords
- data
- basic
- update
- application service
- new
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 83
- 238000012360 testing method Methods 0.000 claims abstract description 26
- 238000011897 real-time detection Methods 0.000 claims abstract description 9
- 230000008569 process Effects 0.000 claims description 15
- 238000001914 filtration Methods 0.000 claims description 9
- 238000001514 detection method Methods 0.000 claims description 8
- 235000013399 edible fruits Nutrition 0.000 claims description 2
- 238000012545 processing Methods 0.000 abstract description 8
- 238000013500 data storage Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 40
- 230000008859 change Effects 0.000 description 13
- 238000012217 deletion Methods 0.000 description 13
- 230000037430 deletion Effects 0.000 description 13
- 238000004590 computer program Methods 0.000 description 8
- 241001269238 Data Species 0.000 description 5
- 238000004891 communication Methods 0.000 description 5
- 238000013481 data capture Methods 0.000 description 5
- 238000012544 monitoring process Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 230000007547 defect Effects 0.000 description 3
- 238000009825 accumulation Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 239000004744 fabric Substances 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012216 screening Methods 0.000 description 2
- 238000012163 sequencing technique Methods 0.000 description 2
- 238000004904 shortening Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000003442 weekly effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/40—Business processes related to the transportation industry
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/548—Queue
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Economics (AREA)
- Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- General Health & Medical Sciences (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the present disclosure is related to technical field of data processing, provides a kind of data-updating method and device, wherein method includes that basic data updates detecting step, and the variation of the basic data in real-time detection basic database obtains testing result;Basic data pushes step, is based on testing result, pushes update message to application service, includes the more new data of basic data in update message.The embodiment of the present disclosure ensures that the basic data that application service uses is latest data.Basic data is cached to application service local, has not only reduced occupancy when basic data is transferred in application service every time to network, but also reduce basic database data storage and the pressure that reads.
Description
Technical field
The present invention relates to technical field of data processing more particularly to a kind of data-updating methods and device.
Background technique
With the continuous fast development of internet science and technology, data play increasing importance in people's lives,
It is related to the traffic of people, identity security, property safety etc., all more or less shadow by data of nearly all industry
It rings.Data application has penetrated into almost every field, and has become the essential elements of each processing unit.
In the related technology, basic data is stored in basic database, and application service is during using basic data
Need actively to carry out whether inquiry basic data updates into basic database, to facilitate to obtain accurate basic data.Using
During this kind of mode makes application service obtain the basic data in basic database, it is possible that a large amount of application service
Basic data in basic database is scanned for simultaneously, causes the search mission amount of basic database excessive, and causes failure,
And this kind of mode fails to decouple application service and basic database.
Summary of the invention
In order to solve the above-mentioned problems in the prior art, the present invention provides one kind and can timely update application service number
According to data update scheme.
One side according to an embodiment of the present invention provides a kind of data-updating method, comprising:
Basic data updates detecting step, and the variation of the basic data in real-time detection basic database obtains detection knot
Fruit;
Basic data pushes step, is based on testing result, pushes update message to application service, includes base in update message
The more new data of plinth data.
In one example, method further include:
Data acquisition step is updated, more new data is extracted from basic database, obtains more new data;
More new data annotation step is labeled more new data, obtains the more new data of tape identification, wherein tape identification
More new data be provided with Data Identification.
In one example, data acquisition step is updated, comprising:
Data inputting judgment step is updated, testing result is based on, whether the typing operation of judgement more new data is completed, obtained
First judging result;
It is yes, acquisition more new data based on the first judging result;
It is no, execution basic data update detecting step based on the first judging result.
In one example, method further include:
Basic data caching step is based on testing result, caches to update message, obtains update message caching number
According to.
In one example, basic data caching step, comprising:
The data cached classification storage step of update message is based on Data Identification, data cached to update message to carry out respectively
Caching process obtains message queue.
In one example, method further include:
The data cached deletion step of update message is based on received write-in success report, and deletion update message is data cached,
Wherein, be written successfully be reported as application service local data update after the completion of generate.
In one example, basic data includes air ticket basic data, air ticket basic data include Urban Data, airport data,
Country data, machine type data, cabin data, cold and hot door Urban Data.
In one example, more new data, the band of the world the updated data package Kuo Dai air ticket search service mark of tape identification are domestic
The more new data of air ticket search service mark, the more new data with international air ticket search converged services mark, band air ticket transaction clothes
The more new data for mark of being engaged in, the more new data with international air ticket intervention service identifiers identify more with internal ticket access service
New data.
According to another aspect of an embodiment of the present invention, a kind of data-updating method is provided, comprising:
Data reception step is updated, the data update message of basic database push is received, obtains the update number of tape identification
According to;
Data update the local data of step, the more new data based on tape identification and application service, to application service
Local data is updated.
In one example, method further include:
Data Matching step is updated, the corresponding base data type of Data Matching will be updated, wherein more new data is provided with
Data Identification, Data Identification are that the type based on basic data is labeled more new data.
In one example, method further include:
Update data filtering step, the more new data of local data and tape identification based on application service, matching strip mark
The more new data known, obtains data to be updated.
In one example, data update step, comprising:
Data write step to be updated, by the local data of data to be updated write-in application service;
Judgment step is written, judges whether data to be updated are written success, obtains the second judging result;
It is yes, generation write-in success report based on the second judging result;
Be based on the second judging result it is no, execute data write step to be updated.
In one example, method further include:
It subscribes to data full dose and updates step, based on the basic data that application service is subscribed to, when at the beginning of subscription and default
Between full dose update is carried out to the local data of application service, obtain full dose more new data.
According to another aspect of an embodiment of the present invention, a kind of data update apparatus is provided, comprising:
Basic data updates detection unit and is examined for the variation of the basic data in real-time detection basic database
Survey result;
Basic data push unit pushes update message to application service, wraps in update message for being based on testing result
Include the more new data of basic data.
In one example, device further include:
Data capture unit is updated, for extracting more new data from basic database, obtains more new data;
More new data marks unit and obtains the more new data of tape identification, wherein band for being labeled to more new data
The more new data of mark is provided with Data Identification.
In one example, data capture unit is updated, comprising:
Data inputting judgment module is updated, for being based on testing result, whether the typing operation of judgement more new data is completed,
Obtain the first judging result;
It is yes, acquisition more new data based on the first judging result;
It is no, execution basic data update detecting step based on the first judging result.
In one example, device further include:
Basic data cache unit caches update message, obtains update message caching for being based on testing result
Data.
In one example, basic data cache unit, comprising:
The data cached classification storage module of update message, for being based on Data Identification, to the data cached difference of update message
Caching process is carried out, message queue is obtained.
In one example, device further include:
The data cached deletion unit of update message deletes update message caching for being based on received write-in success report
Data, wherein be written successfully be reported as application service local data update after the completion of generate.
In one example, basic data includes air ticket basic data, air ticket basic data include Urban Data, airport data,
Country data, machine type data, cabin data, cold and hot door Urban Data.
In one example, more new data, the band of the world the updated data package Kuo Dai air ticket search service mark of tape identification are domestic
The more new data of air ticket search service mark, the more new data with international air ticket search converged services mark, band air ticket transaction clothes
The more new data for mark of being engaged in, the more new data with international air ticket intervention service identifiers identify more with internal ticket access service
New data.
According to another aspect of an embodiment of the present invention, a kind of data update apparatus is provided, comprising:
Data receipt unit is updated, for receiving the data update message of basic database push, obtains tape identification more
New data;
Data updating unit takes application for the more new data based on tape identification and the local data of application service
The local data of business is updated.
In one example, device further include:
Data matching unit is updated, for the corresponding base data type of Data Matching will to be updated, wherein more new data is set
It is equipped with Data Identification, Data Identification is that the type based on basic data is labeled more new data.
In one example, device further include:
Data filtering units are updated, for the more new data of local data and tape identification based on application service, matching
The more new data of tape identification, obtains data to be updated.
In one example, data updating unit, comprising:
Data write. module to be updated, for data to be updated to be written to the local data of application service;
Judgment module is written and obtains the second judging result for judging whether data to be updated are written success;
It is yes, generation write-in success report based on the second judging result;
Be based on the second judging result it is no, execute data write step to be updated.
In one example, data updating unit is also used to the basic data subscribed to based on application service, at the beginning of subscription, with
And preset time carries out full dose update to the local data of application service, obtains full dose more new data.
According to another aspect of an embodiment of the present invention, a kind of electronic equipment is provided, comprising:
Memory, for storing computer program;
Processor, for executing the computer program stored in memory, and computer program is performed, and is realized above-mentioned
The data-updating method of any embodiment.
According to another aspect of an embodiment of the present invention, a kind of computer readable storage medium is provided, computer journey is stored with
Sequence when computer program is executed by processor, realizes the data-updating method of any of the above-described embodiment.
Pass through real-time detection based on data-updating method and device, electronic equipment, computer readable storage medium, the present invention
The variation of basic data in basic database, obtains testing result;Based on testing result, updates and disappear to application service push
It ceases, includes the more new data of basic data in update message;Local data based on more new data and application service, to local
Data are updated.When basic data generates change, application service can be perceived and be updated in time, it is ensured that application service makes
Basic data is latest data.Basic data is cached to application service local, had both reduced application service and has transferred base every time
To the occupancy of network when plinth data, and reduce the pressure of the data storage and reading of basic database.
Detailed description of the invention
The following detailed description is read with reference to the accompanying drawings, above-mentioned and other purposes, the feature of embodiment of the present invention
It will become prone to understand with advantage.In the accompanying drawings, several implementations of the invention are shown by way of example rather than limitation
Mode, in which:
Fig. 1 shows the flow diagram of one embodiment of data-updating method of the invention;
Fig. 2 shows the flow diagrams of another embodiment of data-updating method of the invention;
Fig. 3 shows the flow diagram of another embodiment of data-updating method of the invention;
Fig. 4 shows the flow diagram of another embodiment of data-updating method of the invention;
Fig. 5 shows the flow diagram of another embodiment of data-updating method of the invention;
Fig. 6 shows the flow diagram of another embodiment of data-updating method of the invention;
Fig. 7 shows the flow diagram of another embodiment of data-updating method of the invention;
Fig. 8 shows the flow diagram of one embodiment of data-updating method of the invention;
Fig. 9 shows the flow diagram of another embodiment of data-updating method of the invention;
Figure 10 shows the flow diagram of another embodiment of data-updating method of the invention;
Figure 11 shows the flow diagram of another embodiment of data-updating method of the invention;
Figure 12 shows the structural schematic diagram of one embodiment of data update apparatus of the invention;
Figure 13 shows the structural schematic diagram of another embodiment of data update apparatus of the invention;
Figure 14 shows the structural schematic diagram of another embodiment of data update apparatus of the invention;
Figure 15 shows the structural schematic diagram of another embodiment of data update apparatus of the invention;
Figure 16 shows the structural schematic diagram of another embodiment of data update apparatus of the invention;
Figure 17 shows the structural schematic diagrams of another embodiment of data update apparatus of the invention;
Figure 18 shows the structural schematic diagram of another embodiment of data update apparatus of the invention;
Figure 19 shows the structural schematic diagram of one embodiment of data update apparatus of the invention;
Figure 20 shows the structural schematic diagram of another embodiment of data update apparatus of the invention;
Figure 21 shows the structural schematic diagram of another embodiment of data update apparatus of the invention;
Figure 22 shows the structural schematic diagram of one embodiment of electronic equipment of the invention.
In the accompanying drawings, identical or corresponding label indicates identical or corresponding part.
Specific embodiment
The principle and spirit of the invention are described below with reference to several illustrative embodiments.It should be appreciated that providing this
A little embodiments are used for the purpose of making those skilled in the art can better understand that realizing the present invention in turn, and be not with any
Mode limits the scope of the invention.
Although being noted that the statements such as " first " used herein, " second " to describe embodiments of the present invention not
Same module, step and data etc., still the statement such as " first ", " second " is merely in different modules, step and data etc.
Between distinguish, and be not offered as specific sequence or significance level.In fact, the statements such as " first ", " second " are complete
It may be used interchangeably.
The embodiment of the present invention can be applied to the electronic equipments such as terminal device, computer system and server, can be with crowd
Mostly other general or dedicated computing system environment or configuration operate together.Suitable for terminal device, computer system with
And the example of well-known terminal device, computing system, environment and/or configuration that the electronic equipments such as server are used together,
Including but not limited to: personal computer system, server computer system, thin client, thick client computer, hand-held or above-knee set
It is standby, microprocessor-based system, set-top box, programmable consumer electronics, NetPC Network PC, little type Ji calculate machine Xi Tong ﹑
Large computer system and the distributed cloud computing technology environment including above-mentioned any system, etc..
The electronic equipments such as terminal device, computer system and server can be in the computer executed by computer system
It is described under the general context of system executable instruction (such as program module).In general, program module may include routine, program,
Target program, component, logic and data structure etc., they execute specific task or realize specific abstract data class
Type.Computer system/server can be implemented in distributed cloud computing environment, in distributed cloud computing environment, task be by
What the remote processing devices being linked through a communication network executed.In distributed cloud computing environment, program module can be located at packet
On the Local or Remote computing system storage medium for including storage equipment.
An aspect of of the present present invention provides a kind of data-updating method, and Fig. 1 is data-updating method one embodiment of the present invention
Flow chart.As shown in Figure 1, the embodiment method includes: that basic data updates detecting step 110, basic data push step
120.Each step in Fig. 1 is described in detail below.
Basic data updates detecting step 110, and the variation of the basic data in real-time detection basic database is detected
As a result.
In some embodiments, basic database can be set server end to basic data carry out storage and other
Operation.Basic data in the present embodiment can be one of air ticket data, train ticket data and other data or more
Kind.In one example, basic data is air ticket data, which may include three character code of city, three character code of airport, country
The data such as code, type code, cabin code, cold and hot door city code.Correspondingly, train ticket data can be three character code of city, railway station
The data such as three character codes, vehicle code, compartment code, cold and hot door city code.
Based on above-mentioned basic data, the application service that can be applied to above-mentioned data may include international air ticket search clothes
Business, band internal ticket search service, the international air ticket search converged services of band, band air ticket transactional services, the international air ticket intervention clothes of band
Business, band internal ticket access service.Due to train under normal circumstances some country country runed, be save the cost with
And resource, train ticket data retain the corresponding part in the country of above-mentioned service, are not directed to intersect the service of country.
In the present embodiment, since the change in course line may occur for plane ticket, the corresponding aircraft of train ticket, train, aircraft is risen
The time that winged, train driving, aircraft landing, train arrive at a station, there may be adjustment, additional issue such as during spring transportation, shortening mileage time
Equal operations are required to be modified basic data, mismatch to avoid the bill of purchase with the vehicles actually taken.
The present embodiment by server end increase monitor, the basic data in basic database is monitored, with
Ensureing can perceive when basic data is changed in time.Its specific embodiment can be the basic number in storage basic data
Interface is monitored according to setting in the mysql of library, the variation for monitoring the basic data that interface can be monitored includes the newly-increased of basic data, base
The deletions of plinth data, the change of basic data.In some embodiments for monitoring interface, the new of basic data can be only monitored
Increase, the deletion of basic data, reason is that the change of basic data in certain specific basic data variations is basic data
Deletion and basic data newly-increased two events combination.
By monitor interface monitor basic data variation testing result include " sky " and above-mentioned event, wherein it is empty then
Indicate that basic data does not generate data variation when monitoring.
Server end in the present invention can be computer or removable communication apparatus, wherein removable communication apparatus can be with
It is laptop etc..The present embodiment is not specifically limited the type of server end.
Basic data pushes step 120, is based on testing result, pushes update message to application service, wraps in update message
Include the more new data of basic data.
In the present embodiment, after monitor monitors some data generation variation obtained in basic data, change will be generated
The basic data of change extracts, and obtains more new data, or the basic data comprising more new data is extracted, Xiang Yingyong
Service is pushed, and to update data used in application service, avoiding application service from failing data caused by timely updating makes
With the defect of mistake.
In certain embodiments, the push of message is updated using roketmq.Wherein, roketmq is a point
The message-oriented middleware of cloth, queuing model can guarantee stringent message sequence;Message pull mode abundant is provided;Efficiently
Subscriber's horizontal extension ability;Real-time message subscribing mechanism;Have hundred million grades of message accumulation abilities.It is carried out using roketmq
Update message push, can both ensure the timeliness of update message push, while can carry out the push process of a large amount of update messages
Middle network is not to block.
Fig. 2 shows the flow diagrams of other embodiments of data-updating method of the present invention, as shown in Fig. 2, this reality
Apply the data-updating method of example further include: update data acquisition step 111, more new data annotation step 112.Below in Fig. 2
Each step be described in detail.
Data acquisition step 111 is updated, more new data is extracted from basic database, obtains more new data.
In some embodiments, it listens to after the basic data generation variation in basic database, variation will be generated
Basic data is positioned in basic data, and the update data portion that variation is generated in basic data is obtained, and is obtained
To more new data or the basic data including more new data.In one example, the freight space price of certain grade in air ticket data produces
Variation has been given birth to, during updating the implementation of data acquisition step 111, the grade freight space can be only obtained from basic data
Price data is pushed to application service, can also be using the price of all grade freight spaces of the updated airplane as more
New data is pushed to application service.Its specific embodiment can be according to the performance of network congestion and server end
And adaptability determines, the present embodiment to the type of the more new data of acquisition without limitation.
More new data annotation step 112 is labeled more new data, obtains the more new data of tape identification, tape identification
More new data is provided with Data Identification.
In one example, more new data can be labeled using the topic realization being integrated in roketmq, with convenient
To this, more new data is identified for application service.Wherein, topic and basic data classification correspond.In one example, it can incite somebody to action
One topic is corresponded with a base data table, when a certain data in tables of data generates variation, Ke Yixun
Speed identifies more new data according to Data Identification.It avoids after updating data-pushing to application service to each more new data
The step of being screened.The present embodiment enables application service to obtain more new data rapidly, improves the timeliness of data update.
Fig. 3 shows the flow diagram of other embodiments of data-updating method of the present invention, as shown in figure 3, updating
Data acquisition step 111 includes updating data inputting judgment step 1111.The step in Fig. 3 is described in detail below.
Data inputting judgment step 1111 is updated, testing result is based on, whether the typing operation of judgement more new data is completed,
Obtain the first judging result;It is yes, acquisition more new data based on the first judging result;It is no, execution based on the first judging result
Basic data updates detecting step.
Judge whether the typing of more new data operates foundation use when can complete according to typing of completion in the present embodiment
Termination character judged.For example, being terminated after the completion of updating data inputting with " # ", exist when detecting in more new data
" # ", as update data inputting are completed.It can also be judged according to the preset length of more new data, if price information data
Preset length be 9 characters.In one example, when the length of price information data generates variation, i.e., the basic data is being
It updates, when length is restored to 9 characters, basic data update is finished.
After the completion of updating data inputting, obtain more new data and simultaneously push to application service, for application service carry out using.
It updates and continues to execute basic data update detecting step when data inputting does not complete, completed until updating data inputting.
The present embodiment by update data inputting judgment step 1111, it is ensured that application service push update message be
Complete information avoids and incomplete more new information is sent to application service the data of respective application service is caused to use
Obstacle, it is ensured that the normal use of application service.
Fig. 4 shows the flow diagram of other embodiments of data-updating method of the present invention, as shown in figure 4, this reality
The data-updating method for applying example can also include updating data-classification step 113.The step in Fig. 4 is carried out specifically below
It is bright.
Data-classification step 113 is updated, based on default classification standard, classifies to more new data, obtains more new data
Classification.
In some embodiments, the topic in roketmq can be based on needed for application service to the more new data of acquisition
Basic data classify, can be finance by the update data classification for example, there are pricing informations in more new data
Class is the application service for paying class to be applied to attribute;If there are destination national informations in more new information, can be by the update
National class for the purpose of data classification, be applied to international air ticket search application service or other can be with application destination country
The application service of information.
Fig. 5 shows the flow diagram of other embodiments of data-updating method of the present invention, as shown in figure 5, this reality
The data-updating method for applying example further includes basic data caching step 114, and the step in Fig. 5 is described in detail below.
Basic data caching step 114 is based on testing result, caches to update message, obtains update message caching
Data.In some embodiments, some application services be easy to cause data to update unsuccessful during carrying out data update
The phenomenon that generate, and data update message is caused due to application service faults itself to cache unsuccessful and data update message
It loses or damaged.It need to only reload update message is data cached at this time to application service, until application service is to more
New information is written successfully.
In some embodiments, Fig. 6 shows the flow diagram of other embodiments of data-updating method of the present invention,
As shown in fig. 6, basic data caching step 114 includes the data cached classification storage step 1141 of update message, it is based on data mark
Know, it is data cached to update message to carry out caching process respectively, obtain message queue.
In some embodiments, by update message is data cached be labeled according to Data Identification after, according to application service
Significance level or data degree size of upgrading demand be ranked up, obtain message queue.Application service can be according to message team
It arranges update while carrying out local data or is successively updated according to above-mentioned sequence.
Fig. 7 shows the flow diagram of other embodiments of data-updating method of the present invention, this implementation as shown in Figure 7
The data-updating method of example further includes the data cached deletion step 121 of update message, based on write-in success report, deletes update and disappears
It ceases data cached.By the data cached deletion step 121 of update message, the occupied memory space of update message can be reduced, with
And the operational efficiency of server end, space is provided to store a large amount of basic datas.
Basic data involved in the present embodiment except the air ticket data and train ticket data referred in above-described embodiment it
Outside can also include commodity data, wherein commodity data may include the price data of commodity, commodity making material data,
The packaged data etc. of commodity.Data-updating method provided in this embodiment is suitable for being provided with the basic data of application service more
Newly.The particular content of basic data can not only include content involved in above-described embodiment.
Another aspect of the present invention provides a kind of data-updating method, and Fig. 8 shows the another of data-updating method of the present invention
The flow diagram of some embodiments, as shown in figure 8, the data-updating method of the present embodiment includes updating data reception step
210, data update step 220, and each step in Fig. 5 is described in detail below.
Data reception step 210 is updated, the data update message of basic database push is received, obtains the update of tape identification
Data.
In some embodiments, basic database is before propelling data update message by the update in update message
Data are marked, so that each more new data carries Data Identification, become the more new data of tape identification.Facilitate application
To this, more new data is identified for service, can be identified according to Data Identification to more new data rapidly, be avoided update number
According to pushing to after application service to each the step of screening.So that application service is obtained more new data rapidly, improves
The timeliness that data update.
Data update the local data of step 220, the more new data based on tape identification and application service, to application service
Local data be updated.
In embodiments of the present invention, when using application service for the first time, application service full dose from basic database updates
The data of application service local, to ensure the trouble-free operation of application service.Data used by application service are newest basis
The newest basic data is cached to local by data, application service, so as in use process later can directly from this
Ground reads basic data, and the defect for the phenomenon that carrying out network congestion caused by data are transferred to basic database every time is avoided to produce
It is raw.
After for the first time, application service can also be set at regular intervals, full dose is carried out more to its local data again
Newly, the time that full dose updates is chosen can be and sets timing full dose more when application service starts or in application service
New command.The local data full dose of application service update the set time can be daily or weekly or monthly etc.,
This is not specifically limited.It is updated outside local data in application service full dose, the roketmq of server end, which can push to timely update, to disappear
Breath is updated the local data of application service.Application service confirms after the update message for receiving roketmq push to be updated
More new data type in message, matches the data type of local data, modifies to local data.Its concrete operations is to answer
With the local data of service respective type, the more new data in the update message of roketmq push is then subjected to newly-increased operation,
It is finally reached the operation for being updated the local data of application service.
In the present embodiment, side that the update message of multiple roketmq push handles the local data of application service
Formula can be while carry out, and can also carry out according to preset order, it can parallel processing, it can also be with serial process.Wherein, in advance
If sequence can be time sequencing, it is also possible to the sequence of the occupied space size of update message.The present embodiment is suitable to presetting
The type of sequence is without limitation.
Based on above-mentioned data-updating method provided in this embodiment, the local data update of application service is disappeared by updating
The push of breath, which is updated, to be reached, and avoids the drawbacks of application service frequently reads basic data to basic database, simultaneously
It avoids data use caused by application service local data updates not in time and the drawbacks of error occurs.Improve data update
Timeliness, while the basic data that application service is used is cached to one side of application service, the resource for reducing server end accounts for
With problem, the performance of server end is improved.
Fig. 9 shows the flow diagram of another embodiment of data-updating method of the invention, as shown in figure 9, this reality
Apply example further include: update Data Matching step 211, update data filtering step 212.The step in Fig. 9 is carried out below detailed
Explanation.
Data Matching step 211 is updated, the corresponding base data type of Data Matching will be updated, wherein more new data is set
It is equipped with Data Identification, Data Identification is that the type based on basic data accordingly marks more new data.Data Identification with
There are one-to-one relationship between the type of basic data, such base is being learnt in the application service for having subscribed such basic data
After plinth data change, the time for updating the service of data search respective application is reduced, improves the efficiency of data update.
Update data filtering step 212, the more new data of local data and tape identification based on application service, matching strip
The more new data of mark, obtains data to be updated.
In some embodiments of the invention, it before the local data of more new data write-in application service, also needs and answers
It is compared with the local data of service, finds out the difference between the more new data of tape identification and application service local data.
Both can by it is whole more new data replace the corresponding part of application service local data, can also be according to the update number of tape identification
According to the difference between application service local data, above-mentioned difference is only updated.For example, certain more new datas by configuration file and
Data itself are bonded, both can by it is whole more new data be replaced, can also only more new data itself.
By updating data filtering step 212, the data volume of application service data update can be reduced, accelerates data and updates
Speed, improve data updating efficiency.
Figure 10 shows the flow diagram of other embodiments of data-updating method of the present invention, as shown in Figure 10, number
It include data write step 2201 to be updated and write-in judgment step 2202 according to step 220 is updated, below to the step in Figure 10
Suddenly it is described in detail.
Data write step 2201 to be updated, by the local data of data to be updated write-in application service;Write-in judgement step
Rapid 2202, judge whether data to be updated are written success, obtains the second judging result;It is yes, generation based on the second judging result
Success report is written;Be based on the second judging result it is no, execute data write step 2201 to be updated.
In the complete situation of data to be updated, data to be updated are carried out to the operation of write-in application service local data.
If period, data to be updated were written successfully, then return to write-in success report and notified, avoids number caused by repeating to update
It is generated according to the phenomenon that disorder.If period data write-in failure to be updated, just repeats the write step of data to be updated, directly
To being written successfully.
Being combined by data write step 2201 to be updated and write-in judgment step 2202 can be achieved to understand number to be updated
According to write-in situation, so as to can be adjusted to data to be updated or application service when not receiving write-in success report
Examination avoids the unsuccessful phenomenon generation of more new data write-in for pushing to application service.Improve the update of application service data
Accuracy.
Figure 11 shows the flow diagram of other embodiments of data-updating method of the present invention, as shown in figure 11, this
The data-updating method of embodiment further includes subscribing to data full dose to update step 230, is carried out below to the step in Figure 11 detailed
Explanation.
It subscribes to data full dose and updates step 230, based on the basic data that application service is subscribed to, at the beginning of subscription, and it is pre-
If the time carries out full dose update to the local data of application service, full dose more new data is obtained.
Preset time involved in this embodiment can be application service on startup, application service applying for the first time or
Person carries out subscribing to the update of data full dose when restarting.When applying the application service for the first time, the local data of application service is
Sky, the basic data that application service need to be subscribed to according to configuration itself, full dose updates what application service was subscribed to from basic database
Basic data.To between restarting after application service closing, there may be changes for basic data in basic database, are answering
Fail to perceive and update in time in service closing process.To ensure that basic data used in application service is latest data,
It also needs to carry out full dose update to the local data of application service in application service restarting.
Another aspect of the present invention provides a kind of data update apparatus, and Figure 12 shows data update apparatus of the invention
The structural schematic diagram of one embodiment, as shown in figure 12, the data update apparatus of the present embodiment include that basic data updates detection
Unit 10, basic data push unit 20, wherein basic data updates detection unit 10 in real-time detection basic database
Basic data variation, obtain testing result.Basic data push unit 20 is used to be based on testing result, pushes away to application service
Update message is sent, includes the more new data of basic data in update message.
In some embodiments, basic database can be set server end to basic data carry out storage and other
Operation.Basic data in the present embodiment can be one of air ticket data, train ticket data and other data or more
Kind.In one example, basic data is air ticket data, which may include three character code of city, three character code of airport, country
The data such as code, type code, cabin code, cold and hot door city code.Correspondingly, train ticket data can be three character code of city, railway station
The data such as three character codes, vehicle code, compartment code, cold and hot door city code.Based on above-mentioned basic data, it can be applied to above-mentioned data
Application service may include international air ticket search service, band internal ticket search service, band international air ticket search converged services, band
The international air ticket intervention service of air ticket transactional services, band, band internal ticket access service.Since train is under normal circumstances in some state
The country of family is runed, and is save the cost and resource, and train ticket data retains the corresponding part in the country of above-mentioned service, not
It is related to intersecting the service of country.
In the present embodiment, since the change in course line may occur for plane ticket, the corresponding aircraft of train ticket, train, aircraft is risen
The time that winged, train driving, aircraft landing, train arrive at a station, there may be adjustment, additional issue such as during spring transportation, shortening mileage time
Equal operations are required to be modified basic data, mismatch to avoid the bill of purchase with the vehicles actually taken.
The present embodiment increases basic data by the server end in basic database and updates detection unit 10, to basic number
It is monitored according to the basic data in library, can be perceived in time when ensureing that basic data is changed.Its specific embodiment
It can be the setting in the basic database mysql of storage basic data and monitor interface, monitor the basic number that interface can be monitored
According to variation include basic data newly-increased, the deletion of basic data, the change of basic data.In some implementations for monitoring interface
In mode, the deletion of the newly-increased of basic data, basic data can be only monitored, reason is that certain specific basic datas become
The change of basic data is the combination of the deletion of basic data and newly-increased two events of basic data in change.
By monitor interface monitor basic data variation testing result include " sky " and above-mentioned event, wherein it is empty then
Indicate that basic data does not generate data variation when monitoring.
Server end in the present invention can be computer or removable communication apparatus, wherein removable communication apparatus can be with
It is laptop etc..The present embodiment is not specifically limited the type of server end.
After monitor monitors some data generation variation obtained in basic data, the basic data of variation will be generated
It extracts, obtains more new data, or the basic data comprising more new data is extracted, pushed away to application service
It send, to update data used in application service, application service is avoided to fail the lacking using mistake of data caused by timely updating
It falls into.
In certain embodiments, the push of message is updated using roketmq.Wherein, roketmq is a point
The message-oriented middleware of cloth, queuing model can guarantee stringent message sequence;Message pull mode abundant is provided;Efficiently
Subscriber's horizontal extension ability;Real-time message subscribing mechanism;Have hundred million grades of message accumulation abilities.It is carried out using roketmq
Update message push, can both ensure the timeliness of update message push, while can carry out the push process of a large amount of update messages
Middle network is not to block.
Figure 13 shows the structural schematic diagram of another embodiment of data update apparatus of the invention, as shown in figure 13, this
The data update apparatus of embodiment further include: update data capture unit 11, more new data marks unit 12, wherein update number
According to acquiring unit 11 for extracting more new data from basic database, more new data is obtained;More new data marks unit 12 and uses
In based on data category is updated, more new data is labeled, obtains the more new data of tape identification, wherein the update of tape identification
Data are provided with Data Identification.
In some embodiments, basic data update detection unit 10 listens to the generation of the basic data in basic database
After variation, the basic data for generating variation is positioned in basic data, and variation will be generated more in basic data
New data part is obtained, and more new data or the basic data including more new data are obtained.In one example, in air ticket data
The freight space price of certain grade produce variation, the price data of the grade freight space can be only obtained from basic data to application
Service is pushed, and can also be taken using the price of all grade freight spaces of the updated airplane as more new data to application
Business is pushed.Its specific embodiment can be according to the performance of network congestion and server end and adaptability determines,
The present embodiment to the type of the more new data of acquisition without limitation.
More new data mark unit 12 can be integrated in the topic marking program in roketmq, realize to more new data
Be labeled, to facilitate application service to this, more new data is identified, can rapidly according to Data Identification to more new data into
Row identification, avoided after updating data-pushing to application service to each the step of more new data screens.Make application service
More new data can be obtained rapidly, improve the timeliness of data update.
Figure 14 shows the structural schematic diagram of another embodiment of data update apparatus of the invention, as shown in figure 14, this
The update data capture unit 11 of embodiment, including update data inputting judgment module 1101, wherein update data inputting judgement
Module 1101 is used to be based on testing result, and whether the typing operation of judgement more new data is completed, and obtains the first judging result.It is based on
First judging result is yes, acquisition more new data;It is no, execution basic data update detecting step based on the first judging result.
Judge whether the typing of more new data operates foundation use when can complete according to typing of completion in the present embodiment
Termination character judged.For example, being terminated after the completion of updating data inputting with " # ", exist when detecting in more new data
" # ", as update data inputting are completed.It can also be judged according to the preset length of more new data, if price information data
Preset length be 9 characters.In one example, when the length of price information data generates variation, i.e., the basic data is being
It updates, when length is restored to 9 characters, basic data update is finished.
After the completion of updating data inputting, obtain more new data and simultaneously push to application service, for application service carry out using.
It updates and continues to execute basic data update detecting step when data inputting does not complete, completed until updating data inputting.
The present embodiment passes through the setting update data inputting judgment module 1101 in updating data capture unit 11, it is ensured that
The update message pushed to application service is complete information, avoids incomplete more new information being sent to application service
The data of respective application service are caused to use obstacle, it is ensured that the normal use of application service.
In further embodiments, Figure 15 shows the structural representation of another embodiment of data update apparatus of the invention
Figure, as shown in figure 15, the data update apparatus of the present embodiment can also include updating data sorting unit 13.Below in Figure 15
The step of be described in detail.
Data sorting unit 13 is updated, for classifying to more new data based on default classification standard, obtains updating number
According to classification.Topic in roketmq can be based on the progress of the required basic data of application service to the more new data of acquisition
Classification, for example, there are pricing informations in more new data, it can be financial class by the update data classification, to be applied to attribute
Pay the application service of class;It can be purpose state by the update data classification if there are destination national informations in more new information
Family's class, can be with the application service of application destination national information with the application service or other searched for applied to international air ticket.
Data sorting unit 13 is updated by setting, it can be by the topic in roketmq according to base needed for application service
Plinth data type is configured, and is used to push different update messages by different topic.Any topic is to application service
PUSH message is indiscriminate, as long as generating variation that is, in basic data, corresponding topic can be carried out to all application services
Push, application service can judge whether to consume the update message according to corresponding topic.Improve what application service data updated
Efficiency and accuracy.
Figure 16 shows the structural schematic diagram of another embodiment of data update apparatus of the invention, as shown in figure 16, this
The data update apparatus of embodiment can also include basic data cache unit 14, for being based on testing result, to update message
It is cached, it is data cached to obtain update message.In one example, some application services are easy during carrying out data update
It causes data to update unsuccessful phenomenon to generate, and causes data update message caching not due to application service faults itself
Success and data update message are lost or breakage.
Update message need to only be cached number by setting basic data cache unit 14 by the data update apparatus of the present embodiment
According to reloading to application service, until update message is written successfully in application service.
In some embodiments, Figure 17 shows the structural representations of another embodiment of data update apparatus of the invention
Figure, as shown in figure 17, basic data cache unit 14 may include the data cached classification storage module 141 of update message, be used for
It is data cached to update message to carry out caching process respectively based on Data Identification, obtain message queue.Topic is by update message
It is data cached be labeled according to Data Identification after, significance level or data according to application service are upgraded demand degree size
It is ranked up, obtains message queue.Application service can be according to update while message queue progress local data or according to upper
Sequence is stated successively to be updated.
By the way that the data cached classification storage module 141 of update message is arranged, basic database server and application can be reduced
The pressure of data transmission between services, the phenomenon for avoiding transmission channel crowded generate, and improve the efficiency of data transmission.
Figure 18 shows the structural schematic diagram of another embodiment of data update apparatus of the invention, as shown in figure 18, this
The data update apparatus of embodiment can also include the data cached deletion unit 21 of update message, for being written to based on received
Function report, it is data cached to delete update message, wherein life after the completion of the local data update for being successfully reported as application service is written
At.The application service of update message is had subscribed after the completion of updating its local data, one will be returned in roketmq and be written to
The report of function, roketmq can delete the more new data being buffered in roketmq according to this report, for thereafter be more
Data reserve memory space.
By the way that the data cached deletion unit 21 of update message is arranged, the application for having subscribed the corresponding topic of more new data is taken
Business update after the completion of more new data deleted, can reduce more new data basic database server end caching occupied by
Space.
The another aspect of the embodiment of the present invention provides a kind of data update apparatus, and Figure 19 shows data of the invention and updates
The structural schematic diagram of one embodiment of device, as shown in figure 19, the data update apparatus of the present embodiment include: that more new data connects
Receive unit 30 and data updating unit 40, wherein update the data that data receipt unit 30 is used to receive basic database push
Update message obtains the more new data of tape identification;Data updating unit 40 is used for more new data and application based on tape identification
The local data of service is updated the local data of application service.
In the present embodiment, basic database is before propelling data update message by the update number in update message
According to being marked, so that each more new data carries Data Identification, become the more new data of tape identification.Data Identification side
Just to this, more new data is identified for application service, can be identified rapidly, be avoided to more new data according to Data Identification
To each the step of screening after update data-pushing to application service.Application service is set to obtain more new data rapidly,
Improve the timeliness of data update.
When using application service for the first time, application service full dose from basic database updates the number of application service local
According to ensure the trouble-free operation of application service.Data used by application service are newest basic data, data updating unit
The newest basic data is cached to local by 40, directly to read basic number from local in use process later
According to, avoid every time to basic database carry out data transfer caused by network congestion the phenomenon that defect generate.
After for the first time, the roketmq at based data service device end push timely updates message to the local number of application service
According to being updated.Application service confirms more after the update message for receiving roketmq push by updating data receipt unit 30
More new data type in new information, matches the data type of local data, and data updating unit 40 repairs local data
Change.Its concrete operations is the local data of application service respective type, then will update data receipt unit 30 and receive roketmq
More new data in the update message of push carries out newly-increased operation, is finally reached and is updated the local data of application service
Operation.
In the present embodiment, update the received update message of data receipt unit 30 to the local data of application service at
The mode of reason can be while carry out, and can also carry out according to preset order, it can parallel processing, it can also be with serial process.
Wherein, preset order can be time sequencing, be also possible to the sequence of the occupied space size of update message.The present embodiment pair
The type of preset order is without limitation.
By setting, the local data update of application service is to be updated to reach by the push of update message, is kept away
Exempt from the drawbacks of application service frequently reads basic data to basic database, while avoiding the update of application service local data
There is the drawbacks of error in data use caused by not in time.The timeliness of data update is improved, while application service being used
Basic data be cached to one side of application service, reduce the resource occupation problem of server end, improve the property of server end
Energy.
Figure 20 shows the structural schematic diagram of another embodiment of data update apparatus of the invention, as shown in figure 20, this
The data update apparatus of embodiment further includes updating data matching unit 31 and update data filtering units 32, wherein updates number
According to matching unit 31 for the corresponding base data type of Data Matching will to be updated, wherein more new data is provided with Data Identification,
Data Identification is that the type based on basic data is labeled more new data.Data filtering units 32 are updated to be used to be based on to answer
With the local data of service and the more new data of tape identification, the more new data of tape identification is matched, data to be updated are obtained.
In the present embodiment, there are one-to-one relationship between Data Identification and the type of basic data, such is had subscribed
The application service of basic data reduces after learning that such basic data changes and updates the service of data search respective application
Time, improve data update efficiency.Before the local data of more new data write-in application service, also needs and apply clothes
The local data of business compares, and finds out the difference between the more new data of tape identification and application service local data.Both may be used
Whole more new datas is replaced the corresponding part of application service local data, can also according to the more new data of tape identification with
Difference between application service local data only updates above-mentioned difference.For example, certain more new datas are by configuration file and data
Itself is bonded, both can by it is whole more new data be replaced, can also only more new data itself.
Data matching unit 31 is updated by setting and updates data filtering units 32, can reduce application service data more
New data volume accelerates the speed that data update, and improves data updating efficiency.
In some embodiments, Figure 21 shows the structural representation of another embodiment of data update apparatus of the invention
Figure, as shown in figure 21, data updating unit 40 may include Data write. module to be updated 401 and write-in judgment module 402,
In, Data write. module 401 to be updated is used for the local data of data to be updated write-in application service;Judgment module is written
402, for judging whether data to be updated are written success, obtain the second judging result;It is yes, generation based on the second judging result
Success report is written;Be based on the second judging result it is no, execute data write step to be updated.
In the complete situation of data to be updated, data to be updated are carried out to the operation of write-in application service local data.
If period, data to be updated were written successfully, then return to write-in success report and notified, avoids number caused by repeating to update
It is generated according to the phenomenon that disorder.If period data write-in failure to be updated, just repeats the write step of data to be updated, directly
To being written successfully.
The present embodiment is combined with write-in judgment module 402 by Data write. module 401 to be updated and can be achieved to understand to more
Situation is written in new data, so as to can carry out to data to be updated or application service when not receiving write-in success report
Debugging avoids the unsuccessful phenomenon generation of more new data write-in for pushing to application service.Improve application service data more
New accuracy.
Data updating unit 40 in the data update apparatus of the present embodiment can be also used for based on application service subscription
Basic data carries out full dose update to the local data of application service, obtains full dose more new data.It is involved in this embodiment
Application service carries out subscribing to the update of data full dose when applying or restarting for the first time.When applying the application service for the first time,
The local data of application service is sky, and the basic data that application service need to be subscribed to according to configuration itself is complete from basic database
Amount updates the basic data that application service is subscribed to.It is basic in basic database between extremely being restarted after application service closing
Data fail to perceive and update in time in application service closing process there may be change.To ensure that application service is used
Basic data be latest data, also need to carry out full dose to the local data of application service in application service restarting
It updates.
The another aspect of the embodiment of the present invention, provides a kind of electronic equipment.Below with reference to Figure 22, it illustrates be suitable for being used to
Realize the structural schematic diagram of the terminal device of the embodiment of the present application or the electronic equipment of server.As shown in figure 22, which sets
The standby electronic equipment includes processor and memory.Wherein, memory, the instruction executed for storage processor;Processor is used
In the instruction for calling memory to store, and execute the data-updating method that above-described embodiment is related to.It is handled in the embodiment of the present invention
Device can call the instruction of memory storage, and the variation of the basic data in real-time detection basic database obtains testing result;Base
In testing result, update message is pushed to micro services application service, includes the more new data of basic data in update message, or
Person receives the data update message of basic database push, obtains the more new data of tape identification;More new data based on tape identification
And the local data of application service, the local data of application service is updated.
Wherein, electronic equipment executes the process of parallel data processing, at the data parallel for seeing above-described embodiment description
The implementation process of reason, details are not described herein.
The embodiment of the present invention also provides a kind of computer readable storage medium, which has meter
Calculation machine executable instruction when computer executable instructions are run on computers, executes the data that above-described embodiment is related to and updates
Method.
The embodiment of the present invention also provides a kind of computer program product comprising instruction, when the computer program comprising instruction
When product is run on computers, so that computer executes the data-updating method that above-described embodiment is related to.
In one or more optional embodiments, the embodiment of the present disclosure additionally provides a kind of computer-readable storage medium
Matter, for storing computer-readable instruction, which is performed so that computer executes any of the above-described possible implementation
In data-updating method.In another optional example, which is embodied as software product, such as soft
Part development kit (Software Development Kit, SDK) etc..
Although description operation in a particular order in the accompanying drawings should not be construed as requiring specific shown in
Sequence or serial order operate to execute these operations, or shown in requirement execution whole to obtain desired result.?
In specific environment, multitask and parallel processing be may be advantageous.
Methods and apparatus of the present invention can be completed using standard programming technology, using rule-based logic or its
His logic realizes various method and steps.It should also be noted that herein and the terms used in the claims " device "
" module " is intended to include using the realization of a line or multirow software code and/or hardware realization and/or for receiving input
Equipment.
One or more combined individually or with other equipment can be used in any step, operation or program described herein
A hardware or software module are executed or are realized.In one embodiment, software module use includes comprising computer program
The computer program product of the computer-readable medium of code is realized, can be executed by computer processor any for executing
Or whole described step, operation or programs.
For the purpose of example and description, the preceding description that the present invention is implemented is had been presented for.Preceding description is not poor
Also not the really wanting of act property limits the invention to exact form disclosed, according to the above instruction there is likely to be various modifications and
Modification, or various changes and modifications may be obtained from the practice of the present invention.Select and describe these embodiments and be in order to
Illustrate the principle of the present invention and its practical application, so that those skilled in the art can be to be suitable for the special-purpose conceived
Come in a variety of embodiments with various modifications and utilize the present invention.
Claims (10)
1. a kind of data-updating method, wherein include:
Basic data updates detecting step, and the variation of the basic data in real-time detection basic database obtains testing result;
Basic data pushes step, is based on the testing result, pushes update message to application service, wraps in the update message
Include the more new data of the basic data.
2. according to the method described in claim 1, wherein, the method also includes:
Data acquisition step is updated, the more new data is extracted from the basic database, obtains the more new data;
More new data annotation step is labeled the more new data, obtains the more new data of tape identification, wherein the band
The more new data of mark is provided with Data Identification.
3. according to the method described in claim 2, wherein, the update data acquisition step, comprising:
Data inputting judgment step is updated, the testing result is based on, judges whether the typing operation of the more new data is completed,
Obtain the first judging result;
It is yes, the acquisition more new data based on first judging result;
Be based on first judging result it is no, execute the basic data and update detecting step.
4. according to the method described in claim 2, wherein, the method also includes:
Basic data caching step is based on the testing result, caches to the update message, obtains update message caching
Data.
5. according to the method described in claim 4, wherein, the basic data caching step, comprising:
The data cached classification storage step of update message, identifies based on the data, to the data cached difference of the update message
Caching process is carried out, message queue is obtained.
6. a kind of data-updating method, wherein include:
Data reception step is updated, the data update message of basic database push is received, obtains the more new data of tape identification;
Data update step, based on the more new data of the tape identification and the local data of application service, take to the application
The local data of business is updated.
7. according to the method described in claim 6, wherein, the method also includes:
Data Matching step is updated, by the corresponding base data type of the update Data Matching, wherein the more new data is set
It is equipped with Data Identification, the Data Identification is that the type based on basic data is labeled more new data.
8. according to the method described in claim 6, wherein, the method also includes:
Update data filtering step, the more new data of local data and the tape identification based on the application service, matching
The more new data of the tape identification, obtains data to be updated.
9. a kind of data update apparatus, wherein include:
Basic data updates detection unit, for the variation of the basic data in real-time detection basic database, obtains detection knot
Fruit;
Basic data push unit pushes update message, the update message to application service for being based on the testing result
In include the basic data more new data.
10. a kind of data update apparatus, wherein include:
Data receipt unit is updated, for receiving the data update message of basic database push, obtains the update number of tape identification
According to;
Data updating unit, for answering described based on the more new data of the tape identification and the local data of application service
It is updated with the local data of service.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910149491.9A CN109977127A (en) | 2019-02-28 | 2019-02-28 | Data-updating method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910149491.9A CN109977127A (en) | 2019-02-28 | 2019-02-28 | Data-updating method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109977127A true CN109977127A (en) | 2019-07-05 |
Family
ID=67077573
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910149491.9A Pending CN109977127A (en) | 2019-02-28 | 2019-02-28 | Data-updating method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109977127A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110727690A (en) * | 2019-10-15 | 2020-01-24 | 刘卫立 | Data updating method |
CN110968507A (en) * | 2019-11-20 | 2020-04-07 | 北京创鑫旅程网络技术有限公司 | Coverage rate statistical method and device |
CN111080352A (en) * | 2019-12-05 | 2020-04-28 | 北京金山云网络技术有限公司 | Product price determining method and device and server |
CN111090701A (en) * | 2019-12-19 | 2020-05-01 | 腾讯科技(深圳)有限公司 | Service request processing method and device, readable storage medium and computer equipment |
CN111541555A (en) * | 2020-03-24 | 2020-08-14 | 中国平安人寿保险股份有限公司 | Group chat optimization method and related product |
CN112235378A (en) * | 2020-09-29 | 2021-01-15 | 北京三快在线科技有限公司 | Data updating method and device, storage medium and electronic equipment |
CN112487315A (en) * | 2020-12-17 | 2021-03-12 | 中国农业银行股份有限公司 | Data processing method and device |
CN114780261A (en) * | 2022-04-28 | 2022-07-22 | 四川虹魔方网络科技有限公司 | Basic data micro-service sharing system and method in intelligent equipment operation management |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103246529A (en) * | 2012-02-13 | 2013-08-14 | 腾讯科技(深圳)有限公司 | Method, equipment and system for updating and pushing navigation bar |
CN103699554A (en) * | 2012-09-27 | 2014-04-02 | 深圳云富网络科技有限公司 | Webpage data calling method and device |
CN104461935A (en) * | 2014-11-27 | 2015-03-25 | 华为技术有限公司 | Method, device and system for data storage |
CN105630982A (en) * | 2015-12-25 | 2016-06-01 | 中国民航信息网络股份有限公司 | Flight data caching method and system |
CN106033474A (en) * | 2016-04-21 | 2016-10-19 | 苏州奖多多科技有限公司 | Data synchronization updating method and device, and electronic device |
CN106294486A (en) * | 2015-06-04 | 2017-01-04 | 交通银行股份有限公司 | The processing method of finance market data and system |
US20170235882A1 (en) * | 2016-02-16 | 2017-08-17 | mHealthPharma, Inc. | Condition management system and method |
CN108259524A (en) * | 2016-12-28 | 2018-07-06 | 沈阳美行科技有限公司 | Navigation service system and method |
CN108846052A (en) * | 2018-05-31 | 2018-11-20 | 郑州云海信息技术有限公司 | A kind of browser caching data update method and relevant apparatus |
-
2019
- 2019-02-28 CN CN201910149491.9A patent/CN109977127A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103246529A (en) * | 2012-02-13 | 2013-08-14 | 腾讯科技(深圳)有限公司 | Method, equipment and system for updating and pushing navigation bar |
CN103699554A (en) * | 2012-09-27 | 2014-04-02 | 深圳云富网络科技有限公司 | Webpage data calling method and device |
CN104461935A (en) * | 2014-11-27 | 2015-03-25 | 华为技术有限公司 | Method, device and system for data storage |
CN106294486A (en) * | 2015-06-04 | 2017-01-04 | 交通银行股份有限公司 | The processing method of finance market data and system |
CN105630982A (en) * | 2015-12-25 | 2016-06-01 | 中国民航信息网络股份有限公司 | Flight data caching method and system |
US20170235882A1 (en) * | 2016-02-16 | 2017-08-17 | mHealthPharma, Inc. | Condition management system and method |
CN106033474A (en) * | 2016-04-21 | 2016-10-19 | 苏州奖多多科技有限公司 | Data synchronization updating method and device, and electronic device |
CN108259524A (en) * | 2016-12-28 | 2018-07-06 | 沈阳美行科技有限公司 | Navigation service system and method |
CN108846052A (en) * | 2018-05-31 | 2018-11-20 | 郑州云海信息技术有限公司 | A kind of browser caching data update method and relevant apparatus |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110727690A (en) * | 2019-10-15 | 2020-01-24 | 刘卫立 | Data updating method |
CN110968507A (en) * | 2019-11-20 | 2020-04-07 | 北京创鑫旅程网络技术有限公司 | Coverage rate statistical method and device |
CN111080352A (en) * | 2019-12-05 | 2020-04-28 | 北京金山云网络技术有限公司 | Product price determining method and device and server |
CN111090701A (en) * | 2019-12-19 | 2020-05-01 | 腾讯科技(深圳)有限公司 | Service request processing method and device, readable storage medium and computer equipment |
CN111090701B (en) * | 2019-12-19 | 2024-04-02 | 腾讯科技(深圳)有限公司 | Service request processing method, device, readable storage medium and computer equipment |
CN111541555A (en) * | 2020-03-24 | 2020-08-14 | 中国平安人寿保险股份有限公司 | Group chat optimization method and related product |
CN112235378A (en) * | 2020-09-29 | 2021-01-15 | 北京三快在线科技有限公司 | Data updating method and device, storage medium and electronic equipment |
CN112235378B (en) * | 2020-09-29 | 2022-12-16 | 北京三快在线科技有限公司 | Data updating method and device, storage medium and electronic equipment |
CN112487315A (en) * | 2020-12-17 | 2021-03-12 | 中国农业银行股份有限公司 | Data processing method and device |
CN114780261A (en) * | 2022-04-28 | 2022-07-22 | 四川虹魔方网络科技有限公司 | Basic data micro-service sharing system and method in intelligent equipment operation management |
CN114780261B (en) * | 2022-04-28 | 2022-11-29 | 四川虹魔方网络科技有限公司 | Basic data micro-service sharing system and method in intelligent equipment operation management |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109977127A (en) | Data-updating method and device | |
US11733693B2 (en) | Data acquisition method and apparatus | |
US20230129123A1 (en) | Monitoring and Management System for Automatically Generating an Issue Prediction for a Trouble Ticket | |
CN110275983A (en) | The search method and device of traffic monitoring data | |
CN110188103A (en) | Data account checking method, device, equipment and storage medium | |
CN111708794B (en) | Data comparison method and device based on big data platform and computer equipment | |
CN110880082B (en) | Service evaluation method, device, system, electronic device and readable storage medium | |
CN107193730A (en) | A kind of interface test method of automation | |
CN109992219A (en) | Distributed storage method, device, equipment and computer readable storage medium | |
CN114113165B (en) | Row package interpretation method for security inspection equipment | |
CN113570468A (en) | Enterprise payment wind control service platform | |
CN112035325A (en) | Automatic monitoring method and device for text robot | |
CN109669954A (en) | Acquisition methods, equipment, storage medium and the device of contract dataset | |
CN111784292A (en) | Electronic passenger ticket refunding method and device, airline department system and payment system | |
CN111291051A (en) | Freight rate data processing method and device, storage medium and electronic equipment | |
CN110473530A (en) | Instruction classification method, apparatus, electronic equipment and computer readable storage medium | |
CN111651284A (en) | Method, device, system and storage medium for processing service data | |
CN107437174B (en) | Virtual card management method and device | |
CN106875184B (en) | Abnormal scene simulation method, device and equipment | |
CN102480383A (en) | Log information message processing method and device | |
CN111082962B (en) | Cloud-based terminal identification system and identification method | |
CN113247057B (en) | Data system based on global present vehicle management system and data processing method thereof | |
CN110457148A (en) | A kind of storage method, device and the readable medium of monitor supervision platform fault message | |
CN114896482A (en) | Model training and energy supplementing intention recognition method, device, equipment and medium | |
CN111061744B (en) | Graph data updating method and device, computer equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190705 |