CN106250525A - A kind of dynamic adjusting method for inquiring about airline's information - Google Patents

A kind of dynamic adjusting method for inquiring about airline's information Download PDF

Info

Publication number
CN106250525A
CN106250525A CN201610634727.4A CN201610634727A CN106250525A CN 106250525 A CN106250525 A CN 106250525A CN 201610634727 A CN201610634727 A CN 201610634727A CN 106250525 A CN106250525 A CN 106250525A
Authority
CN
China
Prior art keywords
airline
information
query
inquiry
polling cycle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610634727.4A
Other languages
Chinese (zh)
Other versions
CN106250525B (en
Inventor
杨秦旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Ctrip Business Co Ltd
Original Assignee
Shanghai Ctrip Business Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Ctrip Business Co Ltd filed Critical Shanghai Ctrip Business Co Ltd
Priority to CN201610634727.4A priority Critical patent/CN106250525B/en
Publication of CN106250525A publication Critical patent/CN106250525A/en
Application granted granted Critical
Publication of CN106250525B publication Critical patent/CN106250525B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

Abstract

The invention discloses a kind of dynamic adjusting method for inquiring about airline's information: first, set up initial query timeout configuration data table;Secondly, according to query timeout configuration data table, within polling cycle, repeatedly aviation information inquiry table is inquired about and obtained to all airlines information successively;Finally, the information obtaining all aviation information inquiry tables in the polling cycle calculates, and updates query timeout configuration data table.The present invention utilizes the overtime Monitoring Data of each airline, and time-out duration is analyzed by timing, dynamically extends or reduces the overtime duration to each airline, adjusting the Query priority of this airline simultaneously.The present invention can improve inquiry airline information efficiency, query success rate, promotes Consumer's Experience, the final order rate realizing promoting each airline;Optimizing Suggestions can be provided to airline simultaneously.

Description

A kind of dynamic adjusting method for inquiring about airline's information
Technical field
The present invention relates to the information query technique of aviation field, be specifically related to a kind of for inquiring about the dynamic of airline's information State method of adjustment.
Background technology
The network platform data query to airline at present, it is desirable to Consumer's Experience, airline in the network platform look into Ask speed, promote in airline a few person of quantity on order and make balance, obtain optimal effect;Speed is the fastest, Consumer's Experience and The best, speed is the fastest, and the order rate of airline is likely to higher.
But as the unified platform of integrated multiple airlines, dozens of airline can be inquired about simultaneously, In one query, the inquiry velocity of some airline system is slow, and some speed is fast, and the result of inquiry depends on the slowest boat Empty company query time, the query time of the slowest airline influences whether the experience effect of website user.And if looked into Asking the used time setting duration beyond maximum, the data of airline i.e. can be abandoned by platform, and therefore airline decreases The information display machine meeting of the network platform.
Summary of the invention
It is an object of the invention to solve due to the ruuning situation difference of each airline system in prior art, Information system due to during using environmental change cause the change of system computing capacity, the response time of different time may not Identical;Thus cause the network platform can not to upgrade in time or abandon for the query display of aviation information, and reduce user's body Test the appearance of the problems such as effect;Provide a kind of dynamic adjusting method for inquiring about airline's information.
In order to achieve the above object, the present invention is achieved through the following technical solutions:
A kind of dynamic adjusting method for inquiring about airline's information, is characterized in, described dynamic adjusting method comprises:
S1, sets up initial query timeout configuration data table;Initial described query timeout configuration data table comprises each The logo code of airline, the overtime duration of initial setting, the initial Query priority set;
S2, according to described query timeout configuration data table, was repeatedly carried out all airlines information within polling cycle Inquire about and obtain aviation information inquiry table;Described aviation information inquiry table comprise each airline described logo code, Actual queries used time, Query Result;
S3, obtains the information of all described aviation information inquiry table in the described polling cycle and calculates, more New described query timeout configuration data table.
It is preferred that described step S2 comprises:
Within polling cycle, according to the described Query priority of each airline in described query timeout configuration data table Difference, every time inquiry is the most laggard to the airline of appropriate level from high to low order according to described Query priority OK, and obtain this described aviation information inquiry table.
It is preferred that described step S3 comprises:
The information of all described aviation information inquiry tables in collecting described polling cycle;
The inquiry used time calculating each airline described actual queries used time corresponding within described polling cycle is average Value;
The described inquiry used time meansigma methods of all airlines is carried out by few sequence at most, according to ranking results again Determine all airlines described Query priority from high to low;
During using described inquiry used time meansigma methods corresponding for each airline in described polling cycle as described time-out Long;Update described time-out duration, the described Query priority of each airline in described query timeout configuration data table.
It is preferred that described dynamic adjusting method also comprises:
S4, when inquiring about airline's information within next described polling cycle, jumps to described step S2 and inquires about.
On the basis of meeting common sense in the field, above-mentioned each optimum condition, can combination in any, obtain each preferable reality of the present invention Example.
The most progressive effect of the present invention is:
A kind of dynamic adjusting method for inquiring about airline's information disclosed by the invention: first, set up initial looking into Ask time-out configuration data table;Secondly, according to query timeout configuration data table, repeatedly all airlines are believed within polling cycle Breath carries out inquiring about and obtain aviation information inquiry table successively;Finally, all aviation information inquiries in the polling cycle are obtained The information of table calculates, and updates query timeout configuration data table.The present invention utilizes the overtime Monitoring Data of each airline, Time-out duration is analyzed by timing, dynamically extends or reduces the overtime duration to each airline, adjusting this aviation simultaneously The Query priority of company.The present invention can improve inquiry airline information efficiency, query success rate, promotes Consumer's Experience, The final order rate realizing promoting each airline;There is provided Optimizing Suggestions can to each airline simultaneously.
Accompanying drawing explanation
Fig. 1 is the overall flow schematic diagram of a kind of dynamic adjusting method for inquiring about airline's information of the present invention.
Fig. 2 is the query timeout configuration data table of a kind of dynamic adjusting method for inquiring about airline's information of the present invention Embodiment schematic diagram.
Fig. 3 is the reality of the aviation information inquiry table of a kind of dynamic adjusting method for inquiring about airline's information of the present invention Execute illustration to be intended to.
Detailed description of the invention
Further illustrate the present invention below by the mode of embodiment, but the most therefore limit the present invention to described reality Execute among example scope.
As it is shown in figure 1, a kind of dynamic adjusting method for inquiring about airline's information, dynamic adjusting method comprises:
S1, sets up initial query timeout configuration data table.
In the present embodiment, the network platform sets up initial query timeout configuration data table.Initial query timeout configuration number The logo code of each airline, the overtime duration of initial setting, the initial Query priority set is comprised according to table.And Query time needed for each priority is the longest overtime duration having in this priority.
As in figure 2 it is shown, an initial query timeout configuration data table comprises: tetra-airlines of M, C, Z, U, corresponding The initial overtime duration set is respectively as follows: 8000ms, 10000ms, 18000ms, 20000ms;The present embodiment sets: during time-out Length≤10000ms is the 1st priority, and 10000ms < time-out duration≤20000ms is the 2nd priority.Then the looking into of the 1st priority The inquiry time is 10000ms, and the query time of the 2nd priority is 20000ms.
In actual queries demand, the priority level of varying number can be set according to situations such as airline's quantity.
S2, according to query timeout configuration data table, repeatedly inquired about all airlines information within polling cycle And obtain aviation information inquiry table.This step S2 comprises:
The network platform carries out n times inquiry to all airline system in being set in polling cycle T.Join according to query timeout Putting the difference of the Query priority of each airline in tables of data, every time inquiry is from high to low suitable according to Query priority The airline of ordered pair appropriate level is successively carried out, and obtains this aviation information inquiry table.
In the present embodiment, in polling cycle T, the network platform all airline system inquiry times is according to current In polling cycle T, user uses this network platform to carry out the number of times of aviation information inquiry.Such as, polling cycle T is set little as 24 Time, the most wherein in a polling cycle T, user has carried out 10000 inquiries by this network platform, then in this polling cycle Inquiry times N=10000 in T;In another one polling cycle T, user has carried out 15000 times by this network platform and has looked into Ask, then inquiry times N=15000 in this polling cycle T.
In the present embodiment, appointing one query in polling cycle T is according to query timeout configuration data table as shown in Figure 2 Carry out.The network platform carries out serial mode inquiry to different Query priorities, aviations different in same Query priority Corporation system carries out parallel mode inquiry.The network platform is first to the M airline system that Query priority is 1 grade, C aviation public affairs Department's system is inquired about;Secondly the Z airline system that Query priority is 2 grades, U airline system are being inquired about.
In the present embodiment, the wherein one query result in polling cycle T is as it is shown on figure 3, aviation information inquiry table comprises The logo code of each airline, actual queries used time, Query Result.Such as, the actual queries of M airline system is used Time be 20000ms。
S3, obtains the information of all aviation information inquiry tables in the polling cycle and calculates, and updates inquiry super Time configuration data table.Step S3 comprises:
The information of all aviation information inquiry tables in collection polling cycle.
In the present embodiment, owing to carrying out n times inquiry in polling cycle T, therefore the network platform is obtained in that N number of air-mail Breath inquiry table.
In another embodiment, owing to carrying out n times inquiry in polling cycle T, therefore the network platform can be a boat Empty information inquiry table obtains N number of Query Result.
Calculate the inquiry used time meansigma methods of each airline N number of actual queries used time corresponding within polling cycle.
Carry out, by few sequence at most, redefining according to ranking results by the inquiry used time meansigma methods of all airlines All airlines Query priority from high to low.
Using inquiry used time meansigma methods corresponding for each airline in polling cycle as time-out duration;Update inquiry super Time configuration data table in the overtime duration of each airline, Query priority.
In the present embodiment, the network platform obtains N number of actual queries used time data of arbitrary airline, and to N number of reality Inquiry used time data carry out inquiring about used time mean value calculation, when the inquiry used time meansigma methods obtained is as this airline overtime Long.Overtime duration after all airlines are updated by the network platform is carried out by few sequence at most, and this ranking results also serves as Up-to-date Query priority.The quantity of the airline according to each priority level initializing, divides excellent to above-mentioned ranking results First level, wherein, several airlines with immediate time-out duration can be divided into same priority.
As it is shown in figure 1, a kind of dynamic adjusting method for inquiring about airline's information disclosed by the invention also comprises: S4, when inquiring about airline's information within next polling cycle, jumps to step S2 and inquires about.
In the present invention, when inquiring about airline's information within next polling cycle, the network platform is according to updated Query timeout configuration data table, repeatedly inquired about successively all airlines information and obtains aviation within this polling cycle Information inquiry table.The network platform obtains the information of all aviation information inquiry tables in this polling cycle and calculates, more New query timeout configuration data table.For again inquiring about the query timeout configuration data table providing up-to-date as inquiry foundation.
Such as, when, in a polling cycle T, having 5000 users by the network platform with inquiring about A to the boat in course line, B ground Empty information.The network platform is according to setting the initial query timeout configuration data table in this course line in a polling cycle T Obtain 5000 aviation information inquiry tables.Calculate the reality of each airline related in 5000 aviation information inquiry tables Inquiry used time, Query Result, and calculate, final updating query timeout configuration data table.
The most such as, when, in a polling cycle T, having 5000 users by the network platform with inquiring about A to course line, B ground Aviation information.The network platform is according to setting the initial query timeout configuration data table in this course line at a polling cycle T One aviation information inquiry table of interior acquisition contains 5000 query structures.Calculate each in 5000 Query Results relating to The actual queries used time of airline, Query Result, and calculate, final updating query timeout configuration data table.
Technique scheme disclosed by the invention can the overtime duration parameters value of Optimizing Queries, promote looking into of the network platform Ask efficiency, improve user satisfaction;The probability that airline data occurs in the network platform can be improved simultaneously, and then promote boat The order volume of empty company;And provide Optimizing Suggestions for airline.
Although the foregoing describing the detailed description of the invention of the present invention, it will be appreciated by those of skill in the art that these Being merely illustrative of, protection scope of the present invention is defined by the appended claims.Those skilled in the art is not carrying on the back On the premise of the principle and essence of the present invention, these embodiments can be made various changes or modifications, but these change Protection scope of the present invention is each fallen within amendment.

Claims (4)

1. the dynamic adjusting method being used for inquiring about airline's information, it is characterised in that described dynamic adjusting method comprises:
S1, sets up initial query timeout configuration data table;Initial described query timeout configuration data table comprises each aviation The logo code of company, the overtime duration of initial setting, the initial Query priority set;
S2, according to described query timeout configuration data table, repeatedly inquired about all airlines information within polling cycle And obtain aviation information inquiry table;Described aviation information inquiry table comprises the described logo code of each airline, reality Inquiry used time, Query Result;
S3, obtains the information of all of described aviation information inquiry table in the described polling cycle and calculates, and updates Described query timeout configuration data table.
2. the dynamic adjusting method for inquiring about airline's information as claimed in claim 1, it is characterised in that described step S2 comprises:
Within polling cycle, according to the described Query priority of each airline in described query timeout configuration data table not With, inquiry is successively to carry out the airline of appropriate level from high to low order according to described Query priority every time, and Obtain this described aviation information inquiry table.
3. the dynamic adjusting method for inquiring about airline's information as claimed in claim 2, it is characterised in that described step S3 comprises:
The information of all described aviation information inquiry tables in collecting described polling cycle;
Calculate the inquiry used time meansigma methods of each airline described actual queries used time corresponding within described polling cycle;
Carry out, by few sequence at most, redefining according to ranking results by the described inquiry used time meansigma methods of all airlines All airlines described Query priority from high to low;
Using described inquiry used time meansigma methods corresponding for each airline in described polling cycle as described time-out duration;More Described time-out duration, the described Query priority of each airline in new described query timeout configuration data table.
4. the dynamic adjusting method for inquiring about airline's information as claimed in claim 3, it is characterised in that described dynamically Method of adjustment also comprises:
S4, when inquiring about airline's information within next described polling cycle, jumps to described step S2 and inquires about.
CN201610634727.4A 2016-08-04 2016-08-04 It is a kind of for inquiring the dynamic adjusting method of airline's information Active CN106250525B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610634727.4A CN106250525B (en) 2016-08-04 2016-08-04 It is a kind of for inquiring the dynamic adjusting method of airline's information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610634727.4A CN106250525B (en) 2016-08-04 2016-08-04 It is a kind of for inquiring the dynamic adjusting method of airline's information

Publications (2)

Publication Number Publication Date
CN106250525A true CN106250525A (en) 2016-12-21
CN106250525B CN106250525B (en) 2019-09-24

Family

ID=58078317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610634727.4A Active CN106250525B (en) 2016-08-04 2016-08-04 It is a kind of for inquiring the dynamic adjusting method of airline's information

Country Status (1)

Country Link
CN (1) CN106250525B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110781219A (en) * 2019-11-04 2020-02-11 北京创鑫旅程网络技术有限公司 Air ticket query processing method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101572681A (en) * 2009-06-04 2009-11-04 中兴通讯股份有限公司 Device, system and method for dynamically configuring response time of household gateway
CN101938414A (en) * 2010-08-27 2011-01-05 北京星网锐捷网络技术有限公司 Method and device for transmitting messages
US20120239677A1 (en) * 2011-03-14 2012-09-20 Moxy Studios Pty Ltd. Collaborative knowledge management
CN103546250A (en) * 2013-09-18 2014-01-29 中标软件有限公司 Communication method and communication system for vehicular terminal
CN104298693A (en) * 2013-07-19 2015-01-21 深圳中兴网信科技有限公司 Air ticket information inquiring method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101572681A (en) * 2009-06-04 2009-11-04 中兴通讯股份有限公司 Device, system and method for dynamically configuring response time of household gateway
CN101938414A (en) * 2010-08-27 2011-01-05 北京星网锐捷网络技术有限公司 Method and device for transmitting messages
US20120239677A1 (en) * 2011-03-14 2012-09-20 Moxy Studios Pty Ltd. Collaborative knowledge management
CN104298693A (en) * 2013-07-19 2015-01-21 深圳中兴网信科技有限公司 Air ticket information inquiring method and system
CN103546250A (en) * 2013-09-18 2014-01-29 中标软件有限公司 Communication method and communication system for vehicular terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110781219A (en) * 2019-11-04 2020-02-11 北京创鑫旅程网络技术有限公司 Air ticket query processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN106250525B (en) 2019-09-24

Similar Documents

Publication Publication Date Title
CN109145020A (en) Information query method, from server, client and computer readable storage medium
CN104766188A (en) Logistics distribution method and logistics distribution system
CN109408509A (en) Date storage method, device and computer equipment
CN105978711B (en) A kind of best exchange side lookup method based on minimum spanning tree
CN105049298A (en) Method and system for monitoring cloud resource
CN106850750A (en) A kind of method and apparatus of real time propelling movement information
CN104408106A (en) Scheduling method for big data inquiry in distributed file system
CN105225121A (en) A kind of method and system realizing the full-automatic custom made clothing of O2O
CN110362380A (en) A kind of multiple-objection optimization virtual machine deployment method in network-oriented target range
CN109345158A (en) Business risk recognition methods, device and computer readable storage medium
CN106485469A (en) A kind of related need-based dynamic exciting mechanism method in position
CN106250525A (en) A kind of dynamic adjusting method for inquiring about airline's information
CN105471893A (en) Distributed equivalent data stream connection method
CN104765868A (en) Page display method for data query
CN101702668A (en) Gridding load balance system
CN103812912B (en) A kind of method and device of maintenance organization structural information
CN108536763A (en) A kind of drop-down reminding method and device
CN105721527B (en) A kind of data processing method and server
CN104469028A (en) Service provision method, conversation server and customer service system
CN106776993A (en) Recommend method and system in a kind of path based on temporal constraint activity purpose
CN107291860A (en) Seed user determines method
CN110188140A (en) Data pull method, apparatus, storage medium and computer equipment
CN104978327B (en) A kind of method, management control node and the target data node of inquiry data
CN108304504A (en) A kind of user online status method for quickly querying and system
CN105094989A (en) Self-adaption QoS granularity partition method based on fuzzy clustering

Legal Events

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