CN112115172A - Flight data caching method and device - Google Patents

Flight data caching method and device Download PDF

Info

Publication number
CN112115172A
CN112115172A CN202011045611.XA CN202011045611A CN112115172A CN 112115172 A CN112115172 A CN 112115172A CN 202011045611 A CN202011045611 A CN 202011045611A CN 112115172 A CN112115172 A CN 112115172A
Authority
CN
China
Prior art keywords
flight
information
local database
flight data
data
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
Application number
CN202011045611.XA
Other languages
Chinese (zh)
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202011045611.XA priority Critical patent/CN112115172A/en
Publication of CN112115172A publication Critical patent/CN112115172A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Quality & Reliability (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a flight data caching method and a flight data caching device, wherein the method comprises the following steps: acquiring flight data of an airline company and caching the flight data to a local database; acquiring a query instruction input by a user, and querying flight information meeting the flight travel and flight time in the query instruction in the local database; if the flight information meeting the flight travel and flight time in the flight information query instruction does not exist in the local database, sending a flight query instruction to a flight system of the airline company; and receiving flight information which is sent by a flight system of the airline company and meets the flight travel and flight time in the query instruction. The invention can reduce the access pressure of the electronic commerce company. Meanwhile, the flight slot price information is stored locally, so that the problem flight price information is tracked, and the analysis of a third-party supplier is facilitated.

Description

Flight data caching method and device
Technical Field
The invention relates to the technical field of data processing, in particular to a flight data caching method and device.
Background
Previously, flight information was only available to airlines for query. With the development of the internet, a travel information service provider starts to appear, the travel information service provider provides travel reservation software, and an individual user can inquire flight information and select a travel route through the travel reservation software. At this time, a real-time access mode is adopted between the business booking software of the service provider and the related system of the airline company. However, the repeated inquiry requests initiated for low price bring great pressure to the business travel reservation software of the service provider and the related system of the airline company, and the problem of refusal of sale is endless due to access timeout caused by increased pressure.
AVS (the AVAILABILITATUS) message) is also adopted between the airline company and the travel information service provider to carry out flight information interaction. The AVS message is a message that the airline periodically sends to the service provider about flight information and slot information. The AVS message cannot reflect real-time changes of the cabin space, so that the situations of inaccurate cabin space, incapability of booking seats and the like often occur by simply adopting the AVS message.
Therefore, a new caching method and device are needed to ensure that when the flight inquiry system accesses the unmanaged airline related system, flight data is efficiently acquired under the condition of ensuring high accuracy, so that the response time of the flight inquiry system is increased, and the pressure of the unmanaged airline related system is relieved.
Disclosure of Invention
The invention provides a flight data caching method and device, which can efficiently acquire flight data under the condition of ensuring high accuracy, improve the response time of a flight inquiry system and reduce the pressure of a system related to an unmanaged airline company.
In order to achieve the purpose, the invention provides the following technical scheme:
in a first aspect, the present invention provides a flight data caching method, including:
acquiring flight data of an airline company and caching the flight data to a local database;
acquiring a query instruction input by a user, and querying flight information meeting the flight travel and flight time in the query instruction in the local database;
if the flight information meeting the flight travel and flight time in the flight information query instruction does not exist in the local database, sending a flight query instruction to a flight system of the airline company;
and receiving flight information which is sent by a flight system of the airline company and meets the flight travel and flight time in the query instruction.
Further, after receiving the flight information sent by the flight system of the airline company and meeting the flight itinerary and the flight time in the query instruction, the method further includes:
and updating the local database based on the received flight information meeting the flight travel and flight time in the query instruction.
Further, after the collecting flight data of the airline company and caching the flight data to a local database, the method further includes:
acquiring a deleting instruction input by a user; wherein the delete instruction comprises: target flight information;
verifying the target flight information in the deleting instruction;
and after the target flight information passes the verification, deleting the target flight information stored in the local database.
Further, after the collecting flight data of the airline company and caching the flight data to a local database, the method further includes:
according to the flight information of all users, making a batch request to a flight system of the airline company to obtain flight updating information of all users;
updating the local database based on the flight update information.
Wherein the caching the flight data to a local database comprises:
caching the flight data to a local database in a multi-level caching mode;
wherein, the multi-level cache includes: different cache regions are configured for flight data of different airlines; and reading and writing configuration is carried out according to user identity grading aiming at flight data of the same airline company; and configuring direct flight and link distinguishing read-write aiming at flight data of the same airline company.
Wherein, the read-write configuration according to the user identity classification comprises: the users are classified according to regions, cache blocks are configured on each layer, and users in different regions on the same layer correspond to different cache blocks and can be selectively set to be read in any layer in a distinguishing manner.
In a second aspect, the present invention provides a flight data caching apparatus, including:
the system comprises an acquisition unit, a local database and a database, wherein the acquisition unit is used for acquiring flight data of an airline company and caching the flight data to the local database;
the searching unit is used for acquiring a query instruction input by a user and searching the flight information meeting the flight travel and flight time in the query instruction in the local database;
the judging unit is used for sending a flight inquiry command to a flight system of the airline company if the flight information meeting the flight itinerary and the flight time in the flight information inquiry command does not exist in the local database;
and the receiving unit is used for receiving the flight information which is sent by the flight system of the airline company and meets the flight travel and the flight time in the query instruction.
Further, the method also comprises the following steps:
and the storage unit is used for updating the local database based on the received flight information meeting the flight travel and flight time in the query instruction.
Further, the method also comprises the following steps:
the acquisition unit is used for acquiring a deletion instruction input by a user; wherein the delete instruction comprises: target flight information;
the verification unit is used for verifying the target flight information in the deletion instruction;
and the deleting unit is used for deleting the target flight information stored in the local database after the target flight information passes the verification.
Further, after the collecting flight data of the airline company and caching the flight data to a local database, the method further includes:
the request unit is used for making batch requests to the flight system of the airline company according to the flight information of all the users and acquiring flight updating information of all the users;
and the updating unit is used for updating the local database based on the flight updating information.
In a third aspect, the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the flight data caching method when executing the program.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, performs the steps of the flight data caching method.
According to the technical scheme, the invention provides a flight data caching method and device, wherein flight data of an airline company are collected and cached in a local database; acquiring a query instruction input by a user, and querying flight information meeting the flight travel and flight time in the query instruction in the local database; if the flight information meeting the flight travel and flight time in the flight information query instruction does not exist in the local database, sending a flight query instruction to a flight system of the airline company; and receiving flight information which is sent by a flight system of the airline company and meets the flight travel and flight time in the query instruction. The invention can reduce the access pressure of the electronic commerce company. Meanwhile, the flight slot price information is stored locally, so that the problem flight price information is tracked, and the analysis of a third-party supplier is facilitated.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a first flowchart of a flight data caching method according to an embodiment of the present invention.
Fig. 2 is a second flow chart of the flight data caching method according to the embodiment of the invention.
Fig. 3 is a third flow chart of the flight data caching method according to the embodiment of the invention.
Fig. 4 is a fourth flowchart illustrating a flight data caching method according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a flight data caching apparatus in an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an electronic device in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides an embodiment of a flight data caching method, and referring to fig. 1, the flight data caching method specifically includes the following contents:
s101: acquiring flight data of an airline company and caching the flight data to a local database;
in this step, caching the flight data in a local database includes:
caching the flight data to a local database in a multi-level caching mode;
wherein, the multi-level cache includes: different cache regions are configured for flight data of different airlines; and reading and writing configuration is carried out according to user identity grading aiming at flight data of the same airline company; and configuring direct flight and link distinguishing read-write aiming at flight data of the same airline company.
Wherein, read-write configuration is carried out according to user identity classification, comprising: the users are classified according to regions, cache blocks are configured on each layer, and users in different regions on the same layer correspond to different cache blocks and can be selectively set to be read in any layer in a distinguishing manner.
S102: acquiring a query instruction input by a user, and querying flight information meeting the flight travel and flight time in the query instruction in the local database;
s103: if the flight information meeting the flight travel and flight time in the flight information query instruction does not exist in the local database, sending a flight query instruction to a flight system of the airline company;
s104: and receiving flight information which is sent by a flight system of the airline company and meets the flight travel and flight time in the query instruction.
In this embodiment, in the first-time use and query cache mechanism, when a user queries a flight for the first time on the same day, the system detects whether the system caches the flight slot price, and if not, queries a third-party interface to obtain different slot prices of the flight and stores the different slot prices in the system. When other users inquire the flight again, the flight slot price can be directly obtained from the local. And one inquiry is realized, and the inquiry can be used in the same day, so that the frequency of requesting a third-party interface is reduced.
In an embodiment of the present invention, referring to fig. 2, after step S104 of the flight data caching method, the following contents are specifically included:
s105: and updating the local database based on the received flight information meeting the flight travel and flight time in the query instruction.
In this embodiment, in the current employee travel system, in the morning every day, a historical employee travel itinerary is obtained from an employee's itinerary as an itinerary requested in batches. And requesting the air ticket space prices of the itineraries from the integrated platform in batches, returning various flight space prices from the integrated platform, and storing the flight space prices in a flight information cache table of the traveling system. And on the next day, when the user initiates an application, according to the itinerary, firstly obtaining the itinerary and the ticket price of the corresponding slot level in a flight slot cache table of the traveling system, if the flight slot information does not exist in the cache table, requesting the melting platform to obtain the flight slot price in real time, and simultaneously storing the searched flight slot price information in the cache table.
In an embodiment of the present invention, referring to fig. 3, after step S101 of the flight data caching method, the following contents are specifically included:
s106: acquiring a deleting instruction input by a user; wherein the delete instruction comprises: target flight information;
s107: verifying the target flight information in the deleting instruction;
s108: and after the target flight information passes the verification, deleting the target flight information stored in the local database.
In this embodiment, when the price of the air ticket returned by the financial platform is problematic, the user feeds back that the air ticket budget is problematic, and the operation and maintenance personnel at the travel terminal can query the historical flight cabin price cache information stored in the system, compare the historical flight price, locate the date on which the problem price appears, and contact the financial platform for processing. After the processing of the good-melting platform, the travel operation and maintenance personnel can delete the travel flight cache information cached at the travel end, when a user submits an application again and acquires a budget, the local cache is deleted, so that the correct budget is grabbed again by the good-melting platform and is cached locally in the travel.
In an embodiment of the present invention, referring to fig. 4, after step S101 of the flight data caching method, the following contents are specifically included:
s109: according to the flight information of all users, making a batch request to a flight system of the airline company to obtain flight updating information of all users;
s110: updating the local database based on the flight update information.
In this embodiment, in the early morning, the traversed itinerary information requests a third-party interface in batch to obtain the itinerary flight slot price, and the itinerary flight slot price is stored locally and used as the basis for the current flight price. The next day, when the user applies for a business trip, the system can locally query the flight slot price according to the journey to be used as the budget of the user for the business trip. If the journey of the user cannot be inquired in the local current-day cache, the journey can be inquired for three days in the past, and whether the journey has cabin price information in the cache or not can be judged. If yes, obtaining the cached price which can be obtained within three days, and if not, requesting a third-party interface, obtaining the price of the air ticket, and caching the price locally.
As can be seen from the above description, the flight data caching method provided in this embodiment can reduce the access pressure of the e-commerce company. Meanwhile, the flight slot price information is stored locally, so that the problem flight price information is tracked, and the analysis of a third-party supplier is facilitated.
An embodiment of the present invention provides a specific implementation manner of a flight data caching device capable of implementing all contents in the flight data caching method, and referring to fig. 5, the flight data caching device specifically includes the following contents:
the system comprises an acquisition unit 10, a local database and a database, wherein the acquisition unit is used for acquiring flight data of an airline company and caching the flight data into the local database;
the searching unit 20 is configured to obtain an inquiry instruction input by a user, and query the local database for flight information that meets the flight schedule and the flight time in the inquiry instruction;
the determining unit 30 is configured to send a flight query instruction to a flight system of the airline company if the local database does not have flight information that satisfies the flight itinerary and the flight time in the flight information query instruction;
and the receiving unit 40 is configured to receive flight information that is sent by a flight system of the airline and meets the flight schedule and the flight time in the query instruction.
Further, the method also comprises the following steps:
and the storage unit is used for updating the local database based on the received flight information meeting the flight travel and flight time in the query instruction.
Further, the method also comprises the following steps:
the acquisition unit is used for acquiring a deletion instruction input by a user; wherein the delete instruction comprises: target flight information;
the verification unit is used for verifying the target flight information in the deletion instruction;
and the deleting unit is used for deleting the target flight information stored in the local database after the target flight information passes the verification.
Further, after the collecting flight data of the airline company and caching the flight data to a local database, the method further includes:
the request unit is used for making batch requests to the flight system of the airline company according to the flight information of all the users and acquiring flight updating information of all the users;
and the updating unit is used for updating the local database based on the flight updating information.
The embodiment of the flight data caching apparatus provided by the present invention may be specifically used to execute the processing flow of the embodiment of the flight data caching method in the foregoing embodiment, and the functions of the embodiment are not described herein again, and reference may be made to the detailed description of the embodiment of the method.
As can be seen from the above description, the flight data caching device provided in the embodiment of the present invention collects flight data of an airline company and caches the flight data in the local database; acquiring a query instruction input by a user, and querying flight information meeting the flight travel and flight time in the query instruction in the local database; if the flight information meeting the flight travel and flight time in the flight information query instruction does not exist in the local database, sending a flight query instruction to a flight system of the airline company; and receiving flight information which is sent by a flight system of the airline company and meets the flight travel and flight time in the query instruction. The invention can reduce the access pressure of the electronic commerce company. Meanwhile, the flight slot price information is stored locally, so that the problem flight price information is tracked, and the analysis of a third-party supplier is facilitated.
The application provides an embodiment of an electronic device for implementing all or part of contents in the flight data caching method, where the electronic device specifically includes the following contents:
a processor (processor), a memory (memory), a communication Interface (Communications Interface), and a bus; the processor, the memory and the communication interface complete mutual communication through the bus; the communication interface is used for realizing information transmission between related devices; the electronic device may be a desktop computer, a tablet computer, a mobile terminal, and the like, but the embodiment is not limited thereto. In this embodiment, the electronic device may be implemented with reference to the embodiment for implementing the flight data caching method and the embodiment for implementing the flight data caching apparatus in the embodiments, and the contents of the embodiments are incorporated herein, and repeated details are not repeated.
Fig. 6 is a schematic block diagram of a system configuration of an electronic device 9600 according to an embodiment of the present application. As shown in fig. 6, the electronic device 9600 can include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. Notably, this FIG. 6 is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one embodiment, flight data caching functionality may be integrated into the central processor 9100. The central processor 9100 may be configured to control as follows:
acquiring flight data of an airline company and caching the flight data to a local database;
acquiring a query instruction input by a user, and querying flight information meeting the flight travel and flight time in the query instruction in the local database;
if the flight information meeting the flight travel and flight time in the flight information query instruction does not exist in the local database, sending a flight query instruction to a flight system of the airline company;
and receiving flight information which is sent by a flight system of the airline company and meets the flight travel and flight time in the query instruction.
As can be seen from the above description, the electronic device provided in the embodiments of the present application collects flight data of an airline company and caches the flight data in the local database; acquiring a query instruction input by a user, and querying flight information meeting the flight travel and flight time in the query instruction in the local database; if the flight information meeting the flight travel and flight time in the flight information query instruction does not exist in the local database, sending a flight query instruction to a flight system of the airline company; and receiving flight information which is sent by a flight system of the airline company and meets the flight travel and flight time in the query instruction. The invention can reduce the access pressure of the electronic commerce company. Meanwhile, the flight slot price information is stored locally, so that the problem flight price information is tracked, and the analysis of a third-party supplier is facilitated.
In another embodiment, the flight data caching device may be configured separately from the central processor 9100, for example, the flight data caching device may be configured as a chip connected to the central processor 9100, and the flight data caching function is realized by the control of the central processor.
As shown in fig. 6, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 also does not necessarily include all of the components shown in fig. 6; further, the electronic device 9600 may further include components not shown in fig. 6, which may be referred to in the art.
As shown in fig. 6, a central processor 9100, sometimes referred to as a controller or operational control, can include a microprocessor or other processor device and/or logic device, which central processor 9100 receives input and controls the operation of the various components of the electronic device 9600.
The memory 9140 can be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 9100 can execute the program stored in the memory 9140 to realize information storage or processing, or the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or a touch input device. Power supply 9170 is used to provide power to electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, an LCD display, but is not limited thereto.
The memory 9140 can be a solid state memory, e.g., Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 9140 could also be some other type of device. Memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage portion 9142, the application/function storage portion 9142 being used for storing application programs and function programs or for executing a flow of operations of the electronic device 9600 by the central processor 9100.
The memory 9140 can also include a data store 9143, the data store 9143 being used to store data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers for the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, contact book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via an antenna 9111. The communication module (transmitter/receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby implementing ordinary telecommunications functions. The audio processor 9130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100, thereby enabling recording locally through the microphone 9132 and enabling locally stored sounds to be played through the speaker 9131.
As can be seen from the above description, the computer-readable storage medium provided in the embodiment of the present invention collects flight data of an airline company and caches the flight data in the local database; acquiring a query instruction input by a user, and querying flight information meeting the flight travel and flight time in the query instruction in the local database; if the flight information meeting the flight travel and flight time in the flight information query instruction does not exist in the local database, sending a flight query instruction to a flight system of the airline company; and receiving flight information which is sent by a flight system of the airline company and meets the flight travel and flight time in the query instruction. The invention can reduce the access pressure of the electronic commerce company. Meanwhile, the flight slot price information is stored locally, so that the problem flight price information is tracked, and the analysis of a third-party supplier is facilitated.
Although the present invention provides method steps as described in the examples or flowcharts, more or fewer steps may be included based on routine or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual apparatus or client product executes, it may execute sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, apparatus (system) or computer program product. Accordingly, embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment. In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. The present invention is not limited to any single aspect, nor is it limited to any single embodiment, nor is it limited to any combination and/or permutation of these aspects and/or embodiments. Moreover, each aspect and/or embodiment of the present invention may be utilized alone or in combination with one or more other aspects and/or embodiments thereof.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (12)

1. A flight data caching method, comprising:
acquiring flight data of an airline company and caching the flight data to a local database;
acquiring a query instruction input by a user, and querying flight information meeting the flight travel and flight time in the query instruction in the local database;
if the flight information meeting the flight travel and flight time in the flight information query instruction does not exist in the local database, sending a flight query instruction to a flight system of the airline company;
and receiving flight information which is sent by a flight system of the airline company and meets the flight travel and flight time in the query instruction.
2. The flight data caching method according to claim 1, wherein after receiving the flight information sent by the airline flight system of the airline and satisfying the flight itinerary and the flight time in the query instruction, the method further comprises:
and updating the local database based on the received flight information meeting the flight travel and flight time in the query instruction.
3. The flight data caching method of claim 1, wherein after collecting flight data of an airline and caching the flight data into a local database, the flight data caching method further comprises:
acquiring a deleting instruction input by a user; wherein the delete instruction comprises: target flight information;
verifying the target flight information in the deleting instruction;
and after the target flight information passes the verification, deleting the target flight information stored in the local database.
4. The flight data caching method of claim 1, wherein after collecting flight data of an airline and caching the flight data into a local database, the flight data caching method further comprises:
according to the flight information of all users, making a batch request to a flight system of the airline company to obtain flight updating information of all users;
updating the local database based on the flight update information.
5. The flight data caching method of claim 1, wherein caching the flight data into a local database comprises:
caching the flight data to a local database in a multi-level caching mode;
wherein, the multi-level cache includes: different cache regions are configured for flight data of different airlines; and reading and writing configuration is carried out according to user identity grading aiming at flight data of the same airline company; and configuring direct flight and link distinguishing read-write aiming at flight data of the same airline company.
6. The flight data caching method of claim 5, wherein the read-write configuration in a hierarchy of user identities comprises: the users are classified according to regions, cache blocks are configured on each layer, and users in different regions on the same layer correspond to different cache blocks and can be selectively set to be read in any layer in a distinguishing manner.
7. A flight data caching apparatus, comprising:
the system comprises an acquisition unit, a local database and a database, wherein the acquisition unit is used for acquiring flight data of an airline company and caching the flight data to the local database;
the searching unit is used for acquiring a query instruction input by a user and searching the flight information meeting the flight travel and flight time in the query instruction in the local database;
the judging unit is used for sending a flight inquiry command to a flight system of the airline company if the flight information meeting the flight itinerary and the flight time in the flight information inquiry command does not exist in the local database;
and the receiving unit is used for receiving the flight information which is sent by the flight system of the airline company and meets the flight travel and the flight time in the query instruction.
8. The flight data caching apparatus according to claim 7, further comprising:
and the storage unit is used for updating the local database based on the received flight information meeting the flight travel and flight time in the query instruction.
9. The flight data caching apparatus according to claim 7, further comprising:
the acquisition unit is used for acquiring a deletion instruction input by a user; wherein the delete instruction comprises: target flight information;
the verification unit is used for verifying the target flight information in the deletion instruction;
and the deleting unit is used for deleting the target flight information stored in the local database after the target flight information passes the verification.
10. The flight data caching apparatus according to claim 7, further comprising, after the collecting flight data of an airline and caching the flight data in a local database:
the request unit is used for making batch requests to the flight system of the airline company according to the flight information of all the users and acquiring flight updating information of all the users;
and the updating unit is used for updating the local database based on the flight updating information.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the flight data caching method according to any one of claims 1 to 6 when executing the program.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the flight data caching method according to any one of claims 1 to 6.
CN202011045611.XA 2020-09-28 2020-09-28 Flight data caching method and device Pending CN112115172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011045611.XA CN112115172A (en) 2020-09-28 2020-09-28 Flight data caching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011045611.XA CN112115172A (en) 2020-09-28 2020-09-28 Flight data caching method and device

Publications (1)

Publication Number Publication Date
CN112115172A true CN112115172A (en) 2020-12-22

Family

ID=73798311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011045611.XA Pending CN112115172A (en) 2020-09-28 2020-09-28 Flight data caching method and device

Country Status (1)

Country Link
CN (1) CN112115172A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783908A (en) * 2021-01-04 2021-05-11 重庆周游科技有限公司 Efficient machine ticket data caching method
CN113177874A (en) * 2021-04-30 2021-07-27 北京沃东天骏信息技术有限公司 Inquiry method and inquiry system for airline department quotation data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030187851A1 (en) * 2002-04-01 2003-10-02 Diane Fay System and method for caching and utilizing flight availability data
US20080168093A1 (en) * 2007-01-05 2008-07-10 De Marcken Carl Providing travel information using a layered cache
CN105630982A (en) * 2015-12-25 2016-06-01 中国民航信息网络股份有限公司 Flight data caching method and system
CN106777311A (en) * 2016-12-30 2017-05-31 中国民航信息网络股份有限公司 Flight freight space state cache method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030187851A1 (en) * 2002-04-01 2003-10-02 Diane Fay System and method for caching and utilizing flight availability data
US20080168093A1 (en) * 2007-01-05 2008-07-10 De Marcken Carl Providing travel information using a layered cache
CN105630982A (en) * 2015-12-25 2016-06-01 中国民航信息网络股份有限公司 Flight data caching method and system
CN106777311A (en) * 2016-12-30 2017-05-31 中国民航信息网络股份有限公司 Flight freight space state cache method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783908A (en) * 2021-01-04 2021-05-11 重庆周游科技有限公司 Efficient machine ticket data caching method
CN113177874A (en) * 2021-04-30 2021-07-27 北京沃东天骏信息技术有限公司 Inquiry method and inquiry system for airline department quotation data
CN113177874B (en) * 2021-04-30 2024-05-24 北京沃东天骏信息技术有限公司 Method and system for inquiring navigation quotation data

Similar Documents

Publication Publication Date Title
CN100517293C (en) Method for extracting content, content extraction server based on RSS and apparatus for managing the same and system for providing standby screen of mobile communication terminal using the same
US8352449B1 (en) Reader device content indexing
EP3688965B1 (en) Smart advanced content retrieval
CN102780603B (en) Web traffic control method and device
US20190370800A1 (en) Method, System, and Computer Program Product for Aggregating Data from a Plurality of Sources
CN105229637A (en) The automatic generation of properties collection
WO2015126825A1 (en) Method and system for providing code scanning result information
CN108701121A (en) User's input is assigned to the multiple input domain in user interface
CN112115172A (en) Flight data caching method and device
WO2011123921A1 (en) System and method for management of electronic wallet databases
JP5297004B2 (en) Information distribution server, information distribution system, information distribution server program, and information distribution method
US20230119271A1 (en) Indexing documents in a nested hierarchy of directories
EP3905162A2 (en) Schedule management service system and method
CN112232796A (en) Management platform, determination method and device of payment channel and computer equipment
KR20210007155A (en) Network server to manage user subscription and method of operating thereof
US20110225012A1 (en) System and Method of Travel Itinerary Creation
US20210350344A1 (en) Information processing system, mobile terminal, and computer readable recording medium
US8515929B2 (en) Online propagation of data updates
KR20180007395A (en) Apparatus and method for sharing company information
KR20180085276A (en) Method for real time hotel reservation service, and a user terminal for performing the method thereof
CN101319912A (en) Client terminal and server terminal of navigation system, and map updating method
JP2009301419A (en) Point server, application program, and mobile terminal
JP2004295664A (en) Visit-supporting system, device and method, as well as program thereof
CN110782215B (en) Goods source determining method, device, equipment and storage medium
WO2014134353A1 (en) Sponsorship platform systems and methods

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