The present invention relates generally to the management of databases and more specifically to a method of accommodating in real-time large numbers of updates brought to a database while it is operational and used to serve numerous end-users.
Since they were introduced and started to be largely adopted in the 70's databases have proliferated in all sorts of domains including engineering, scientific, commercial and business applications. Their size can be anything ranging from a small database used by a single individual on a personal computer, e.g., to keep track of personal finances, to large and very large databases set up by various institutions, companies and commercial organizations to support their activity. In an all-interconnected world those large databases are also generally, if not always, made accessible to numerous remotely located end-users to query whatever information is made available by the databases.
In the airline industry, examples of such very-large databases are the ones that hold the airline fares along with the rules restricting their use. Fare databases are mainly set up by a few worldwide global distribution systems (GDSs) that provide travel services to all the actors of the travel industry including the traditional travel agencies and all sorts of other online travel service providers. Such a GDS is for example AMADEUS, a European travel service provider with headquarters in Madrid, Spain.
Those large databases have to sustain conflicting requirements. They must be operational in a 24-hour-a-day/7-day-a-week mode to sustain a worldwide business that never sleeps while they also need to constantly acquire new fares published by hundreds of large and smaller airline companies. As depicted in
Solutions that have been implemented to get around this problem include working in batch mode. That is, in one way or another, all received updates are prepared and accumulated until the database is disabled for end-users at regular intervals (e.g., each night or at scheduled intervals) to let administrators imbed all accumulated updates after which database is re-enabled and can resume answering end-user requests. This obviously however fail complying with the objective of sustaining a 24/7 mode of operation.
An alternative solution that has also been carried out is to implement a flip/flop mechanism. Two identical databases are maintained one serving to answer end-user queries while the other one is being updated. Like with the batch mode, at scheduled intervals, the roles of the databases are swapped. The obvious advantage of this solution is that there is no longer any down time for the end-users (or very little, while swapping takes place). However, none of these solutions allow propagating the incoming updates in real-time. The end-users will see the modifications only after, sometime, a long delay. Delay which essentially depends on the time interval set for the batch or flip/flop mode.
It is therefore the prime object of the invention to disclose a mechanism that allows a continuous integration of the updates received from the data providers and their propagation so that they are coherently and rapidly made available to answer queries from the end-users of the database.
Further objects, features and advantages of the present invention will become apparent to the ones skilled in the art upon examination of the following description in reference to the accompanying drawings. It is intended that any additional advantages be incorporated herein.
The invention fulfills the above objects of the invention by providing a method of integrating large volumes of updates in a database. Each individual update is comprised of a coherent set of data records supplied by a data provider. The database system includes a master file repository and an active image repository. The method comprises the steps of first obtaining for each individual update a unique modification identifier from a logistic table of the dual-repository database. The master file repository is then updated with the coherent set of data records of each uniquely identified individual update. A unique commit identifier is further obtained from the logistic table for each individual update that has been committed by the master file. The active image repository is synchronized by successively loading into the active image, in the order specified by the commit identifier, each individual update. Synchronization includes retrieving from the master file repository the coherent set of data records of each uniquely identified individual update. Finally, completion of the propagation of each individual update into the active image repository is achieved when the loading of each corresponding set of data records is committed by the active image.
Since the invention allows updates to be continuously integrated into the master file repository and propagated without delay into the active image, they are made available to the end-users of the database in real-time. Hence, end-users can start querying the updates as soon as they are committed by the active image repository while data providers possibly keep updating the master file with further updates that will be in turn soon propagated.
The invention also includes the following features:
The coherent set of data records of each individual update is stored in the master file repository in the form of one or more MF keys each comprising a meaningful minimum set of data which, in combination, serve to build the coherent set of data records.
The individual updates are loaded and stored in the active image (AI) repository in one more AI keys each comprising a meaningful minimum set of data for the end-users of the dual repository database.
One AI key comprises one or more MF keys.
The commit identifiers are attributed by the logistic table in the exact same order as the individual updates have been committed by the master file repository.
Alternatively, the commit identifiers are attributed by the logistic table on a priority basis. Priority is given, e.g., to fast-executing individual updates.
The invention also describes a database system including a first and a second repository wherein the first repository is arranged to receive updates from data providers and wherein the second repository is arranged to answer queries issued by end-users of the database system, the system comprising: a logistic table, the logistic table further including:
means for generating modification identifiers, wherein the modification identifiers are used to uniquely identified each individual update in the first repository;
means for generating commit identifiers, wherein the commit identifiers are used to control the loading of the updates into the second repository. Furthermore, the first repository of the database system is organized by MF key and the second repository is organized by AI key.
The invention also includes a computer program product stored on a computer readable storage medium, comprising computer readable code means for causing at least one computer to operate the above method of integrating large volumes of updates in a database system.
a to 5l are detailed examples used to illustrate the mode of operation of the database system.
The following detailed description of the invention refers to the accompanying drawings. While the description includes exemplary embodiments, other embodiments are possible, and changes may be made to the embodiments described without departing from the spirit and scope of the invention.
The master file or MF (210) is the container that is updated by data suppliers (220). In the exemplary context chosen to describe the invention, i.e., the airline industry and the large databases of fares maintained by various GDS's, a data supplier may be a provider of fares such as the airline tariff publishing company (ATPCO), an organization owned by a number of domestic and international airlines that collects and distributes the latest airfares of many airlines around the world on a multi-daily basis. Fares, and their application rules, provided by airlines and coded by ATPCO, are electronically transmitted for being automatically incorporated into the GDS fare databases. Another provider of fares can be an administrator or operator of the database authorized to file fares directly into the database generally through a dedicated graphic user interface (GUI) and the corresponding input application.
Whichever the sources from which data are supplied MF repository (210) is designed to facilitate data update and follow up of the changes. To this end it also contains the history of all the modifications brought to the master file.
The active image or AI (230) is the repository designed to facilitate data retrieval in response to the incoming requests issued by end-users of the database (240). For the airline industry and fare databases, end-users are the software applications that implement an ever growing number of online travel sites and providers of online travel services along with the regular travel agencies supported by the GDS's.
The chief objective of the database model of the invention is to allow a controlled and very fast propagation of high volumes of data (250) from the data suppliers (220) to the data requesters so that the end-users of the database (240) can take advantage of the changes and new offerings as soon as they are made available.
As other databases the database system of the invention is implemented as part of a computerized system including at least one computer with sufficient internal and external storing facilities (201) and processing resources to hold and operate the kind of large databases more specifically considered by the invention.
The integration of new data into the master file (305) must be done on a coherent set of data records. This is achieved by attributing to each set a modification identifier called ‘ModifID’ (362) represented by a unique number. Thus, the system of the invention can support concurrent updates of the MF since each update is uniquely identified by a ModifID
The synchronization of the two repositories (MF and AI) is controlled with the help of a commit Identifier called ‘CommitID’ (364) also represented by a unique number. The role of the CommitID is to manage the ordered loading (350) of the updates (referred to as data propagation in
ModifID's and CommitID's are hold and managed from a logistic table or LT (360) associated with the MF.
In both repositories data records are manipulated with a defined level of granularity. The master file (MF) contains the history of changes. It is organized by ‘MFkey’ (312). Each MFkey comprises a meaningful minimum set of data. For data retrieval, the active image (AI) is organized by ‘AIkey’ (332). An AIkey record generally includes a set of MFkey records. This is the meaningful minimum set of data that can be requested and fetched (235) from the AI by the end-users of the database.
In this example three updates are triggered by data suppliers (420) of the database. As a function of time (402) the updates are successively given three ModifID's by the logistic table shown in
When updates are committed by the MF repository they are attributed a unique CommitID as shown (462, 464 and 466). Depending on the execution time of the various processes involved, the CommitID's may not be necessarily attributed in the same order as the ModifID's. Hence, the loads into the active image are done in the order defined by the CommitID's so that the ModifID #3, in this example, is loaded into the AI prior to the ModifID #2 (468). The associated AIkey's included at commit time define the corresponding granularity elements of the AI.
a to 5x show a series of examples that further illustrate the use of the identifiers to allow the concurrent updating of the MF and the multi-instance processing of the loads into the AI.
In
b shows what happens when database transaction is committed (521). A first commit identifier is attributed (523) by the logistic table (LT) which refers to the two MFkey's mentioned above corresponding to the ModifID #1. Hence, the next available commit identifier becomes CommitID #2 (525)
c illustrates how the active image is synchronized so that the end-users can start seeing the new transmitted fares. From the LT, a commit identifier is pending (531) which triggers the retrieval (533) of the fares identified by the modification identifier (ModifID #1) associated with the pending commit identifier (CommitID #1). When the two MFkey's are retrieved they are loaded into the AI so that MF and AI are now synchronized (535). When the AI transaction is in turn committed (537) the new transmitted fares become available to the end-users of the database under the form of a single AIkey (539).
The operations described by
d and the two following ones describe the integration of a further fare (541) later received (502). As in previous case the new received fare is first attributed (543) a unique modification identifier (ModifID #2) before it is entered in the MF (545). Because the new fare refers to an existing MFkey, this key is updated as shown (549) to include the new fare item. The next available modification identifier is now ModifID #3 (547).
In
f is similar to
Examples continue with
As shown in
i shows a further update performed through the GUI. It concerns this time the NCE/PAR/AF/C/ MFkey (591) and ModifID #3 (593) that was previously attributed to the fare provider using the GUI interface.
j shows the commitment phase of the updates (5101) where the CommitID #4 (5103) is attributed to the transaction through the GUI, in relation with the ModifID #3.
As in previous examples the AI repository is then synchronized to the MF. As shown in
Finally, as shown in
One will notice that the last item of the AI fare list, with an application date of 30/03/08, is overridden in this last exemplary synchronization. The travel date that was set by previous synchronization (5115) shown in
The foregoing described technique of updating a database of fares in real-time indeed allows to accommodate huge numbers of fare modifications. It is not infrequent that an organization like ATPCO needs to transfer to a GDS millions of fares along with their associated rules. With the mechanism of the invention the new fares can be continuously provided, quickly integrated and made available to the end-users of the database in an elapsed time ranging from a matter of minutes to a couple of hours for the largest fare transmissions impacting several millions of fares. This is achieved while end-users still continue to interrogate the fare database and with concurrent updates possibly performed through multiple instances (typically, a few hundreds) of the direct GUI which allows authorized operators of the fare database to also update it when it is operational.
Even though the invention has been detailed above through an example involving only fares related data it will be however apparent to the ones skilled in the art that the invention can be as well carried out to integrate and propagate in real time any sort of data.
Number | Date | Country | Kind |
---|---|---|---|
08305779.4 | Nov 2008 | EP | regional |