Data processing system and method based on double storage modules, medium and equipment
By adopting a dual storage module system in civil aviation flight rate calculation and using the combination of memory and database, efficient batch data processing under large data volume is achieved, data processing speed and accuracy problems are solved, and the accuracy of flight rate calculation is improved.
Patent Information
- Application Number
- CN202510438580.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-09
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2045-04-09
AI Technical Summary
In the calculation of civil aviation flight rate, the number of interactions between the data processing module and the database increases sharply when facing large data processing, affecting system performance, and insufficient data processing speed and accuracy.
A data processing system based on a dual storage module is adopted, memory is used as a second data storage module to improve read and write speed, and a database is used as a first data storage module to increase storage capacity, and data is processed in batches in memory through target query instructions and modification instructions to reduce interaction with the database.
It improves the accuracy and speed of data processing, saves computing resources, shortens processing time, and ensures the accuracy of the execution rate calculation results.
Smart Images

Figure CN120336380A_ABST
Abstract
Description
Background Art
[0002] In the calculation of the civil aviation flight execution rate, it is necessary to modify the actual flight data according to the adjustment document and then calculate the flight execution rate to obtain a more accurate flight execution rate. However, since the original actual flight data is stored in the corresponding database, during the data processing process, whether it is obtaining data from the database or storing the processed data back into the database, a one-by-one processing method is often adopted. When the data volume is small, the impact on the system performance is not obvious. However, when the volume of data to be processed is large, the number of interactions between the data processing module and the database will increase sharply.
[0003] Therefore, there is an urgent need for a reasonable way to batch process data, which can not only ensure the accuracy of data processing but also improve the data processing speed. Summary of the Invention
[0004] In view of the above technical problems, the present application provides a data processing system, method, medium, and device based on a dual storage module, which at least partially solves the problems existing in the prior art.
[0005] In the first aspect of the present application, a data processing system based on a dual storage module is provided. The system includes: a data processing module, a first data storage module, and a second data storage module; wherein:
[0006] The data processing module is configured to generate a target query instruction; wherein, the target query instruction has a corresponding target unique identifier sequence, a target departure location identifier, a target destination location identifier, a target query time period, and a target modification instruction; the target modification instruction is used to modify the original flight data and / or key flight data corresponding to the target query instruction in the first data storage module; the key flight data is obtained by modifying the original flight data with the target modification instruction;
[0007] The first data storage module is configured to store the original flight data and the key flight data updated according to the second data storage module;
[0008] A second data storage module for storing the target modification instructions sent by the data processing module; wherein, the storage space of the second data storage module is smaller than that of the first data storage module, and the read / write speed of the second data storage module is greater than that of the first data storage module; the target modification instructions are used to modify the original flight data and / or critical flight data corresponding to the target query instructions in the first data storage module when the number of target modification instructions stored in the second data storage module is less than the preset instruction number threshold and the data processing module executes the target query instructions; and when the number of target modification instructions stored in the second data storage module is equal to the preset instruction number threshold, update the original flight data corresponding to each target modification instruction stored in the first data storage module according to each target modification instruction stored in the second data storage module.
[0009] In a second aspect of the present application, a data processing method based on a dual storage module is provided, and the method includes:
[0010] S001, obtaining a target query instruction; wherein, the target query instruction has a corresponding target unique identification sequence, a target departure location identification, a target destination location identification, and a target query time period;
[0011] S002, obtaining a plurality of original flight data and / or critical flight data from the first data storage module according to the target query instruction, to obtain a first data list Y = (Y1, Y2,..., Y i ,..., Y n ); i = 1, 2,..., n; wherein, n is the number of original flight data and / or critical flight data in the first data storage module whose corresponding executed time is within the target query time period, and the unique identification sequence, the departure location identification, and the destination location identification are all correspondingly the same as the target unique identification sequence, the target departure location identification, and the target destination location identification; Y i is the i-th original flight data or critical flight data corresponding to the target query instruction in the first data storage module;
[0012] S003, if the second data storage module is not empty, obtaining a target modification instruction list X = (X1, X2,..., X d ,..., X e ); d = 1, 2,..., e; wherein, e is the number of target modification instructions included in the second data storage module; X d is the d-th target modification instruction included in the second data storage module;
[0013] S004, updating Y according to the target modification instruction, to obtain a third data list Y' = (Y1', Y2',..., Y i ',..., Y n '); wherein, Yi is Y i The updated original flight data or critical flight data; if Y i The unique identification sequence, departure location identifier, and destination location identifier corresponding to 'are the same as those of X d The corresponding unique identification sequence, departure location identifier, and destination location identifier are the same, and Y i The executed time corresponding to 'is within the modification time period of X d Then update Y according to X d to obtain Y i '; if Y i The unique identification sequence, departure location identifier, destination location identifier, and executed time corresponding to 'are different from those of X i The corresponding unique identification sequence, departure location identifier, destination location identifier, and executed time, then determine Y d ' = Y i . i .
[0014] In a third aspect of the present application, there is provided a non-transitory computer-readable storage medium storing at least one instruction or at least one program segment, and the at least one instruction or at least one program segment is loaded and executed by a processor to implement the aforementioned data processing method based on dual storage modules.
[0015] In a fourth aspect of the present application, there is provided an electronic device including a processor and the above-mentioned non-transitory computer-readable storage medium.
[0016] The present application has at least the following beneficial effects:
[0017] The data processing system based on dual storage modules provided by this application includes a data processing module, a first data storage module, and a second data storage module. Among them, the first data storage module can be a database, which is usually used for persistent storage of a large amount of data. The data is stored on non-volatile storage media such as hard disks. Even if the computer is powered off, the data will not be lost. It has a large storage capacity and can easily accommodate a vast amount of data, but the data read and write speed is relatively slow. While the second data storage module can be memory, which serves as the temporary storage area of the computer and is used to temporarily store the data and program instructions that the CPU is currently processing. Its data read and write speed is extremely fast and can interact with the CPU at a high speed, but the capacity is relatively small. The second data storage module stores the target modification instructions corresponding to the target query instructions. At this time, when the data processing module executes the corresponding target query instructions, it first filters and matches the original flight data or key flight data in the first data storage module. (That is, the original flight data and / or key flight data whose execution time is within the target query time period and whose unique identification sequence, departure location identification, and destination location identification all correspond and are the same as the target unique identification sequence, target departure location identification, and target destination location identification). At this time, if the second data storage module is not empty, it indicates that there may be some data in the first data storage module that needs to be modified. At this time, the partial data in the first data storage module is modified according to the target modification instructions in the second data storage module to obtain a third data list. Finally, the target query instructions are executed according to the third data list, and the data corresponding to the target query instructions obtained is more accurate. Therefore, the result of the subsequent flight execution rate calculation is also more accurate. The data is batch-modified, saving computing resources and shortening the processing time. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of this application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of this application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0019] Figure 1 It is the structural block diagram of the data processing system based on dual storage modules provided by the embodiments of this application;
[0020] Figure 2 It is the flowchart of the data processing method based on dual storage modules provided by the embodiments of this application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0021] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present application.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned accompanying drawings are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, system, method, product or server including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0023] It should be noted that the following describes various aspects of embodiments within the scope of the appended claims. It should be apparent that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and / or function described herein is illustrative only. Based on the present application, those skilled in the art should understand that one aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects described herein can be used to implement a device and / or practice a method. Additionally, this device and / or method can be implemented using other structures and / or functionality in addition to one or more of the aspects described herein.
[0024] Please refer to Figure 1 As shown, an embodiment of the present application provides a data processing system 100 based on a dual storage module. The system includes: a data processing module 110, a first data storage module 120, and a second data storage module 130; where:
[0025] The data processing module 110 is configured to generate a target query instruction; where the target query instruction has a corresponding target unique identification sequence, a target departure location identification, a target destination location identification, a target query time period, and a target modification instruction; the target modification instruction is used to modify the original flight data and / or key flight data corresponding to the target query instruction in the first data storage module; the key flight data is obtained by modifying the original flight data with the target modification instruction;
[0026] The first data storage module 120 is used to store the original flight data and the key flight data updated according to the second data storage module;
[0027] The second data storage module 130 is used to store the target modification instructions sent by the data processing module; wherein, the storage space of the second data storage module is smaller than that of the first data storage module, and the read / write speed of the second data storage module is greater than that of the first data storage module; the target modification instructions are used to modify the original flight data and / or key flight data corresponding to the target query instructions in the first data storage module when the number of target modification instructions stored in the second data storage module is less than the preset instruction number threshold and the data processing module executes the target query instructions; and when the number of target modification instructions stored in the second data storage module is equal to the preset instruction number threshold, update the original flight data corresponding to each target modification instruction stored in the first data storage module according to each target modification instruction stored in the second data storage module.
[0028] Specifically, the data processing system provided in this application includes a data processing module, a first data storage module, and a second data storage module. The data processing module can calculate the flight execution rate according to the user's needs. As an example, it can calculate the flight execution rate of a certain flight in a certain flight season. The flight execution rate of a certain flight in a certain flight season is the ratio of the actual number of flights of this flight in this flight season to the planned number of flights of this flight in this flight season. Among them, the actual number of flights of this flight in this flight season refers to the number of times this flight actually takes off and completes the flight according to the flight plan in this specific flight season. And the planned number of flights of this flight in this flight season refers to the number of flights planned to be executed by the airline for this flight in this flight season before the start of this specific flight season based on factors such as market demand, route planning, and resource allocation. However, during the actual execution process, the flight may be rescheduled or the number of flights may increase due to various factors. Therefore, for this flight in this flight season, there is a corresponding adjustment file, which records the time periods during which this flight has been rescheduled or the number of flights has increased in this flight season.
[0029] In addition, to improve the accuracy of flight execution rate calculation, it is necessary to modify some relevant original flight data according to the adjustment file. As an example: Flight A is scheduled to fly on Mondays, Wednesdays, and Fridays every week during the flight season from March 2024 to September 2024. However, due to certain reasons, during a certain week between March 2024 and September 2024, Flight A was adjusted to fly on Tuesdays, Thursdays, and Saturdays (recorded in the adjustment file), and Flight A also flew normally on Tuesdays, Thursdays, and Saturdays during that week. At this time, when calculating the flight execution rate of Flight A during the flight season from March 2024 to September 2024, if the actual flight data in the adjusted week is not modified to Mondays, Wednesdays, and Fridays, these three flight execution data will be omitted. Therefore, it is necessary to adjust the actual flight data in the adjusted week back to Tuesdays, Thursdays, and Saturdays. Therefore, the modification of some relevant original flight data according to the adjustment file in this embodiment is as described in the above example.
[0030] When generating the target query instruction, the data processing module can, according to each original flight data corresponding to the target query instruction, if there is matching adjustment data in the adjustment file, obtain the corresponding original flight data in the first data storage module and generate the corresponding target modification instruction. That is, each target query instruction has a corresponding target modification instruction. After the corresponding target modification instruction is executed, the data correction is completed. At this time, the data query result obtained according to the corrected data is more accurate, and the final flight execution rate calculation result is also more accurate.
[0031] Furthermore, the first data storage module in this embodiment can be a database. A database is usually used to persistently store a large amount of data. The data is stored on non-volatile storage media such as hard disks. Even if the computer is powered off, the data will not be lost. It has a large storage capacity and can easily accommodate a large amount of data, but the data reading and writing speed is relatively slow. The first data storage module is used to store the original flight data, planned flight data, and adjustment files corresponding to multiple flights. Among them, the original flight data is the actual flight data. Each flight data can include multiple fields. As an example: it includes information such as flight number, airport identification of the departure airport, airport identification of the arrival airport, actual flight date, and corresponding actual flight time.
[0032] The second data storage module is memory. As the temporary storage area of the computer, memory is used to temporarily store the data and program instructions that the CPU is currently processing. It has an extremely fast data reading and writing speed and can interact with the CPU at high speed, but its capacity is relatively small. In this embodiment, the second data storage module stores the target modification instruction corresponding to the target query instruction. At this time, when the data processing module executes the corresponding target query instruction, it first filters and matches the original flight data or key flight data in the first data storage module. (That is, the original flight data and / or key flight data whose execution time is within the target query time period and whose unique identification sequence, departure place identification, and destination place identification all correspond to the target unique identification sequence, target departure place identification, and target destination place identification). At this time, if the second data storage module is not empty, it means that some data in Y may need to be modified. At this time, part of the data in the first data storage module is modified according to the target modification instruction in the second data storage module to obtain the third data list. Finally, the target query instruction is executed according to the third data list, and the data corresponding to the target query instruction is obtained more accurately. Therefore, the result of the subsequent flight execution rate calculation is also more accurate.
[0033] In an exemplary embodiment of the present application, each piece of original flight data and each piece of key flight data have corresponding unique identification sequences, departure place identifications, destination place identifications, and execution times; each target modification instruction has a corresponding unique identification sequence, departure place identification, destination place identification, and modification time period; the data processing module is used to perform the following steps:
[0034] S110, obtain a target query instruction; wherein, the target query instruction has a corresponding target unique identification sequence, target departure place identification, target destination place identification, and target query time period.
[0035] Each piece of original flight data and each piece of key flight data have corresponding unique identification sequences, departure place identifications, destination place identifications, and execution times. The unique identification sequence can be a flight number, the departure place identification can be the airport identification of the departure airport, the destination place identification can be the airport identification of the landing airport, and the execution time can be the execution time of the flight.
[0036] Here, the target query instruction is the query instruction determined by the data processing module according to the user's needs. As an example: the target query instruction can be to obtain the actual flight data of flight A from airport A to airport B from March 2024 to September 2024. Here, the target query instruction has a corresponding target unique identification sequence, target departure place identification, target destination place identification, and target query time period.
[0037] S120. Obtain a number of original flight data and / or key flight data from the first data storage module according to the target query instruction, and obtain the first data list Y = (Y1, Y2,..., Y i ,..., Y n ); i = 1, 2,..., n; where n is the number of original flight data and / or key flight data in the first data storage module whose corresponding executed time is within the target query time period, and the unique identification sequence, departure place identification, and destination place identification are all correspondingly the same as the target unique identification sequence, target departure place identification, and target destination place identification; Y i is the i-th original flight data or key flight data corresponding to the target query instruction in the first data storage module.
[0038] Specifically, each original flight data and / or key flight data in the first data list is the original flight data and / or key flight data in the first data list whose corresponding executed time is within the target query time period, and the unique identification sequence, departure place identification, and destination place identification are all correspondingly the same as the target unique identification sequence, target departure place identification, and target destination place identification.
[0039] S130. If the second data storage module is not empty, then obtain the target modification instruction list X = (X1, X2,..., X d ,..., X e ); d = 1, 2,..., e; where e is the number of target modification instructions included in the second data storage module; X d is the d-th target modification instruction included in the second data storage module.
[0040] S140. Update Y according to the target modification instruction to obtain the third data list Y' = (Y1', Y2',..., Y i ',..., Y n '); where Y i ' is the original flight data or key flight data after Y i is updated; if the unique identification sequence, departure place identification, and destination place identification corresponding to Y i ' are correspondingly the same as those corresponding to X d , and the executed time corresponding to Y i ' is within the modification time period corresponding to X d ; then update Y d according to X i to obtain Y i '; if the unique identification sequence, departure place identification, destination place identification, and executed time corresponding to Y i ' are all different from those corresponding to X d , then determine Yi ’ = Y i 。
[0041] S150. Execute the target query instruction according to Y'.
[0042] In this embodiment, the second data storage module stores the target modification instruction corresponding to the target query instruction. At this time, when the data processing module executes the corresponding target query instruction, it first filters and matches the original flight data or key flight data in the first data storage module. (That is, the original flight data and / or key flight data whose execution time is within the target query time period and whose unique identification sequence, departure place identification, and destination identification all correspond to and are the same as the target unique identification sequence, target departure place identification, and target destination identification). At this time, if the second data storage module is not empty, it means that some data in Y may need to be modified. At this time, part of the data in the first data storage module is modified according to the target modification instruction in the second data storage module to obtain a third data list. Finally, the target query instruction is executed according to the third data list, and the data corresponding to the target query instruction is more accurate, so the result of the subsequent flight execution rate calculation is also more accurate.
[0043] In an exemplary embodiment of the present application, the second data storage module 130 is further configured to store key flight data obtained according to the data processing module 110; wherein, the storage space of the second data storage module 130 is smaller than the storage space of the first data storage module 120, and the read / write speed of the second data storage module 130 is greater than the read / write speed of the first data storage module 120; the second data storage module 130 has a corresponding preset data quantity threshold; each key flight data in the second data storage module 130 has a corresponding original flight data or key flight data in the first data storage module 120; if the quantity of the key flight data stored in the second data storage module 130 is equal to the preset data quantity threshold, the original flight data corresponding to each key flight data stored in the second data storage module 130 is updated in the first data storage module 120.
[0044] In this embodiment, the second data storage module is used to store the critical flight data obtained according to the data processing module. Here, the critical flight data is the flight data obtained by modifying the original flight data according to the above adjustment file. Therefore, each piece of critical flight data in the second data storage module has a corresponding original flight data in the first data storage module. And the storage space of the memory is smaller than that of the database. The second data storage module also has a corresponding preset data quantity threshold. As an example, the preset data quantity threshold is 1000. That is, whenever the number of pieces of critical flight data stored in the second data storage module is equal to 1000, the critical flight data stored in the second data storage module is written back to the first data storage module. That is, the original flight data corresponding to each piece of critical flight data is updated.
[0045] It should be noted that, as can be seen from the above, the first data storage module stores not only the original flight data but also the critical flight data, and the critical flight data here comes from the second data storage module.
[0046] In summary, compared with the prior art, this embodiment sets up a second data storage module, that is, uses the temporarily set memory space to reduce the number of interactions between the data processing module and the database. Since the data reading and writing speed of the memory is extremely fast compared with the database, the overall data processing time is reduced and the data processing speed is improved.
[0047] In an exemplary embodiment of the present application, each original flight data and each critical flight data have corresponding unique identification sequences, departure location identifications, destination location identifications, and execution times; after step S120, the data processing module is used to perform the following steps:
[0048] S160, obtain a number of critical flight data from the second data storage module according to the target query instruction, and obtain the second data list E=(E1, E2,..., E j ,…, E m ); j = 1, 2,..., m; m is the number of critical flight data in the second data storage module whose corresponding execution time is within the target query time period, and the unique identification sequence, departure location identification, and destination location identification are all corresponding and identical to the target unique identification sequence, target departure location identification, and target destination location identification; E j is the jth critical flight data corresponding to the target query instruction in the second data storage module; m ≤ n.
[0049] S170, if E is not empty, then update Y according to E to obtain the third data list Y'=(Y1', Y2',..., Y i ',…, Y n '); where, Y i ' is the ith original flight data and / or critical flight data; if Yi 'The corresponding unique identification sequence, departure location identification, destination identification and elapsed time are the same as E j If the corresponding unique identification sequence, departure location identification, destination identification and elapsed time are the same, then determine Y i '=E j If Y i 'The corresponding unique identification sequence, departure location identification, destination identification and execution time are different from each key flight data in E, then Y i '=Y i ; The third data list is used to process the target query instruction.
[0050] Specifically, since each time the data processing module modifies the data, the key flight data obtained is first stored in the second data storage module, the data in the second data storage module is more accurate than the data in the second data storage module. For example, the original flight data of flight A from Airport A to Airport B on May 18, 2024 is stored in the first data storage module, but due to the record of the adjustment file, May 18, 2024 should be modified to May 17, 2024. The key flight data obtained after the modification of this original flight data may be stored in the second data storage module. And the ID corresponding to this data has not been changed (unique identification sequence, departure place identification, destination identification and execution time), therefore, if there is data with the same ID in the second data storage module and the first data storage module at the same time, the corresponding data in the obtained third data list adopts the corresponding data in the second data storage module. Thus, an updated third data list is obtained, wherein the third data list may contain some original flight data from the first data storage module, which has not been modified; and there may also be some key flight data from the first data storage module, which has been modified by the data processing module, and falls back to the first data storage module after the storage of the second data storage module reaches the upper limit. At this time, the data does not exist in the second data storage module; in addition, there may also be some key flight data from the second data storage module, which has been modified by the data processing module and temporarily stored in the second data storage module, and has not yet fallen back to the first data storage module, but in the first data storage module, there are corresponding original flight data or key flight data (modified once and again). Therefore, for this part of the data, the data in the second data storage module should be trusted.
[0051] The method provided in this embodiment makes the query result, that is, the third data list, more accurate and can accurately identify the modified data, so that the query result finally returned is more accurate and the subsequent calculation results are also more accurate.
[0052] In an exemplary embodiment of the present application, the second data storage module is further configured to store the calculation result data obtained by the data processing module through the execution rate calculation process.
[0053] In an exemplary embodiment of the present application, each piece of original flight data or critical flight data includes several fields; the second data storage module is further configured to perform the following steps:
[0054] S210, in response to detecting that the number of critical flight data stored in the second data storage module is equal to the preset data quantity threshold, obtain each piece of critical flight data in the second data storage module to obtain a critical flight data list G = (G1, G2,..., G x ,..., G y ); x = 1, 2,..., y; where y is the preset data quantity threshold corresponding to the second data storage module; G x is the x-th piece of critical flight data stored in the second data storage module.
[0055] Specifically, each piece of original flight data or critical flight data includes several fields; if it is detected that the number of critical flight data stored in the second data storage module is equal to the preset data quantity threshold, it indicates that the space of the second data storage space has been fully occupied at this time. At this time, it is necessary to transfer the critical flight data stored in the second data storage module back to the first data storage module with a larger storage space.
[0056] S220, according to G, obtain several first critical clustering clusters to obtain a first clustering cluster list YJ = (YJ1, YJ2,..., YJ a ,..., YJ b ); a = 1, 2,..., b; where b is the number of first critical clustering clusters; YJ a is the cluster identifier of the a-th first critical clustering cluster; all the field identifiers of the modified fields of the critical flight data included in YJ a are the same.
[0057] Specifically, what is stored in the second data storage module is the updated data obtained after being modified according to the target modification instruction. Here, the data can be full-scale data, that is, the entire data is replaced, or only the modified fields are stored. Furthermore, clustering is performed according to the field identifiers of the modified fields, that is, first, the critical flight data that has modified the same field is clustered into one category. Those that have modified the departure airport are grouped into one category, and those that have modified the execution date are grouped into one category.
[0058] S230, according to YJ, obtain a second critical clustering cluster list set EJ = (EJ1, EJ2,..., EJ a ,..., EJ b ); where EJa A list of second critical clustering clusters obtained by clustering all critical flight data within the a-th first critical clustering cluster; EJ a =(EJ a,1 , EJ a,2 , …, EJ a,c , …, EJ a,f(a) ); c = 1, 2, …, f(a); f(a) is the number of second critical clustering clusters corresponding to EJ a ; EJ a,c is the cluster identifier of the c-th second critical clustering cluster obtained by clustering all critical flight data within the a-th first critical clustering cluster; EJ a,c The values of the modified fields of all critical flight data included therein are the same.
[0059] Furthermore, after the first clustering, secondary clustering is performed within each first critical clustering cluster. The secondary clustering clusters those that have modified the same field and have the same field value after modification into one class.
[0060] S240. According to EJ, obtain a data update instruction list set ZG = (ZG1, ZG2, …, ZG a , …, ZG b ); where ZG a is the data update instruction list corresponding to EJ a ; ZG a =(ZG a,1 , ZG a,2 , …, ZG a,c , …, ZG a,f(a) ); ZG a,c is the data update instruction corresponding to EJ a,c ; The data update instructions corresponding to any two second critical clustering clusters are different.
[0061] Here, each second critical clustering cluster has a corresponding data update instruction, and this data update instruction is used to control the modification of each data corresponding to the above critical flight data in the first data storage module.
[0062] S250. According to ZG, update the original flight data and / or critical flight data stored in the first data storage module.
[0063] In this embodiment, for a class of critical flight data that has modified the same field and has the same field value after modification, a modification instruction is generated, which reduces the occupation of computing resources and improves the efficiency of data update.
[0064] In an exemplary embodiment of the present application, the second data storage module is further configured to perform the following steps:
[0065] S260, if the number of critical flight data stored in the second data storage module is less than the preset data quantity threshold, and the second data storage module receives a target modification instruction from the data processing module; wherein, the target modification instruction has a corresponding unique identification sequence, a departure location identification, a destination location identification, and a modification time period; and the target modification instruction has a corresponding field to be modified and a modification value corresponding to the field to be modified; each critical flight data has a corresponding unique identification sequence, a departure location identification, a destination location identification, and an execution time.
[0066] S270, obtain the list of target critical flight data MG = (MG1, MG2,..., MG x ,..., MG y ); x = 1, 2,..., y; where y is the number of target critical flight data corresponding to the target modification instruction in the second data module; MG x is the x-th target critical flight data corresponding to the target modification instruction in the second data module; the unique identification sequence, the departure location identification, and the destination location identification of the target critical flight data are respectively the same as those of the target modification instruction; and the execution time of the target critical flight data is within the modification time period corresponding to the target modification instruction, and the modification value corresponding to the field to be modified of the target modification instruction is different from the value of the key field corresponding to the target critical flight data; the key field is the same field as the field to be modified corresponding to the target modification instruction.
[0067] S280, modify the value of the key field corresponding to each target critical flight data in MG according to the modification value of the field to be modified corresponding to the target modification instruction, so that the value of the key field corresponding to each target critical flight data is the same as the modification value of the field to be modified corresponding to the target modification instruction.
[0068] In this embodiment, in some special cases, when the critical flight data is still stored in the second data storage module and has not fallen into the first data storage module, the modified critical flight data may be modified a second time. At this time, modify the critical flight data in the cache, so that when the critical flight data in the second data storage module falls back to the first data storage module, a corresponding modification instruction is generated to modify the original flight data or critical flight data in the first data storage module, so as to save resource occupancy and avoid frequent interaction between the data processing module and the database (the first data storage module). Save data processing time.
[0069] In an exemplary embodiment of the present application, the second data storage module is provided with a first storage unit and a second storage unit; wherein, the first storage unit is used to store calculation result data and original flight data not included in the first data storage module; the second storage unit is used to store key flight data obtained according to the data processing module.
[0070] Specifically, the calculation result data and the original flight data not included in the first data storage module are new data for the first data storage module, while the key flight data obtained according to the data processing module is modified data for the first data storage module. In the second data storage module of this embodiment, the new data and the modified data are stored separately, and when all the new data in the first storage unit falls into the first data storage module, it corresponds to an instruction. And in one embodiment, the new data is preferentially processed.
[0071] Please refer to Figure 2 As shown, the embodiment of the present application provides a data processing method based on a dual storage module, and the method includes:
[0072] S001, obtaining a target query instruction; wherein, the target query instruction has a corresponding target unique identification sequence, a target departure place identification, a target destination identification, and a target query time period.
[0073] S002, obtaining a plurality of original flight data and / or key flight data from the first data storage module according to the target query instruction, and obtaining a first data list Y=(Y1, Y2,..., Y i ,..., Y n ); i = 1, 2,..., n; wherein, n is the number of original flight data and / or key flight data in the first data storage module whose corresponding executed time is within the target query time period, and the unique identification sequence, the departure place identification, and the destination identification are all correspondingly the same as the target unique identification sequence, the target departure place identification, and the target destination identification; Y i is the i-th original flight data or key flight data corresponding to the target query instruction in the first data storage module.
[0074] S003, if the second data storage module is not empty, obtaining a target modification instruction list X=(X1, X2,..., X d ,..., X e ); d = 1, 2,..., e; wherein, e is the number of target modification instructions included in the second data storage module; X d is the d-th target modification instruction included in the second data storage module.
[0075] S004. Update Y according to the target modification instruction to obtain a third data list Y’ = (Y1’, Y2’, …, Y i ’, …, Y n ’); where Y i ’ is the updated original flight data or critical flight data; if the unique identification sequence, departure location identification, and destination location identification corresponding to Y i ’ are the same as those corresponding to X i and the execution time corresponding to Y d ’ is within the modification time period corresponding to X i ; then update Y d according to X d to obtain Y i ’; if the unique identification sequence, departure location identification, destination location identification, and execution time corresponding to Y i ’ are all different from those corresponding to X i ; then determine that Y d ’ = Y i . i .
[0076] S005. Execute the target query instruction according to Y’.
[0077] In an exemplary embodiment of the present application, an electronic device capable of implementing the above method is also provided.
[0078] Those skilled in the art of the present application can understand that various aspects of the present application can be implemented as a system, method, or program product. Therefore, various aspects of the present application can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which can be collectively referred to as “circuitry”, “module” or “system” here.
[0079] The electronic device according to this embodiment of the present application. The electronic device is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present application.
[0080] The electronic device is presented in the form of a general-purpose computing device. The components of the electronic device may include, but are not limited to: at least one of the above-mentioned processors, at least one of the above-mentioned memories, and a bus connecting different system components (including the memory and the processor).
[0081] Among them, the memory stores program code, and the program code can be executed by the processor, so that the processor executes the steps according to various exemplary embodiments of the present application described in the above “Exemplary Method” section of this specification.
[0082] The memory may include a readable medium in the form of volatile memory, such as random access memory (RAM) and / or cache memory, and may further include read only memory (ROM).
[0083] The memory may also include a program / utility having a set (at least one) of program modules, such program modules including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may include an implementation of a network environment.
[0084] The bus may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus structures.
[0085] The electronic device may also communicate with one or more external devices (such as a keyboard, a pointing device, a Bluetooth device, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device, and / or may communicate with any device that enables the electronic device to communicate with one or more other computing devices (such as a router, a modem, etc.). Such communication may be through an input / output (I / O) interface. Also, the electronic device may communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter. As shown, the network adapter communicates with other modules of the electronic device through the bus. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0086] Through the description of the above embodiments, those skilled in the art can easily understand that the example embodiments described herein can be implemented by software, or can be implemented by a combination of software and necessary hardware. Therefore, the technical solutions according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present application.
[0087] In an exemplary embodiment of the present application, a computer-readable storage medium is further provided, on which a program product capable of implementing the above methods of this specification is stored. In some possible implementation manners, various aspects of the present application can also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary embodiments of the present application described in the above "Exemplary Method" section of this specification.
[0088] The program product can adopt any combination of one or more readable media. The readable media can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0089] The computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries the readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable signal medium can also be any readable medium other than the readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.
[0090] The program code contained on the readable medium can be transmitted by any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0091] The program code for performing the operations of this application can be written in any combination of one or more programming languages. The programming languages include object-oriented programming languages such as Java, C++, etc., and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, executed as a stand-alone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., by using an Internet service provider to connect through the Internet).
[0092] In addition, the above-mentioned drawings are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present application, rather than for limiting purposes. It is easy to understand that the processes shown in the above-mentioned drawings do not indicate or limit the chronological order of these processes. Additionally, it is also easy to understand that these processes can be executed synchronously or asynchronously in, for example, multiple modules.
[0093] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, such a division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of the two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0094] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present application should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A data processing system based on a dual storage module, characterized in that Including: A data processing module, configured to generate a target query instruction; wherein, the target query instruction has a corresponding target unique identification sequence, a target departure location identification, a target destination location identification, a target query time period, and a target modification instruction; the target modification instruction is used to modify the original flight data and / or critical flight data corresponding to the target query instruction in the first data storage module; the critical flight data is obtained after the original flight data is modified by the target modification instruction; A first data storage module, configured to store the original flight data and the critical flight data updated according to the second data storage module; A second data storage module, configured to store the target modification instruction sent by the data processing module; wherein, the storage space of the second data storage module is smaller than that of the first data storage module, and the read / write speed of the second data storage module is greater than that of the first data storage module; the target modification instruction is used to modify the original flight data and / or critical flight data corresponding to the target query instruction in the first data storage module when the number of target modification instructions stored in the second data storage module is less than the preset instruction number threshold and the data processing module executes the target query instruction; and when the number of target modification instructions stored in the second data storage module is equal to the preset instruction number threshold, update the original flight data corresponding to each target modification instruction stored in the first data storage module according to each target modification instruction stored in the second data storage module.
2. The data processing system based on a dual storage module according to claim 1, wherein Each original flight data and each critical flight data have a corresponding unique identification sequence, a departure location identification, a destination location identification, and an executed time; each target modification instruction has a corresponding unique identification sequence, a departure location identification, a destination location identification, and a modification time period; the data processing module is configured to perform the following steps: S110, obtain the target query instruction; wherein, the target query instruction has a corresponding target unique identification sequence, a target departure location identification, a target destination location identification, and a target query time period; S120. Obtain a number of original flight data and / or critical flight data from the first data storage module according to the target query instruction, and obtain the first data list Y = (Y1, Y2,..., Y i ,..., Y n ); i = 1, 2,..., n; where n is the number of original flight data and / or critical flight data in the first data storage module whose corresponding executed time is within the target query time period, and the unique identification sequence, departure place identification, and destination identification are all correspondingly the same as the target unique identification sequence, target departure place identification, and target destination identification; Y i is the i-th original flight data or critical flight data corresponding to the target query instruction in the first data storage module; S130. If the second data storage module is not empty, obtain the target modification instruction list X = (X1, X2,..., X d ,..., X e ); d = 1, 2,..., e; where e is the number of target modification instructions included in the second data storage module; X d is the d-th target modification instruction included in the second data storage module; S140, update Y according to the target modification instruction to obtain the third data list Y'=(Y1', Y2',..., Y i ',..., Y n '); where Y i ' is the updated original flight data or key flight data; if the unique identification sequence, departure location identification, and destination location identification corresponding to Y i ' are the same as those corresponding to X i ', and the executed time corresponding to Y d ' is within the modification time period corresponding to X i '; then update Y d according to X d to obtain Y i '; if the unique identification sequence, departure location identification, destination location identification, and executed time corresponding to Y i ' are all different from those corresponding to X i ', then determine Y d ' = Y i ; i ; S150, execute the target query instruction according to Y'.
3. The data processing system based on a dual storage module according to claim 2, wherein The second data storage module is further configured to store the critical flight data sent by the data processing module; wherein, the second data storage module has a corresponding preset data number threshold; each critical flight data in the second data storage module has a corresponding original flight data or critical flight data in the first data storage module; if the number of critical flight data stored in the second data storage module is equal to the preset data number threshold, update the original flight data corresponding to each critical flight data stored in the first data storage module according to each critical flight data stored in the second data storage module.
4. The data processing system based on a dual storage module according to claim 3, wherein After step S120, the data processing module is further configured to perform the following steps: S160. Obtain a number of key flight data from the second data storage module according to the target query instruction, and obtain the second data list E = (E1, E2, …, E j , …, E m ); j = 1, 2, …, m; m is the quantity of key flight data in the second data storage module whose corresponding executed time is within the target query time period, and whose unique identification sequence, departure location identification, and destination location identification are all correspondingly the same as the target unique identification sequence, target departure location identification, and target destination location identification; E j is the j-th key flight data corresponding to the target query instruction in the second data storage module; m ≤ n; S170. If E is not empty, update Y according to E to obtain a third data list Y' = (Y1', Y2', …, Yi', …, Yn'); where Yi' is the i-th original flight data and / or critical flight data; if the unique identification sequence, departure location identification, destination location identification, and executed time corresponding to Yi' are the same as those of each critical flight data in E, then determine Yi' = E; if the unique identification sequence, departure location identification, destination location identification, and executed time corresponding to Yi' are different from those of each critical flight data in E, then Yi' = Yi; the third data list is used to process the target query instruction. i ’ n ’ i ’ is the i-th original flight data and / or critical flight data; if the unique identification sequence, departure location identification, destination location identification, and executed time corresponding to Yi i ’ are the same as those of the unique identification sequence, departure location identification, destination location identification, and executed time in E j , then determine Yi i ’ = E j ; if the unique identification sequence, departure location identification, destination location identification, and executed time corresponding to Yi i ’ are different from those of each critical flight data in E, then Yi i ’ = Yi i ; the third data list is used to process the target query instruction.
5. The data processing system based on a dual storage module according to claim 4, wherein, The first data storage module is further configured to store plan data, adjustment file data, and calculation result data; wherein, the plan data is used to calculate the flight execution rate, and the adjustment file data is used to generate a target modification instruction to modify the original flight data and / or critical flight data.
6. The data processing system based on a dual storage module according to claim 5, wherein, The second data storage module is further configured to store the calculation result data obtained by the data processing module through the execution rate calculation process.
7. A data processing method based on a dual storage module, characterized in that, The data processing method based on a dual storage module is applied to the data processing system based on a dual storage module according to any one of claims 1-2. The method includes: S001, obtaining a target query instruction; wherein, the target query instruction has a corresponding target unique identification sequence, a target departure location identification, a target destination location identification, and a target query time period; S002, obtain a number of original flight data and / or key flight data from the first data storage module according to the target query instruction, and obtain the first data list Y = (Y1, Y2,..., Y i ,..., Y n ); i = 1, 2,..., n; where n is the number of original flight data and / or key flight data in the first data storage module whose corresponding executed time is within the target query time period, and the unique identification sequence, departure place identification, and destination identification are all corresponding and identical to the target unique identification sequence, target departure place identification, and target destination identification; Y i is the i-th original flight data or key flight data corresponding to the target query instruction in the first data storage module; S003, if the second data storage module is not empty, obtain the target modification instruction list X = (X1, X2, …, X d , …, X e ); d = 1, 2, …, e; where e is the number of target modification instructions contained in the second data storage module; X d is the d-th target modification instruction contained in the second data storage module; S004, update Y according to the target modification instruction to obtain the third data list Y’ = (Y1’, Y2’, …, Y i ’, …, Y n ’); where Y i ’ is the updated original flight data or key flight data; if the unique identification sequence, departure place identification, and destination place identification corresponding to Y i ’ are the same as those corresponding to X i and the executed time corresponding to Y d ’ is within the modification time period corresponding to X i ; then update Y d according to X d to obtain Y i ’; if the unique identification sequence, departure place identification, destination place identification, and executed time corresponding to Y i ’ are all different from those corresponding to X i , then determine Y d ’ = Y i ; i S005, executing the target query instruction according to Y'.
8. A non-transitory computer-readable storage medium, characterized in that, At least one instruction or at least one segment of program is stored in the storage medium, and the at least one instruction or the at least one segment of program is loaded and executed by a processor to implement the method according to claim 7.
9. An electronic device, characterized in that, It includes a processor and the non-transitory computer-readable storage medium described in claim 8.
Citation Information
Patent Citations
Method and apparatus for storing and querying time series data, and server and storage medium thereof
CA3165340A1
Data processing method and device, computer readable storage medium and electronic equipment
CN116361358A
Data updating method, medium and electronic equipment
CN117216076A
Air traffic control dynamic flight plan fusion treatment system
CN118609428A
Associative memory system and method for flight plan modification
US20160293017A1