Data processing method, device, electronic device and storage medium
By splitting the system date into batch date and online date, the synchronization of batch tasks and online tasks is achieved, and the problem of inability to process batch tasks and online tasks at night in the existing technology is solved, and the timeliness of transaction processing is improved.
Patent Information
- Application Number
- CN202210160675.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-22
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2042-02-22
AI Technical Summary
The prior art cannot process batch tasks and online tasks simultaneously at night, resulting in the inability to meet the timeliness requirements of transaction processing.
By splitting the system logic day into batch logic day and online logic day, batch tasks and online tasks are synchronized based on these logic days.
The synchronous processing of batch data and online data is realized, and the timeliness of transaction processing and the efficiency of data processing are improved.
Smart Images

Figure CN114529263B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a data processing method, device, electronic device and storage medium. Background Art
[0002] With the progress of society and the advent of the information age, more and more industries are joining in intelligent operations and processing various data through automated computer systems. In daily data processing, it is mainly divided into batch data processing and online data processing.
[0003] The existing technology performs online data processing during the day and batch data processing at night, while turning off the online processing function. This results in the inability to process temporary online data at night. However, as the timeliness requirements for transactions become increasingly stringent, batch processing at night also requires processing of online data. At this time, the existing technology cannot meet the requirements of synchronous processing and cannot guarantee the timeliness of transaction processing. Summary of the invention
[0004] The embodiments of the present application provide a data processing method, device, electronic device and storage medium to achieve synchronous processing of batch data and online data and improve the timeliness of transaction processing.
[0005] In a first aspect, an embodiment of the present application provides a data processing method, including:
[0006] Process batch tasks among the tasks to be processed;
[0007] According to the processing results of the batch tasks, the system logical day is updated; wherein the system logical day includes the online logical day and the batch logical day;
[0008] According to the batch logic day, batch tasks are processed based on the previous day's balance data; and,
[0009] According to the online logical day, the online tasks in the pending tasks are processed based on the real-time balance data.
[0010] In a second aspect, an embodiment of the present application further provides a data processing device, including:
[0011] A task processing module is used to process batch tasks among the tasks to be processed;
[0012] The system logic day update module is used to update the system logic day according to the processing results of the batch tasks; wherein the system logic day includes the online logic day and the batch logic day;
[0013] A batch task processing module, used to process batch tasks based on the previous day's balance data according to the batch logic day; and,
[0014] The online task processing module is used to process the online tasks in the pending tasks based on the online logical day and the real-time balance data.
[0015] In a third aspect, an embodiment of the present application further provides an electronic device, including:
[0016] one or more processors;
[0017] A memory for storing one or more programs;
[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method provided in any embodiment of the present application.
[0019] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the data processing method provided in any embodiment of the present application is implemented.
[0020] The technical solution of the embodiment of the present application divides the system logical day into batch logical day and online logical day according to different tasks to be processed, so that batch tasks and online tasks can be processed synchronously according to the batch logical day and the online logical day respectively, which solves the defect of the prior art that batch tasks and online tasks cannot be processed simultaneously at night, and greatly improves the timeliness and efficiency of data processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 is a flow chart of the data processing method provided in Example 1 of the present application;
[0022] Figure 2 is a flow chart of the data processing method provided in Example 2 of the present application;
[0023] Figure 3 is a schematic diagram of a data processing method provided in Example 3 of the present application;
[0024] Figure 4 It is a structural diagram of data processing data provided in Example 4 of the present application;
[0025] Figure 5 This is a structural diagram of an electronic device provided in Example 5 of the present application. DETAILED DESCRIPTION
[0026] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.
[0027] Embodiment 1
[0028] Figure 1 1 is a flow chart of a data processing method provided in Embodiment 1 of the present application. The embodiment of the present application is applicable to the case where batch tasks and online tasks are processed simultaneously. The method can be executed by a data processing device, which can be implemented by software and / or hardware and specifically configured in an electronic device.
[0029] refer to Figure 1 The data processing method shown specifically includes the following steps:
[0030] S110: Processing batch tasks among the tasks to be processed.
[0031] Among them, the tasks to be processed may include but are not limited to batch tasks and online tasks. Batch tasks can be the automated processing of necessary data according to preset rules. Taking the data processing in the operation of a bank as an example, batch tasks can include but are not limited to product business expiration processing, daily balance processing, interest accrual, accounting, report generation, etc.; online tasks can be data interactions with the bank through various channels initiated by users to the bank, such as counter business, ATM business, bank card business, mobile payment business, etc.
[0032] For example, in the operation of a bank, after the daytime business is over, data processing and sorting are carried out at night, and batch tasks can be carried out at night. It should be noted that the processing of batch tasks is a necessary processing process pre-set by relevant personnel. When batch task processing begins at night, some online tasks may also appear. For example, if a user uses a bank card or mobile payment at night, the data generated at this time can be defined as an online task for processing.
[0033] S120. Update the system logical day according to the processing result of the batch task; wherein the system logical day includes the online logical day and the batch logical day.
[0034] Among them, the system logical day can be the time logic inherent in the data processing device, which is used to distinguish time, such as a timer in the memory. In addition, a time stamp can be assigned to the processed data according to the system logical day during each data processing, so as to facilitate the subsequent inspection of the data processing time. The online logical day can be the system logical day for the process of online task processing; the batch logical day can be the batch logical day for the process of batch task processing. Both the online logical day and the batch logical day can be set according to the actual natural time, can be set manually according to the experience of the technicians, or can be automatically adjusted according to the data processing situation, and the embodiments of the present application are not limited to this.
[0035] Specifically, the system logical day is updated according to the batch task processing situation. For example, the system logical day can be updated after all batch tasks are processed. The system logical day can also be updated separately according to the completion status of different types of tasks in the batch tasks. The embodiments of the present application are not limited to this.
[0036] In an optional implementation, the batch tasks include daily batch tasks and daily start batch tasks;
[0037] Accordingly, updating the system logical day according to the processing results of each batch task may include: updating the online logical day according to the completion status of the daily batch tasks; and updating the batch logical day according to the completion status of the daily batch tasks.
[0038] Among them, the day cut marks the switching of the online logical day, indicating that the online task switches from the current logical day to the next logical day, such as switching from today to tomorrow. Therefore, the day cut batch task can be a data processing task for the online logical day switching. The beginning of the day marks the switching of the batch logical day, indicating that the batch task switches from the current logical day to the next logical day, such as switching from today to tomorrow. Therefore, the beginning of the day batch task can be a data processing task for the batch logical day switching. It can be understood that switching the system logical day is also a data processing process, which can of course be processed as a batch task.
[0039] Specifically, the online logical date of each data in the online task is updated through the relevant data processing of the daily batch task; similarly, the batch logical date of each data in each batch task is updated through the relevant data processing of the daily batch task.
[0040] The technical solution of the above implementation method updates the online logical day according to the daily batch task; and updates the batch logical day according to the daily batch task. The advantage of this is that the original system logical day in the prior art can be split into two separately calculated logical days, the online logical day corresponds to the online task, and the batch logical day corresponds to the batch task, so that the online task and the batch task can be processed separately, creating a synchronous processing mechanism and providing a basis for improving data processing efficiency.
[0041] In an optional implementation, updating the online logical day according to the completion status of the daily batch tasks may include: updating the online logical day from the previous day to the current day; and updating the batch logical day according to the completion status of the daily batch tasks may include: updating the batch logical day from the previous day to the current day.
[0042] Specifically, when updating the online logical day, the logical day corresponding to the previous day is switched to the current corresponding logical day to distinguish between online tasks that respond at different times; similarly, when updating the batch logical day, the logical day corresponding to the previous day is switched to the current corresponding logical day to distinguish between batch tasks that respond at different times. It should be noted that when updating the online logical day and the batch logical day, the data update date can be recorded or updated to identify the date processed by the data. For example, the date update record of the previous day's balance data can be "previous day's balance update time", and the date update record of the real-time balance data can be "real-time balance update time".
[0043] S130. According to the batch logic day, the batch tasks are processed based on the previous day's balance data.
[0044] Among them, the balance is the available amount in the user's account at a specific time. The previous day's balance is the real-time balance of the account when the batch logic day is updated. When updating the batch logic day, the real-time balance in the account at that moment is the final balance of the previous day, that is, the previous day's balance. It can be understood that the data processing in the batch task should be calculated or counted based on the final balance of the previous day.
[0045] S140 . Process the online tasks in the pending tasks based on the online logical day and the real-time balance data.
[0046] Among them, since online tasks are temporary responses to user requests, online tasks need to perform data processing operations such as data calculation or statistics based on real-time balance data.
[0047] It should be noted that S130 and S140 may be executed simultaneously, and the above steps are for illustration only and should not be understood as limiting the execution order of S130 and S140.
[0048] In an optional implementation, the processing of batch tasks based on the balance data of the previous day according to the batch logical day may include: if the batch logical day is the previous day, processing the batch tasks according to the balance data of the previous day; and the processing of online tasks based on the real-time balance data according to the online logical day may include: if the online logical day is the current day, processing the online tasks according to the real-time balance data.
[0049] Specifically, if the batch logical date of the data record of the current batch task is the previous day, then the batch task is processed accordingly based on the previous day's balance data. If the online logical date of the data record of the current online task is the current day, then the online task is processed accordingly based on the real-time balance data.
[0050] The above implementation method processes the previous day's balance and the real-time balance separately according to the difference between the batch logical day and the online logical day, so that the batch tasks and the connection tasks can be processed synchronously without affecting each other, thereby improving the efficiency of data processing.
[0051] The technical solution of the embodiment of the present application divides the system logical day into batch logical day and online logical day according to different tasks to be processed, so that batch tasks and online tasks can be processed synchronously according to the batch logical day and the online logical day respectively, which solves the defect of the prior art that batch tasks and online tasks cannot be processed simultaneously at night, and greatly improves the timeliness and efficiency of data processing.
[0052] Embodiment 2
[0053] Figure 2 Flow chart of the data processing method provided in the second embodiment of the present application. Based on the technical solutions of the above embodiments, the present embodiment supplements the response operation of the online task request in the batch task processing process to synchronously process batch tasks and online tasks and improve data processing efficiency.
[0054] refer to Figure 2 The data processing method shown specifically includes the following steps:
[0055] S210: Processing batch tasks among the tasks to be processed.
[0056] S220. Update the system logical day according to the processing result of the batch task; wherein the system logical day includes the online logical day and the batch logical day.
[0057] S230. According to the batch logic day, the batch tasks are processed based on the previous day's balance data.
[0058] S240 . According to the online logical day, the online tasks in the pending tasks are processed based on the real-time balance data.
[0059] It should be noted that S230 and S240 may be executed simultaneously, and the above steps are for illustration only and should not be understood as limiting the execution order of S230 and S240.
[0060] S250 . In response to an online task request in the batch task processing process, the online task request is processed according to the previous day's balance update time.
[0061] Specifically, during the batch task processing, the user sends a temporary online task request to the bank through various online methods. By judging the update time of the previous day's balance, the online task request is responded to and the relevant data corresponding to the online task is processed.
[0062] In an optional implementation, processing the online task request according to the previous day's balance update time may include: if the previous day's balance update time corresponding to the online task request is the previous day, updating the previous day's balance data of the online task according to the real-time balance data of the online task.
[0063] Specifically, if the previous day balance update time of the data corresponding to the online task request is "previous day", that is, when the batch task has not been fully processed, the data corresponding to the online task is still in the previous day's state, then the real-time balance corresponding to the online task can be added to the previous day balance corresponding to the current batch task, thereby updating the previous day balance data. It is understandable that if a temporary online task responds during the batch task processing, then since the real-time balance of the online task will affect the previous day balance of the batch task, the real-time balance corresponding to the online task in this case is added to the previous day balance to update the previous day balance, thereby preventing inaccurate processing results of subsequent batch tasks.
[0064] In the above implementation, during the processing of batch tasks, the real-time balance data corresponding to the temporarily responded online task is updated to the previous day's balance data corresponding to the batch task, so that the previous day's balance can be updated in a timely manner to prevent statistical errors and other problems from occurring when the batch tasks are subsequently processed.
[0065] In an optional implementation, the data processing method may further include: processing batch tasks according to the updated previous day's balance data.
[0066] Specifically, after the previous day's balance is updated in the aforementioned implementation mode, the batch tasks are continuously processed according to the updated previous day's balance.
[0067] The technical solution of the embodiment of the present application supplements the situation in which the real-time balance of the online task updates the previous day's balance during the batch task processing, so that the previous day's balance data is updated with the real-time balance before the logical day is updated, thereby ensuring the accuracy of subsequent batch task processing.
[0068] Embodiment 3
[0069] Figure 3 This is a schematic diagram of the data processing method provided in the third embodiment of the present application. The present application embodiment is a preferred embodiment provided on the basis of the above embodiments. Taking the data processing of a bank as an example, refer to Figure 3 The data processing method shown is as follows:
[0070] After the bank closes the previous day's business, it starts batch processing. At this time, the batch logical date and the online logical date are both T (the previous day). When processing the second batch task (same-day batch cutting), the online logical date is updated first, and the online logical date is updated to T+1. The online logical date of the corresponding data of the online task that responds after this moment is updated to T+1. That is, the corresponding data of the online task that responds after this moment does not participate in the processing of the batch task whose batch logical date is T.
[0071] After processing the batch tasks at night, the final batch of the day is processed before the start of business on the same day. At this time, the batch logical date is updated to T+1. The data of the batch tasks processed after this moment should be the balance data of T+1.
[0072] It should be noted that, first of all, in the operation of the bank, the user's account corresponds to an account table. The balance field in the account table can be split into the previous day's balance and the real-time balance, and the previous day's balance update date field is added. The bank system can update the previous day's balance and the previous day's balance update date fields every day. In addition, there is an entity number identifier in the account table. The system determines which entity is being batch processed based on the entity number, and only updates the previous day's balance for the entity currently in batch processing, which will not affect the use of other entity balances. Among them, entities can be understood as different branches of a bank.
[0073] Secondly, the usage scenarios of the previous day's balance field are all after the daily batch processing of batch 2. Therefore, after batch 1 is completed, when entering batch 2, the previous day's balance field is updated. In order to avoid long-term table locking, which causes long-term online waiting and disconnection, the batch task can be processed account by account here (other methods can also be used, just for example), and the previous day's balance field is updated with the account real-time balance field, and the previous day's balance update date is updated with the online logical date.
[0074] Finally, since it is necessary to ensure that users can access the system normally during batch task processing, in order to avoid a long update time of the previous day's balance, a batch and online synchronous update strategy of the previous day's balance can be adopted here. If the previous day's balance of the account is processed in batches one by one, the user makes a transaction request online, and the transaction account's previous day's balance update date is used to make a judgment. If the previous day's balance of this account has not been processed in the batch task, then the real-time balance of this account is directly used to update the previous day's balance of the account at the end of the online task transaction, and the previous day's balance update date is updated.
[0075] Embodiment 4
[0076] Figure 4is a structural diagram of a data processing device provided in the fourth embodiment of the present application. The embodiment of the present application can be applied to the case of processing batch tasks and online tasks at the same time. The device can be implemented by software and / or hardware and can be configured in an electronic device. Figure 4 As shown, the data processing device 400 may include: a task processing module 410, a system logic daily update module 420, a batch task processing module 430 and an online task processing module 440, wherein:
[0077] The task processing module 410 is used to process batch tasks among the tasks to be processed;
[0078] The system logic day update module 420 is used to update the system logic day according to the processing result of the batch task; wherein the system logic day includes the online logic day and the batch logic day;
[0079] The batch task processing module 430 is used to process the batch tasks based on the previous day's balance data according to the batch logical day;
[0080] The online task processing module 440 is used to process the online tasks in the tasks to be processed based on the online logical day and the real-time balance data.
[0081] The technical solution of the embodiment of the present application divides the system logical day into batch logical day and online logical day according to different tasks to be processed, so that batch tasks and online tasks can be processed synchronously according to the batch logical day and the online logical day respectively, which solves the defect of the prior art that batch tasks and online tasks cannot be processed simultaneously at night, and greatly improves the timeliness and efficiency of data processing.
[0082] In an optional implementation, the batch tasks include daily batch tasks and daily start batch tasks;
[0083] Accordingly, the system logic daily update module 420 may include:
[0084] An online logical day updating unit, used to update the online logical day according to the completion status of the daily batch tasks; and
[0085] The batch logic day update unit is used to update the batch logic day according to the completion status of the batch tasks at the beginning of the day.
[0086] In an optional implementation, the online logical day updating unit may include:
[0087] An online logical day updating subunit, used to update the online logical day from the previous day to the current day; and
[0088] The batch logic daily update unit may include:
[0089] The batch logical day update subunit is used to update the batch logical day from the previous day to the current day.
[0090] In an optional implementation, the batch task processing module 430 may include:
[0091] The previous day balance processing unit is used to process batch tasks according to the previous day balance data if the batch logic date is the previous day;
[0092] as well as;
[0093] The online task processing module 440 may include:
[0094] The real-time balance processing unit is used to perform online task processing according to the real-time balance data if the online logical day is the current day.
[0095] In an optional implementation, the data processing device 400 may further include:
[0096] The synchronization processing module is used to respond to the online task request in the batch task processing process and process the online task request according to the previous day's balance update time.
[0097] In an optional implementation, the synchronization processing module may include:
[0098] The previous day balance updating unit is used to update the previous day balance data of the online task according to the real-time balance data of the online task if the previous day balance update time corresponding to the online task request is the previous day.
[0099] In an optional implementation, the previous day balance updating unit may include:
[0100] The batch task update subunit is used to process batch tasks according to the updated previous day's balance data.
[0101] The data processing device provided in the embodiments of the present application can execute the data processing method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects for executing each data processing method.
[0102] Embodiment 5
[0103] Figure 5 This is a structural diagram of an electronic device provided in Example 5 of the present application. Figure 5 A block diagram of an exemplary electronic device 512 suitable for implementing embodiments of the present application is shown. Figure 5 The electronic device 512 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0104] like Figure 5 As shown, the electronic device 512 is in the form of a general purpose computing device. The components of the electronic device 512 may include, but are not limited to: one or more processors or processing units 516, a system memory 528, and a bus 518 connecting different system components (including the system memory 528 and the processing unit 516).
[0105] Bus 518 represents 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. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0106] The electronic device 512 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 512, including volatile and non-volatile media, removable and non-removable media.
[0107] The system memory 528 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 530 and / or cache memory 532. The electronic device 512 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 534 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, often referred to as a "hard drive"). Although Figure 5 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical medium) may be provided. In these cases, each drive may be connected to bus 518 via one or more data medium interfaces. Memory 528 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present application.
[0108] A program / utility 540 having a set (at least one) of program modules 542 may be stored, for example, in the memory 528, such program modules 542 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 an implementation of a network environment. The program modules 542 generally perform the functions and / or methods of the embodiments described herein.
[0109] The electronic device 512 may also communicate with one or more external devices 514 (e.g., keyboards, pointing devices, display devices 524, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 512, and / or communicate with any device that enables the electronic device 512 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 522. In addition, the electronic device 512 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 520. As shown, the network adapter 520 communicates with other modules of the electronic device 512 via a bus 518. 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 512, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0110] The processing unit 516 executes various functional applications and data processing by running at least one of the other programs among the multiple programs stored in the system memory 528, such as implementing the data processing method provided in the embodiment of the present application.
[0111] Embodiment 6
[0112] Embodiment 6 of the present application also provides a computer-readable storage medium having a computer program (or computer executable instructions) stored thereon. When the program is executed by a processor, it is used to execute the data processing method provided in the embodiment of the present application: processing batch tasks among the tasks to be processed; updating the system logical day according to the processing results of the batch tasks; wherein the system logical day includes the online logical day and the batch logical day; according to the batch logical day, processing the batch tasks based on the previous day's balance data; and, according to the online logical day, processing the online tasks among the tasks to be processed based on the real-time balance data.
[0113] The computer storage medium of the embodiment of the present application can adopt any combination of one or more computer-readable media. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive lists) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing programs, which can be used by instruction execution systems, devices or devices or used in combination with them.
[0114] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. 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. Computer-readable signal media may also be any computer-readable medium other than a computer-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.
[0115] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0116] The computer program code for performing the operation of the embodiment of the application can be written in one or more programming languages or a combination thereof, and the programming language includes object-oriented programming languages-such as Java, Smalltalk, C++, and also includes conventional procedural programming languages such as "C" language or similar programming languages. The program code can be executed completely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on the remote computer, or executed completely on the remote computer or server. In the case of a remote computer, the remote computer can include a local area network (LAN) or a wide area network (WAN) connected to the user's computer through any type of network, or, can be connected to an external computer (for example, utilizing an Internet service provider to connect through the Internet).
[0117] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims
1. A data processing method, characterized in that: include: Processing batch tasks among the tasks to be processed; the batch tasks include daily batch tasks and daily start batch tasks; According to the completion status of the daily batch task, the online logical day is updated, and according to the completion status of the daily batch task, the batch logical day is updated; According to the batch logical day, the batch tasks are processed based on the previous day's balance data; and, According to the online logic day, the online tasks in the pending tasks are processed based on the real-time balance data.
2. The method according to claim 1, characterized in that The updating of the online logical day according to the completion status of the daily batch cutting task includes: Updating the online logical day from the previous day to the current day; and, The updating of the batch logical day according to the completion status of the batch tasks at the beginning of the day includes: The batch logical day is updated from the previous day to the current day.
3. The method according to claim 2, characterized in that The processing of the batch tasks based on the previous day's balance data according to the batch logical day includes: If the batch logical date is the previous day, batch task processing is performed based on the previous day's balance data; as well as, The processing of the online task based on the online logical day and the real-time balance data includes: If the online logical day is today, the online task processing is performed according to the real-time balance data.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: In response to an online task request during batch task processing, the online task request is processed according to the previous day's balance update time.
5. The method according to claim 4, characterized in that The processing of the online task request according to the previous day balance update time includes: If the previous day balance update time corresponding to the online task request is the previous day, the previous day balance data of the online task is updated according to the real-time balance data of the online task.
6. The method according to claim 5, characterized in that The method further comprises: The batch tasks are processed according to the updated previous day's balance data.
7. A data processing device, characterized in that: include: A task processing module, used to process batch tasks among the tasks to be processed; the batch tasks include daily batch tasks and daily batch tasks; A system logic day update module, used to update the online logic day according to the completion of the daily batch task, and to update the batch logic day according to the completion of the daily batch task; A batch task processing module, used for processing the batch tasks based on the previous day's balance data according to the batch logical day; and The online task processing module is used to process the online tasks in the tasks to be processed based on the online logical day and the real-time balance data.
8. An electronic device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement a data processing method as described in any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a data processing method as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Dynamic resource assignment change method for logical partition
JP2005148875A
Analysis processing program, analysis processing method and analysis processing device
JP2017068382A