Data updating method, medium and electronic device

By dynamically adjusting the route data update frequency according to the click data volume of the flight route and user query behavior, the problem of large resource occupation of flight data update in the existing technology is solved, and reasonable allocation of resources and timely acquisition of user data are achieved.

CN117216076BActive Publication Date: 2024-09-06MOBILE TECH COMPANY CHINA TRAVELSKY HLDG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311181334.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-13
Publication Date
2024-09-06
Estimated Expiration
2043-09-13

AI Technical Summary

Technical Problem

In the existing technology, the cached data of all flights is regularly updated at the same time interval, resulting in a large occupation of instantaneous network resources and the lack of a reasonable resource allocation method.

Method used

Based on the click data volume and user query behavior of each flight route, the update time interval of different routes is dynamically determined, and the data update frequency is optimized through the weight list and update time list to avoid resource waste and invalid updates.

Benefits of technology

By dynamically adjusting the route data update frequency, the instantaneous network resource usage is reduced, resource utilization and user experience are improved, ensuring that users can obtain accurate data in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117216076B
    Figure CN117216076B
Patent Text Reader

Abstract

The present application relates to the field of data processing technology, and in particular to a data update method, medium and electronic device, including: obtaining a first click data set within a first target time window for each flight route; determining a flight route whose corresponding click data is greater than a preset threshold as a target flight route; determining the target update number corresponding to each target flight route according to the number of click data corresponding to each target flight route; obtaining a click number list set A according to d consecutively arranged preset time periods; obtaining a weight list B according to A; determining an update time list set G according to the target update number and B corresponding to each flight route; and obtaining the updated mission data of the flight mission according to G. The present application determines the update requirements of different routes in different time periods based on historical data, thereby setting different update time intervals for different routes in different time periods, thereby reducing the probability of large instantaneous network resource occupancy.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] When querying flight information, the cache data of all flights for passengers to query are updated regularly at the same time interval. Since the interval is the same, all data are updated together each time, which occupies a large amount of instantaneous network resources. In summary, a cache data update method that can reasonably allocate network resources is urgently needed. Summary of the invention

[0003] In view of this, the present application provides a data updating method, a readable storage medium and an electronic device, which at least partially solve the technical problems existing in the prior art. The technical solution adopted by the present application is:

[0004] According to a first aspect of the present application, a data updating method is provided, comprising:

[0005] S100, obtaining click data corresponding to each flight route within a first target time window to obtain a first click data set; after a display tab of any flight task corresponding to any flight route is clicked, click data corresponding to this click is generated; the click data includes a planned task start time of the corresponding flight task;

[0006] S200, determining a flight route for which the number of corresponding click data is greater than a preset threshold as a target flight route;

[0007] S300, according to the number of click data corresponding to each target flight route, determine the target update number N1, N2, ..., Na, ..., Nb corresponding to each target flight route; a = 1, 2 ..., b; Na is the number of times the flight mission information of the ath target flight route is actively updated within the second target time window; b is the number of target flight routes;

[0008] S400, according to d consecutively arranged preset time periods, obtain a click quantity list set A = (A1, A2, ..., Aa, ..., Ab); Aa = (Aa1, Aa2, ..., Aac, ..., Aad); c = 1, 2, ..., d; wherein Aa is the click quantity list corresponding to the a-th target flight route, Aac is the number of click data whose planned task start time is within the c-th preset time period contained in the click data corresponding to the a-th target flight route; the total length of the d preset time periods is the same as the length of the second target time window mentioned above;

[0009] S500, according to A, obtain a weight list B = (B1, B2, ..., Bc, ..., Bd); wherein Bc is the weight corresponding to the cth preset time period; Bc = ∑ a=1 b Aac / ∑ c=1 d(∑ a=1 b Aac);

[0010] S600, according to N1, N2, ..., Na, ..., Nb and B, determine the update time list set G = (G1, G2, ..., Ga, ..., Gb); Ga = (Ga1, Ga2, ..., Gac, ..., Gad); wherein Ga is the update time list corresponding to the a-th target flight route; Gac is the update time of the a-th target flight route corresponding to the c-th preset time period; Gac means that at every interval Gac, the updated task data of all flight tasks whose planned task start time is within the c-th preset time period in the flight tasks corresponding to the a-th target flight route is obtained from each target data source; Gac = T / (Bc*Na); T is the length of the second target time window;

[0011] S700, according to G, obtaining updated mission data of the flight mission from a plurality of target data sources.

[0012] According to a second aspect of the present application, a non-transitory computer-readable storage medium is provided, in which at least one instruction or at least one program is stored, and the at least one instruction or at least one program is loaded and executed by a processor to implement the above-mentioned data updating method.

[0013] According to a third aspect of the present application, there is provided an electronic device comprising a processor and the above-mentioned non-transitory computer-readable storage medium.

[0014] This application has at least the following beneficial effects:

[0015] The present application first determines the target flight route that needs to be actively updated according to the click data corresponding to each flight route in the target time window. In the present application, due to the different attention and popularity of different flight routes, the popular flight routes with many user clicks and orders are regularly updated, thereby determining them as target flight routes. Secondly, the update times of each target flight route in the second target time window are determined. The second target time window here is the occurrence time of the user's query behavior or scheduled behavior in a period of time in the future starting from the current time. Since the user has different attention to the flight tasks in different time periods when querying, d consecutively arranged preset time periods are set in the second target time window in the present application, and the amount of click data of each preset time period is obtained, and then the weight of each preset time period for the second target time window is determined. The more the number of click data of a preset time period, the more the number of users who query or reserve in the preset time period. In order to enable users to obtain accurate data in time, the update time interval should be shorter, otherwise, the update time interval should be longer. This application determines the specific update requirements of different routes in different time periods based on historical data, and sets different update time intervals for different routes in different time periods, which can stagger the update times and reduce the probability of large instantaneous network resource occupancy. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0017] Figure 1 The present invention provides a flowchart of a data updating method. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0019] like Figure 1 A data updating method according to an embodiment of the present application is shown, comprising the following steps:

[0020] S100, obtaining the click data corresponding to each flight route within the first target time window, and obtaining the first click data set; after the display tab of any flight mission corresponding to any flight route is clicked, a click data corresponding to this click will be generated; the above click data includes the planned task start time of the corresponding flight mission.

[0021] Specifically, the flight route can be a flight line, the end time of the first target time window is the current time, the length of the first time window can be 24 hours, and the click data is the data generated when the display tab is clicked. Here, the click data of all flight tasks corresponding to each flight route is obtained, and then the click data of each flight route is obtained.

[0022] S200: Determine a flight route whose corresponding number of click data is greater than a preset threshold as a target flight route.

[0023] Specifically, according to the first click data set, the number of click data of each flight route is determined, and the number of click data of each flight route is compared with a preset threshold value, which can be determined based on the click data of historical data. Here, the more click data of a flight route, the more times the flight route is queried or booked, and the more attention it receives from users. All flight routes with corresponding numbers of click data greater than the preset threshold value are determined as target flight routes, and the target flight routes are flight routes that need to be actively updated regularly.

[0024] S300, according to the number of click data corresponding to each target flight route, determine the target update times N1, N2, ..., Na, ..., Nb corresponding to each target flight route; a = 1, 2, ..., b; Na is the number of times the flight mission information of the ath target flight route is actively updated within the second target time window; b is the number of target flight routes.

[0025] Specifically, for each target flight route, different update times are determined according to the number of clicks. The more clicks there are, the more times it is queried or booked, and the refresh frequency should be higher. The target update times N1, N2, ..., Na, ..., Nb corresponding to each flight route are determined by the following steps:

[0026] S310, obtaining the predicted number of flight mission association events for each target flight route within the second target time window, and obtaining the predicted total number of flight mission association events NUM1;

[0027] S320, according to the target check ratio CD1, the preset plan query ratio CD2 and NUM1, determine the total number of plan queries NUM2 for the b target flight routes within the second target time window; NUM2 = CD1*NUM1*CD2;

[0028] S330, obtaining a set of click ratios D = (D1, D2, ..., Da, ..., Db) of b target flight routes; wherein Da = NUM3a / NUM4, NUM3a is the number of click data of the ath target flight route in the first target time window; NUM4 is the total number of click data of the b target flight routes in the first target time window;

[0029] S340, based on D and NUM2, obtain N1, N2, ..., Na, ..., Nb; among which, Na = NUM2*Da.

[0030] Here, first, the predicted total number of orders NUM1 for several flight routes in the second target time window in the future is obtained, and then the total number of planned queries NUM2 for b target flight routes in the second target time window is determined according to the preset target query ratio for controlling the number of active updates, the preset plan query ratio and the above NUM1; the target query ratio is the ratio of the target query number to the target order number, the target query number is the preset number of data calls from the interface of the target data source (the server of the airline); the target order number is the number of times the user has booked air tickets; the target query ratio is a parameter for controlling the query number based on the number of orders, in order to avoid too frequent queries and waste of resources, and to ensure the reasonable allocation of resources of the entire system, the target query ratio is set, NUM1 is the total number of orders for several flight routes, and the preset plan query ratio is the plan query ratio set for b target flight routes, so NUM2 = CD1*NUM1*CD2. Then, according to the click ratio of each target flight route, N1, N2, ..., Na, ..., Nb are obtained. Thus, the total number of updates for each target flight route is determined according to the number of click data.

[0031] S400, according to d consecutively arranged preset time periods, obtain a click quantity list set A = (A1, A2, ..., Aa, ..., Ab); Aa = (Aa1, Aa2, ..., Aac, ..., Aad); c = 1, 2, ..., d; wherein Aa is the click quantity list corresponding to the a-th target flight route, Aac is the number of click data whose planned task start time is within the c-th preset time period in the click data corresponding to the a-th target flight route; the total length of the d preset time periods is the same as the length of the above-mentioned second target time window.

[0032] S500, according to A, obtain a weight list B = (B1, B2, ..., Bc, ..., Bd); wherein Bc is the weight corresponding to the cth preset time period; Bc = ∑ a=1 b Aac / ∑ c=1 d (∑a=1 b Aac).

[0033] S600, according to N1, N2, ..., Na, ..., Nb and B, determine the update time list set G = (G1, G2, ..., Ga, ..., Gb); Ga = (Ga1, Ga2, ..., Gac, ..., Gad); wherein Ga is the update time list corresponding to the a-th target flight route; Gac is the update time of the a-th target flight route corresponding to the c-th time period; Gac means that at every interval Gac, the updated task data of all flight tasks whose planned task start time in the flight tasks corresponding to the a-th target flight route is within the c-th time period is obtained from each target data source; Gac = T / (Bc*Na); T is the length of the second target time window.

[0034] Specifically, in order to further obtain the specific update time of each time period of each target flight route within the second target time window, the weight of each preset time period is determined based on the total number of clicks of the b target routes in each preset time period within the second target time window, and then the update time of each different preset time period of each target flight route is determined according to the weight of each preset time period and the total number of updates of each target flight route.

[0035] S700, according to G, obtaining updated mission data of the flight mission from a plurality of target data sources.

[0036] Specifically, each flight route has corresponding d timers, wherein any timer has a corresponding reset time. When the timing time of any timer reaches the reset time, the timing time is reset to zero and restarted.

[0037] Furthermore, the above step S700 includes:

[0038] S710, configuring the zeroing duration of the cth timer corresponding to the ath target flight route to be Gac;

[0039] S720, when any timer is reset to zero, obtaining a target flight route corresponding to the timer as a key flight route, and obtaining a preset time period corresponding to the timer as a key time period;

[0040] S730, determining a target data source having a critical flight mission as a critical data source; the critical flight mission is a flight mission whose planned mission start time is within a critical time period among all flight missions corresponding to the critical flight route;

[0041] S740, obtaining updated mission data of the key flight mission from each key data source.

[0042] Here, a timer is set. When any timer is reset to zero, the critical flight route and the corresponding critical time period are determined, and the critical flight mission within the critical time period is determined, and then the corresponding target data source is determined as the critical data source, and then the updated mission data of the critical flight mission is obtained from the key data source.

[0043] It should be noted that the target data source can be the airline's server, the flight mission can be a flight, and the flight route can be an air route, wherein each flight mission corresponds to a flight route and a target data source; each flight route corresponds to at least one flight mission and at least one target data source.

[0044] In an exemplary embodiment of the present application, after step S700, the method further includes:

[0045] S810, if a request for establishing an associated event for any flight mission is received, the first task information AD = (ADH, ADL) of the flight mission corresponding to the request for establishing an associated event is obtained; wherein ADH is the planned task start time of the flight mission corresponding to the request for establishing an associated event; and ADL is the route identifier of the flight route corresponding to the flight mission corresponding to the request for establishing an associated event.

[0046] S820, determining the preset time period corresponding to the ADH as the critical time period, and determining the ADL as the critical flight route;

[0047] S830, determining a target data source having a critical flight mission as a critical data source;

[0048] S840, obtaining updated mission data of the key flight mission from each key data source.

[0049] In this embodiment, the flight mission will also be passively updated based on certain trigger conditions. If a request to establish an associated event for any flight mission is detected (for example, a user's reservation or order request), the corresponding updated mission data is obtained from the key data source corresponding to the key flight mission. Here, when the user makes a reservation or places an order, if cached data is used instead of the latest data, it may cause the user's order or reservation to fail. Therefore, when a request to establish an associated event for any flight mission is detected (for example, a user's reservation or order request), the latest data needs to be obtained from the target data source.

[0050] In addition, since the cached data has a validity period, if an associated information query request for any flight mission is received and the current cached data of the flight mission corresponding to the associated information query request is invalid, it is necessary to obtain updated mission data from the key data source corresponding to the key flight mission to ensure that the user can query valid data.

[0051] In an exemplary embodiment of the present application, the above step S740 includes:

[0052] S741, obtaining the time LT when the mission data of the key flight mission was last updated;

[0053] S742, if the interval between LT and the current time is less than the preset time interval, then the current process is terminated, otherwise, updated mission data of the key flight mission is obtained from each key data source.

[0054] In this embodiment, if the interval between the time LT when the mission data of the critical flight mission was last updated and the current time is less than the preset time interval, it means that an update has been performed in addition to the update time point included in G. This may be because the critical flight mission receives an associated event establishment request (a user's reservation request or order request) or receives an associated information query request for any flight mission, and the current cache data of the flight mission corresponding to the associated information query request is invalid and updated. At this time, if the update continues within a time interval less than the preset time interval, resulting in a shortened update frequency, it may be an invalid update (the data before and after the update are consistent). Therefore, in order to prevent invalid updates, in this embodiment, if the interval between the time LT when the mission data of the critical flight mission was last updated and the current time is less than the preset time interval, the current process is terminated. On the contrary, if the interval between the time LT when the mission data of the critical flight mission was last updated and the current time is greater than or equal to the preset time interval, the updated mission data of the critical flight mission is obtained from each key data source.

[0055] In an exemplary embodiment of the present application, after step S700, the method further includes:

[0056] S910, if a request for establishing an associated event for any flight mission is received, the first mission information AD=(ADH, ADL) of the flight mission corresponding to the request for establishing an associated event is obtained; wherein ADH is the planned mission start time of the flight mission corresponding to the request for establishing an associated event; and ADL is the flight route corresponding to the flight mission corresponding to the request for establishing an associated event;

[0057] S920, determining a target timer according to ADH and ADL; the target timer is a timer among several timers, the corresponding flight route of which is ADL and the corresponding preset time period of which includes ADH;

[0058] S930, controlling the target timer to reset to zero.

[0059] In this embodiment, if a request for establishing an associated event for any flight mission is received, the corresponding target timer is determined, and the target timer is controlled to reset to zero. This triggers an update. In this embodiment, the time of the next update is the current reset time, and the next update is performed after the update time interval of the preset time period corresponding to the flight route corresponding to the associated event establishment request. This embodiment ensures that the update time of the same time period corresponding to the same flight route is always consistent.

[0060] In an exemplary embodiment of the present application, each target data source has its unique corresponding current remaining update number;

[0061] The above step S730 includes:

[0062] S731, determining a target data source having a critical flight mission as an intermediate data source;

[0063] S732, determining the current remaining update times corresponding to each intermediate data source as the key times;

[0064] S733, determining the intermediate data source whose corresponding key number is not 0 as the key data source;

[0065] The above step S740 includes:

[0066] S744, obtain updated mission data for key flight missions from each key data source;

[0067] S745, reducing the current remaining update times corresponding to each key data source by one.

[0068] In this embodiment, by configuring a resource token for each target data source, the resource token corresponding to each target data source has its unique corresponding current remaining update number; each time an update is triggered, the current remaining update number corresponding to the target data source is reduced by one; if the current remaining update number of the target data source is 0, the update will not be triggered even at the preset update time.

[0069] In an exemplary embodiment of the present application, the initial value of the current remaining update times corresponding to each target data source is 0;

[0070] The above method further includes:

[0071] S001, if a request for establishing an associated event for any flight mission is received, the corresponding current remaining update times are added to a preset number; the preset number is associated with CD1.

[0072] In this embodiment, if any flight mission corresponding to any target data source triggers a passive update once (an association event establishment request or an association information query request that the current cache data of the corresponding flight mission is invalid), the current remaining update times of the resource token of the target data source are increased once, and the increased number is the number corresponding to CD1, which is equivalent to a passive update behavior, and the number of updates corresponding to the target verification ratio is increased. The target verification ratio is used as the upper limit to set the number of updates for each target data source. This embodiment sets an upper limit on the number of active updates for each target data source through passive updates and target verification ratios, rather than unlimited updates, thereby ensuring a dynamic balance between active updates and passive updates and more reasonable resource allocation. It improves resource utilization and user experience.

[0073] An embodiment of the present application further provides a computer program product, which includes program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute the steps of the method according to various exemplary embodiments of the present application described above in this specification.

[0074] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0075] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can 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 can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0076] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

[0077] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.

[0078] The electronic device according to this embodiment of the present application is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0079] 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: the at least one processor mentioned above, the at least one storage device mentioned above, and a bus connecting different system components (including storage devices and processors).

[0080] The storage stores program codes, which can be executed by the processor, so that the processor executes the steps described in the above “Exemplary Method” section of this specification according to various exemplary embodiments of the present application.

[0081] The memory may include readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory, and may further include read only memory (ROM).

[0082] The storage 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 or some combination may include the implementation of a network environment.

[0083] 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 architectures.

[0084] The electronic device can also communicate with one or more external devices (such as keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable users to interact with the electronic device, and / or communicate with any device (such as routers, modems, etc.) that enables the electronic device to communicate with one or more other computing devices. This communication can be carried out through an input / output (I / O) interface. In addition, the electronic device can also communicate with one or more networks (such as local area networks (LANs), wide area networks (WANs) and / or public networks, such as the Internet) through a network adapter. As shown in the figure, the network adapter communicates with other modules of the electronic device through a bus. It should be understood that, although not shown in the figure, other hardware and / or software modules can 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.

[0085] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can 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 can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0086] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present application can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present application described in the above "Exemplary Method" section of the present specification.

[0087] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with 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.

[0088] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0089] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0090] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user 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 may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0091] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present application, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0092] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0093] The above are only specific implementations 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 a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A data updating method, It is characterized in that The method comprises: S100, obtaining click data corresponding to each flight route within a first target time window to obtain a first click data set; after a display tab of any flight task corresponding to any flight route is clicked, click data corresponding to this click is generated; the click data includes a planned task start time of the corresponding flight task; S200, determining a flight route for which the number of corresponding click data is greater than a preset threshold as a target flight route; S300, according to the number of click data corresponding to each target flight route, determine the target update number N1, N2, ..., Na, ..., Nb corresponding to each target flight route; a = 1, 2, ..., b; Na is the number of times the flight mission information of the ath target flight route is actively updated within the second target time window; b is the number of target flight routes; S400, according to d consecutively arranged preset time periods, obtain a click quantity list set A = (A1, A2, ..., Aa, ..., Ab); Aa = (Aa1, Aa2, ..., Aac, ..., Aad); c = 1, 2, ..., d; wherein Aa is the click quantity list corresponding to the a-th target flight route, Aac is the number of click data whose planned task start time is within the c-th preset time period contained in the click data corresponding to the a-th target flight route; the total length of the d preset time periods is the same as the length of the second target time window; S500, according to A, obtain a weight list B = (B1, B2, ..., Bc, ..., Bd); wherein Bc is the weight corresponding to the cth preset time period; Bc = ∑ a=1 b Aac / ∑ c=1 d (∑ a=1 b Aac); S600, according to N1, N2, ..., Na, ..., Nb and B, determine the update time list set G = (G1, G2, ..., Ga, ..., Gb); Ga = (Ga1, Ga2, ..., Gac, ..., Gad); wherein Ga is the update time list corresponding to the a-th target flight route; Gac is the update time of the a-th target flight route corresponding to the c-th preset time period; Gac means that at every interval Gac, the updated task data of all flight tasks whose planned task start time is within the c-th preset time period in the flight tasks corresponding to the a-th target flight route is obtained from each target data source; Gac = T / (Bc*Na); T is the length of the second target time window; S700, according to G, obtaining updated mission data of the flight mission from a plurality of target data sources.

2. The data updating method according to claim 1, It is characterized in that The step S300 includes: S310, obtaining the predicted number of flight mission association events for each target flight route within the second target time window, and obtaining the predicted total number of flight mission association events NUM1; S320, according to the target check ratio CD1, the preset plan query ratio CD2 and NUM1, determine the total number of plan queries NUM2 for the b target flight routes within the second target time window; NUM2 = CD1*NUM1*CD2; S330, obtaining a set of click ratios D = (D1, D2, ..., Da, ..., Db) of b target flight routes; wherein Da = NUM3a / NUM4, NUM3a is the number of click data of the ath target flight route in the first target time window; NUM4 is the total number of click data of the b target flight routes in the first target time window; S340, based on D and NUM2, obtain N1, N2, ..., Na, ..., Nb; among which, Na = NUM2*Da.

3. The data updating method according to claim 1, It is characterized in that Each target flight route has corresponding d timers, wherein any timer has a corresponding reset time. When the timing time of any timer reaches the reset time, the timing time is reset to zero and restarted. The step S700 includes: S710, configuring the zeroing duration of the cth timer corresponding to the ath target flight route to be Gac; S720, when any timer is reset to zero, obtaining a target flight route corresponding to the timer as a key flight route, and obtaining a preset time period corresponding to the timer as a key time period; S730, determining a target data source having a critical flight mission as a critical data source; the critical flight mission is a flight mission whose planned mission start time is within a critical time period among all flight missions corresponding to the critical flight route; S740, obtaining updated mission data of the key flight mission from each key data source.

4. The data updating method according to claim 3, It is characterized in that After step S700, the method further includes: S810, if a request for establishing an associated event for any flight mission is received, the first mission information AD=(ADH, ADL) of the flight mission corresponding to the request for establishing an associated event is obtained; wherein ADH is the planned mission start time of the flight mission corresponding to the request for establishing an associated event; and ADL is the route identifier of the flight route corresponding to the flight mission corresponding to the request for establishing an associated event; S820, determining the preset time period corresponding to the ADH as the critical time period, and determining the ADL as the critical flight route; S830, determining a target data source having a critical flight mission as a critical data source; S840, obtaining updated mission data of the key flight mission from each key data source.

5. The data updating method according to claim 3, It is characterized in that The step S740 includes: S741, obtaining the time LT when the mission data of the key flight mission was last updated; S742, if the interval between LT and the current time is less than the preset time interval, then the current process is terminated, otherwise, updated mission data of the key flight mission is obtained from each key data source.

6. The data updating method according to claim 3, It is characterized in that After step S700, the method further includes: S910, if a request for establishing an associated event for any flight mission is received, the first mission information AD=(ADH, ADL) of the flight mission corresponding to the request for establishing an associated event is obtained; wherein ADH is the planned mission start time of the flight mission corresponding to the request for establishing an associated event; and ADL is the flight route corresponding to the flight mission corresponding to the request for establishing an associated event; S920, determining a target timer according to ADH and ADL; the target timer is a timer among several timers, the corresponding flight route of which is ADL and the corresponding preset time period of which includes ADH; S930, controlling the target timer to reset to zero.

7. The data updating method according to claim 3, It is characterized in that Each target data source has its unique corresponding current remaining update count; The step S730 includes: S731, determining a target data source having a critical flight mission as an intermediate data source; S732, determining the current remaining update times corresponding to each intermediate data source as the key times; S733, determining the intermediate data source whose corresponding key number is not 0 as the key data source; The step S740 includes: S744, obtain updated mission data for key flight missions from each key data source S745, reducing the current remaining update times corresponding to each key data source by one.

8. The data updating method according to claim 7, It is characterized in that The initial value of the current remaining update times corresponding to each target data source is 0; The method further comprises: S001, if a request for establishing an associated event for any flight mission is received, the corresponding current remaining update times are added to a preset number; the preset number is associated with CD1.

9. A non-transitory computer-readable storage medium, wherein at least one instruction or at least one program is stored in the storage medium. It is characterized in that The at least one instruction or the at least one program is loaded and executed by the processor to implement the method according to any one of claims 1 to 8.

10. An electronic device, It is characterized in that The invention comprises a processor and the non-transitory computer-readable storage medium as claimed in claim 9.