File processing method and device, electronic equipment, storage medium and product
By generating a list of files to be split and dynamically adjusting the configuration information of batch processing tasks, the problem of low file processing efficiency was solved, enabling the managed system to perform efficient file splitting and accounting processing during peak periods.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-08
- Publication Date
- 2026-03-24
AI Technical Summary
The existing document processing methods are inefficient, which puts a lot of pressure on the hosting system during peak periods, affecting the timeliness of accounting processing and failing to meet business needs.
By generating a list of files to be split, the configuration information of the batch processing task is determined, including the number of files to be processed in each batch and the time interval. The scanning frequency is dynamically adjusted, multiple files are processed in batches, the number of tasks is reduced, and the file splitting process is optimized.
It improved file splitting efficiency, reduced task waiting time, enhanced the processing capacity of the hosting system during peak periods, and met the business's need for efficient processing.
Smart Images

Figure CN115658618B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a document processing method, apparatus, electronic device, storage medium, and product. Background Technology
[0002] Currently, trading data provided by various exchanges (such as securities exchanges, commodity futures exchanges, and cryptocurrency exchanges), securities firms, futures companies, and other intermediaries are sent to the custody system in the form of files. The custody system then parses these files and breaks them down into the data required for the accounting process, which is then applied to the accounting procedures. As the volume of business continues to increase, the number of files that the custody system needs to obtain is also constantly growing.
[0003] The existing file processing method processes each file individually, requiring a separate file parsing task and a file splitting task for each file. As the number of files increases, the number of tasks to be created also increases, leading to significant processing pressure on the managed system during peak business periods. Since file processing has a higher priority than other tasks handled by the managed system, such as voucher processing, electronic reconciliation, and report generation, a large number of tasks can easily cause these other tasks to wait, severely impacting the progress of the managed system's accounting processes.
[0004] Therefore, the efficiency of existing document processing methods has become a bottleneck, seriously affecting the timeliness of daily accounting and failing to meet the needs of daily business processing. Thus, a highly efficient document splitting method is urgently needed. Summary of the Invention
[0005] This application provides a file processing method, apparatus, electronic device, storage medium, and product to solve the problem of low efficiency in file splitting in the prior art.
[0006] According to a first aspect of this application, a document processing method is provided, comprising:
[0007] Obtain multiple files to be split and generate a list of files to be split corresponding to the multiple files to be split; the entries in the list of files to be split are used to record the file types of all the files to be split and the task types of the batch processing tasks corresponding to the file types of all the files to be split;
[0008] For each batch processing task of each task type, determine the configuration information of the batch processing task; the configuration information includes: the number of files to be split in each batch processed by the batch processing task;
[0009] Based on the list of files to be split, the batch processing task is created and executed according to the configuration information to obtain the splitting results of all file types corresponding to the task type.
[0010] Optionally, after obtaining multiple files to be split, the method further includes:
[0011] Each of the files to be split is parsed, and the parsed file data is stored in a preset database table;
[0012] After parsing all the files to be split, the attribute information of all the files to be split is determined; wherein, the attribute information includes: the file type of the file to be split, and the task type of the batch processing task corresponding to the file type of the file to be split.
[0013] Optionally, the configuration information also includes the time interval for the scanner corresponding to the batch processing task to scan all file types of files to be split in the file list to be split, which correspond to the task type of the batch processing task;
[0014] The step of creating and executing the batch processing task based on the list of files to be split, according to the configuration information, includes:
[0015] Receive all file types of files to be split from the list of files to be split that correspond to the task type of the batch processing task, which are scanned by the scanner at the time interval, and determine the total number of all file types of files to be split that correspond to the task type of the batch processing task.
[0016] Based on the total number of files to be split across all file types corresponding to the task type and the number of files to be split processed in each batch by the batch processing task, the batch processing task is created to determine the number of times the batch processing task is executed.
[0017] The batch processing task is executed repeatedly according to the number of executions to obtain the splitting results of all file types to be split according to the task type.
[0018] Optionally, executing the batch processing task includes:
[0019] During each execution of the batch processing task, it is determined whether there are any dependencies between the files to be split during this execution process;
[0020] If they exist, the splitting order of the files to be split in this execution process and the splitting rules corresponding to the file types of the files to be split in this execution process are determined, and the data of the files to be split in all the files to be split in the batch processing task in this execution process are split into the corresponding management tables according to the splitting order and the splitting rules.
[0021] If not, determine the splitting rule corresponding to the file type of the file to be split in this execution process, and split the file data of all files to be split in the batch processing task in this execution process into the corresponding management table according to the splitting rule.
[0022] Optionally, the configuration information also includes the time interval for the scanner corresponding to the batch processing task to scan all file types of files to be split in the file list to be split, which correspond to the task type of the batch processing task;
[0023] The process of determining the configuration information for the batch processing task includes:
[0024] Determine the time period in which the scanner corresponding to the batch processing task is scanning and the preset scanning interval corresponding to the time period; wherein, the time period includes peak time period and off-peak time period, and the preset scanning interval corresponding to the peak time period is less than the preset scanning interval corresponding to the off-peak time period;
[0025] The total number of files to be split across all file types corresponding to the task type is counted, and it is determined whether the total number exceeds a preset threshold to obtain the determination result.
[0026] The time interval is determined based on the preset scanning interval corresponding to the time period and the judgment result.
[0027] Optionally, determining the time interval based on the preset scanning interval corresponding to the time period and the judgment result includes:
[0028] When the preset scanning interval corresponding to the time period is the preset scanning interval corresponding to the peak time period or the preset scanning interval corresponding to the off-peak time period, and the judgment result is that the total number exceeds the preset threshold, the preset scanning interval corresponding to the peak time period is determined as the time interval.
[0029] or,
[0030] When the preset scanning interval corresponding to the time period is the same as the preset scanning interval corresponding to the peak time period, and the judgment result is that the total number does not exceed the preset threshold, it is determined whether the total number is zero. If not, the preset scanning interval corresponding to the peak time period is determined as the time interval.
[0031] or,
[0032] When the preset scanning interval corresponding to the time period is the preset scanning interval corresponding to the off-peak time period, and the judgment result is that the total number does not exceed the preset threshold, it is determined whether the total number is zero. If not, the preset scanning interval corresponding to the off-peak time period is determined as the time interval.
[0033] or,
[0034] When the preset scanning interval corresponding to the time period is the preset scanning interval corresponding to the peak time period or the preset scanning interval corresponding to the off-peak time period, and the judgment result is that the total number does not exceed the preset threshold, it is determined whether the total number is zero. If so, the preset scanning interval corresponding to the off-peak time period is determined as the time interval.
[0035] Optionally, after executing the batch processing task according to the configuration information based on the list of files to be split, and obtaining sub-files of all file types corresponding to the task type, the process further includes:
[0036] Obtain an account inquiry request;
[0037] Find the sub-file of the file to be split that corresponds to the accounting query request from all the sub-files of the files to be split;
[0038] The sub-files of the file to be split corresponding to the accounting query request are processed to obtain the accounting processing result corresponding to the accounting query request.
[0039] According to a second aspect of this application, a document processing apparatus is provided, comprising:
[0040] The acquisition and generation module is used to acquire multiple files to be split and generate a list of files to be split corresponding to the multiple files to be split; the entries in the list of files to be split are used to record the file types of all the files to be split and the task types of the batch processing tasks corresponding to the file types of all the files to be split;
[0041] The determination module is used to determine the configuration information of the batch processing task for each task type; the configuration information includes: the number of files to be split in each batch processed by the batch processing task;
[0042] An execution module is created to create and execute the batch processing task based on the list of files to be split, according to the configuration information, to obtain the splitting results of all file types to be split corresponding to the task type.
[0043] According to a third aspect of this application, an electronic device is provided, comprising: at least one processor and a memory;
[0044] The memory stores computer-executed instructions;
[0045] The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the file processing method as described in the first aspect above.
[0046] According to a fourth aspect of this application, a computer-readable storage medium is provided, wherein computer-executable instructions are stored therein, which, when executed by a processor, are used to implement the file processing method described in the first aspect above.
[0047] According to a fifth aspect of this application, a computer program product is provided, including a computer program that, when executed by a processor, implements the file processing method described in the first aspect.
[0048] This application provides a file processing method, comprising: acquiring multiple files to be split and generating a list of files to be split corresponding to the multiple files to be split; the entries in the list of files to be split are used to record the file types of all files to be split and the task types of batch processing tasks corresponding to the file types of all files to be split; for each batch processing task of a task type, determining the configuration information of the batch processing task; the configuration information includes: the number of files to be split in each batch processed by the batch processing task; based on the list of files to be split, creating and executing the batch processing task according to the configuration information to obtain the splitting results of all file types to be split corresponding to the task type.
[0049] This application can determine the task type of the batch processing task corresponding to the file type of the file to be split based on the list of files to be split, so as to know which type of batch processing task needs to be created subsequently. The configuration information of the batch processing tasks of all task types to be created provides data support for the creation of batch processing tasks. After creation, the batch processing task is executed. This application can achieve fast splitting of all file types of files to be split corresponding to a certain task type by executing the batch processing task of a certain task type that has been created.
[0050] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this application, nor is it intended to limit the scope of this application. Other features of this application will become readily apparent from the following description. Attached Figure Description
[0051] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0052] Figure 1 A diagram illustrating document processing using existing technology;
[0053] Figure 2 A flowchart illustrating a document processing method provided in an embodiment of this application;
[0054] Figure 3 A flowchart illustrating another document processing method provided in this application embodiment;
[0055] Figure 4 A schematic diagram illustrating the process of creating and executing batch tasks provided in an embodiment of this application;
[0056] Figure 5 A flowchart illustrating the process of splitting tasks based on dependencies;
[0057] Figure 6 A flowchart illustrating yet another document processing method provided in this application embodiment;
[0058] Figure 7 A flowchart illustrating the process of determining the configuration information for batch processing tasks;
[0059] Figure 8 A schematic diagram illustrating a dynamic adjustment process for the scanning time interval provided in an embodiment of this application;
[0060] Figure 9 This is a schematic diagram of the structure of a document processing device provided in an embodiment of this application;
[0061] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0062] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0063] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application.
[0064] The existing file processing method processes each file individually, and when processing a file, a corresponding file parsing task and a corresponding file splitting task need to be established. After all files have been parsed, such as Figure 1 As shown, a pre-splitting task is triggered, which checks whether the file is valid, so that subsequent file splitting tasks can be created and executed on the basis of validity.
[0065] However, the managed system faces significant processing pressure during peak business periods when it needs to handle a large number of tasks. Therefore, the efficiency of existing document processing methods has become a bottleneck, severely impacting the timeliness of daily accounting and failing to meet the needs of daily business operations.
[0066] To address the aforementioned technical problems, the overall inventive concept of this application is to provide a method for improving the efficiency of file splitting in file processing.
[0067] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0068] Figure 2 This is a flowchart illustrating a file processing method provided in an embodiment of this application. Figure 2 As shown, the method in this embodiment includes:
[0069] S201: Obtain multiple files to be split and generate a list of files to be split corresponding to the multiple files to be split; the entries in the list of files to be split are used to record the file type of all files to be split and the task type of the batch processing task corresponding to the file type of all files to be split.
[0070] In this embodiment, multiple files to be split can be obtained within the same time period. The files to be split can be simply referred to as "files". "File type" is an abbreviation for the file type to be split, used to customize the division of files from different sources into different file types. For example, the file types of a company's first region files include: JSMX01, JSMX02, JSMX03, etc. It can be understood that the above three file types are different file types, and files of these three file types can belong to the same batch processing task. The file types of a company's second region files include: SJSMX01, SJSMX02, SJSJG, etc. The file types of a company's first region exchange files include: GH, JJGH, BGH, DGH, etc. The file types of a company's second region exchange files include: SJSHB, SZ_MDL_SMY, SJSFX, SJSGB, etc. The file types of a company's first mixed region files include: SZHK_SJSMX1, SZHK_SJSMX2, etc. The file types for a company's second mixed zone documents include: HK_JSMX, etc.; the file types for a company's futures documents include: FUNDCHG, TRDDATA, CUSFUND, OTHERFUND, OPTTRDDATA, OPTEXERDATA, etc.; the file types for a brokerage's settlement documents include: QSJS_JSMX01, QSJS_JSMX02, QSJS_JSMX03, QSJS_SJSMX01, QSJS_SJSMX02, etc.
[0071] In this application embodiment, the splitting rules for different file types are somewhat different, and can be adaptively defined according to actual needs. Furthermore, the data content in files of different file types is also different.
[0072] Task type is short for batch task type, and batch task type can be used to reflect the source of files, that is, files under different batch task types have different sources.
[0073] Optionally, the file types of the files to be split can differ for batch processing tasks of different task types. Furthermore, one batch processing task type can correspond to multiple file types to be split; for example, the file types to be split within the same batch processing task type can include GH type, JSMX03 type, etc.
[0074] In this embodiment, the batch processing task is used to perform batch processing. Batch processing refers to processing multiple files of various file types from the same time period simultaneously, thereby improving the processing efficiency of the files to be split. Compared with the prior art, which only performs batch processing on the content of the files to be split, the batch processing in this application is used not only to batch process the content of the files to be split, but also to batch process the files to be split themselves.
[0075] S202: For each batch processing task of each task type, determine the configuration information of the batch processing task; the configuration information includes: the number of files to be split in each batch of the batch processing task.
[0076] The number of files to be split in each batch processing task, also known as the number of batch files, is denoted as M. When batch processing tasks of file types, the number of batch files corresponding to each batch processing task can be obtained through preset parameters and can be dynamically adjusted at any time. The specific method used for dynamically adjusting the number of batch files in this application embodiment is not specifically limited.
[0077] It should be understood that the number of files to be split in each batch of batch processing tasks can vary depending on the task type. For example, a batch processing task of the first task type processes 8 files to be split in each batch. These 8 files can be of the same file type or different file types. During the batch processing, the splitting rules for the different file types will differ. A batch processing task of the second task type processes 10 files to be split in each batch, a batch processing task of the third task type processes 16 files to be split in each batch, a batch processing task of the fourth task type processes 16 files to be split in each batch, and a batch processing task of the fifth task type processes 10 files to be split in each batch.
[0078] For example, if there is a record of a file type corresponding to the Ath batch processing task type in the list of files to be split, then the batch processing task to be created must be of the Ath batch processing task type. Then the scanner corresponding to the Ath batch processing task type obtains the number M of files to be split in each batch of the Ath batch processing task.
[0079] S203: Based on the list of files to be split, create and execute a batch processing task according to the configuration information to obtain the splitting results of all file types to be split, corresponding to the task type.
[0080] In this application, a batch processing task refers to a single batch processing task that simultaneously processes and splits multiple files to be split. For example, batch processing tasks may include: a data splitting task for a company's data file group, a data splitting task for an exchange's file group, a data splitting task for a securities firm's settlement file group, a data splitting task for a margin trading file group, a data splitting task for a simple futures file group, a data splitting task for a complex futures file group, and other data splitting tasks, etc.
[0081] In this step, according to the different file types, the files to be split are stored in a preset database table corresponding to the file type as file data, and then split into different management tables for use in subsequent accounting processes. The specific execution process is described in S4031 to S4033 below, and will not be repeated here. The aforementioned management tables include, but are not limited to: accounting details table, repurchase transaction management table, daily transaction report, daily transaction report sub-table, futures management table, redemption details table, etc.
[0082] For ease of understanding, the embodiments of this application provide the following example 1: [Combination] Figure 3 As we can see, in "File Type 1 - File 1 - File Number", "File 1" is the file name, and "File Number" is the unique identifier of that file. Taking one file type corresponding to one batch processing task type as an example, the number of batch files in a batch processing task type can be understood as the number of batch files in the file type. Therefore, when there are n file types, there are n corresponding batch processing task types, and n scanners. The first scanner is used to scan files of file type 1 in the list of files to be split, and the nth scanner is used to scan files of file type n in the list of files to be split. The number of batch files for each file type can be customized, for example: M1 = 8, M2 = 10, Mn = 16. If n1 = 21, then the batch processing task for file type 1 will be executed 3 times (n1 / M1 rounded down); if n2 = 20, then the batch processing task for file type 2 will be executed 2 times (n2 / M2); if nn = 160, then the batch processing task for file type n will be executed 10 times (n2 / M2).
[0083] In the example above, the values of M1, M2, and Mn are determined by the file types belonging to the same batch processing task, and their values affect the processing efficiency of the batch processing task.
[0084] This application embodiment also provides the following example 2: The hosting system receives a total of 21 files of the same file type sent by an intermediary company. After these 21 files arrive in the hosting system in batches, in the prior art, the hosting system processes each file in the same way, that is, after all files are parsed and stored in the database table, combined with... Figure 1As can be seen, existing technologies require creating a pre-splitting task and a file splitting task for each file. The pre-splitting task performs a series of checks in advance to ensure the smooth execution of the file splitting task. Therefore, a total of 42 tasks are created for 21 files. However, in this embodiment, after the file parsing is completed and the data is stored in the database table, there are 21 records of the same file type in the list of files to be split. This file type corresponds to a certain task type. Therefore, the scanner corresponding to this task type is used to scan the list of files to be split, and it is determined that the batch processing task of this task type processes 8 files per batch. Thus, every 8 files are treated as the same batch processing task, and task 1, task 2, and task 3 can be created. Task 1 processes the first 8 files, task 2 processes files 9 to 16, and task 3 processes files 17 to 21. Compared with existing technologies, the number of tasks is reduced from 42 to 3, which greatly reduces the number of tasks.
[0085] This embodiment allows multiple files to be packaged together and executed in a single batch task, rather than one task per file. By combining multiple files and creating a corresponding batch task, the number of tasks can be reduced, and the efficiency of splitting files can be improved.
[0086] This application can determine the task type of the batch processing task corresponding to the file type of the file to be split based on the list of files to be split, so as to know which type of batch processing task needs to be created subsequently. The configuration information of the batch processing tasks of all task types to be created provides data support for the creation of batch processing tasks. After creation, the batch processing task is executed. This application can achieve fast splitting of all file types of files to be split corresponding to a certain task type by executing the batch processing task of a certain task type that has been created.
[0087] One possible implementation includes, after obtaining multiple files to be split, the following:
[0088] S204: Parse each file to be split and store the parsed file data in a preset database table.
[0089] Parsing is an operation performed before batch processing tasks. Its purpose is to process the content of the files to be split, storing the data for different file types into pre-defined database tables. Since different file types have different file formats, corresponding parsers can be set up for each file type and format, such as parsers for .txt, .excel, and .dbf files. The parser parses the file content into the data to be split and stores it in the corresponding pre-defined database tables.
[0090] Since the structures of files to be split differ depending on the file type, the data for files to be split corresponding to different file types can be stored in different preset database tables. Furthermore, embodiments of this application can set up multiple preset database tables, each used to store the data for a specific file type.
[0091] S205: After parsing all files to be split, determine the attribute information of all files to be split; the attribute information includes: the file type of the file to be split, and the task type of the batch processing task corresponding to the file type of the file to be split.
[0092] In addition to the file type of the file to be split and the corresponding batch task type, the file attribute information also includes: file number, file name, file size, and file creation date. The file number is a unique identifier for the file to be split.
[0093] After external files to be split are connected to the hosting system, the hosting system parses and stores the data files, and stores the parsed data as a storage table in a preset database table. Once the storage table is successfully parsed, a pre-processing operation is triggered, pushing the file's attribute information to the list of files to be split. Based on this, the entries in the list of files to be split, in addition to recording the file type of the file to be split, the task type of the batch processing task corresponding to the file type, also record other attribute information of the file to be split. This embodiment of the application prepares for generating a list of files to be split corresponding to multiple files by executing steps S204-S205.
[0094] In one possible implementation, after step S203: Based on the list of files to be split, execute a batch processing task according to the configuration information to obtain sub-files of all file types to be split corresponding to the task type, the following is also included:
[0095] S206: Obtain an accounting inquiry request.
[0096] S207: Find the subfile of the file to be split that corresponds to the accounting query request from all the subfiles of the file to be split.
[0097] S208: Perform accounting processing on the sub-files of the file to be split corresponding to the accounting query request, and obtain the accounting processing result corresponding to the accounting query request.
[0098] Based on batch processing of split files, this embodiment of the application can improve the processing efficiency of the managed system and alleviate the task waiting time for accounting processing during peak periods by executing S206 to S208.
[0099] Based on the above embodiments, the technical solution of this application will be described in more detail below with reference to several specific embodiments.
[0100] Figure 4 This is a schematic flowchart illustrating the creation and execution of batch processing tasks provided in an embodiment of this application. Figure 2 Based on the illustrated embodiment, the configuration information also includes the time interval for the scanner corresponding to the batch processing task to scan the list of files to be split, covering all file types corresponding to the task type of the batch processing task. This embodiment focuses on... Figure 2 S203 in the example: Based on the list of files to be split, a batch processing task is created and executed according to the configuration information for further refinement. For example... Figure 4 As shown, the method in this embodiment includes:
[0101] S401: Receive the list of files to be split from the scanner at time intervals, which contains all file types corresponding to the task type of the batch processing task, and determine the total number of files to be split for all file types corresponding to the task type of the batch processing task.
[0102] It should be understood that a batch processing task is a splitting task that breaks down files. A splitting task transforms the data in a file into management table data according to splitting rules corresponding to the file type. For each file of a different type, after parsing, the file is processed according to the corresponding splitting rules, and finally the file data is pushed to the corresponding management table. Splitting rules include, but are not limited to: calculating fees, supplementing data needed for subsequent accounting processing, summarizing multiple data entries, calculating commissions, calculating bond interest, and calculating repurchase interest.
[0103] When a scanner scans the list of files to be split at fixed time intervals S, it is called a scheduled task engine; when it scans the list at dynamically adjusted time intervals S, it is called an unscheduled task engine. The number of scanners can be the same as the number of batch task types; that is, one scanner scans all file types corresponding to one batch task type. When a batch task type corresponds to multiple file types, the result of each scan is to extract the maximum M files of all file types within the same batch task type.
[0104] It should be understood that, according to the type of document, the scanners corresponding to different task types can be set to different scanning intervals. That is, the scanning intervals of the scanners corresponding to different batch processing task types are different.
[0105] S402: Create a batch task based on the total number of files to be split across all file types corresponding to the task type and the number of files to be split per batch in each batch task, in order to determine the number of times the batch task will be executed.
[0106] In other words, when querying the list of files to be split, if the total number of files found is greater than M, then M files are selected each time to create a batch processing task. If the number of files found is less than M, then all selected records are used to create a batch processing task. Taking Example 2 above as an example: the list of files to be split contains 21 files of the same file type. Each batch processing task of this type processes 8 files. Therefore, every 8 files are considered as one batch processing task, creating Task 1, Task 2, and Task 3, where Task 3 contains only 5 files.
[0107] It should be understood that the creation of batch tasks can be accomplished by the task engine in the managed system.
[0108] S403: Repeat the batch processing task according to the number of executions to obtain the splitting results of all file types to be split according to the task type.
[0109] Optionally, when the time interval S is fixed, the scanner executes a scheduled task, which scans the list of files to be split at fixed time intervals S. This scheduled task is a resident thread task used to create subsequent batch processing tasks. When file records are found in the list of files to be split, the number of files of each file type is determined according to different file types, and then a splitting task is created.
[0110] Optionally, the aforementioned time interval S is dynamically adjusted based on a pre-configured business period (i.e., peak or off-peak business periods). Compared to a single task processing method, the split task in this embodiment is a multi-file processing task, which can control the number of files processed and adjust the scanning time interval according to the peak / off-peak business periods. The specific adjustment process is described in S701 to S703 below, and will not be repeated here.
[0111] In one possible implementation, batch processing tasks are executed in S403, including:
[0112] S4031: During each execution of a batch task, determine whether there are dependencies between the files to be split during this execution.
[0113] In this embodiment of the application, there may be dependencies between the files to be split within a batch processing task. These dependencies are used to determine the splitting order of the files to be split during this execution process. Furthermore, the splitting order of files within the same batch processing task type can be pre-defined. For example, files of type GH need to be split before files of type JSMX03.
[0114] S4032: If it exists, determine the splitting order of the files to be split in this execution process and the splitting rules corresponding to the file types of the files to be split in this execution process, and split the data of all files to be split in the batch processing task in this execution process into the corresponding management table according to the splitting order and splitting rules.
[0115] If S4033 does not exist, then determine the splitting rule corresponding to the file type of the file to be split in this execution process, and split the file data of all files to be split in the batch processing task in this execution process into the corresponding management table according to the splitting rule.
[0116] For example, if splitting a file of type QSJS_JSMX03 depends on splitting a file of type QSJS_GH, then the file of type QSJS_JSMX03 can only be split after the file of type QSJS_GH has been split. The process of creating a splitting task under a dependency relationship is as follows: Figure 5 As shown, the procedure includes the following steps S51 to S56, wherein:
[0117] S51: Use a pre-checker to check if there are dependencies between files; if not, proceed to S52; if yes, proceed to S53. This pre-checker can be a preCheckProcessor.
[0118] S52: Create a split task. At this point, one batch file task corresponds to one split task.
[0119] S53: Search for files of the same type in the preset accounting splitting configuration folder. Specifically, search for files of type QSJS_GH and files of type QSJS_JSMX03 in the same group.
[0120] S54: Locate the corresponding dependent file in the preset file parsing table. The search criteria in step S54 include file type, data date, etc.
[0121] S55: Based on the dependent files, determine the path matching results of all files; if a match is found, proceed to S56; otherwise, proceed to S52.
[0122] S56: Create a split task for each file. In this case, a batch task includes multiple split tasks.
[0123] Creating splitting tasks based on dependencies ensures the effectiveness of the splitting. This embodiment uses a batch processing approach to effectively reduce the number of batch processing tasks. During execution, each batch processing task processes the data of each file to be split, splitting it into different management tables according to different splitting rules for use by subsequent functions.
[0124] Figure 6 This is a flowchart illustrating another document processing method provided in an embodiment of this application. Figure 6 As shown, the procedure includes the following steps S61 to S68, wherein:
[0125] S61: Import multiple files to be split from different sources.
[0126] S62: Parse the file to be split to obtain the file data.
[0127] S63: Store the file data to be split in a preset database table.
[0128] S64: Determine the status of the list of files to be split as pending.
[0129] S65: Perform a preliminary check.
[0130] S66: Scan the list of files to be split to determine the total number of files to be split in this batch task.
[0131] S67: Insert all files to be split into the accounting split control table according to the number of files to be split in each batch of the batch processing task.
[0132] S68: If the check is correct, create a batch task according to the accounting split control table.
[0133] By executing S61 to S68, the embodiments of this application can achieve batch processing of files to be split, thereby improving splitting efficiency.
[0134] Figure 7 This is a flowchart illustrating the process of determining configuration information for batch processing tasks, as provided in an embodiment of this application. Figure 2 Based on the illustrated embodiment, the configuration information also includes the time interval for the scanner corresponding to the batch processing task to scan the list of files to be split, covering all file types corresponding to the task type of the batch processing task. This embodiment focuses on... Figure 2 S202 in the document: Refine the configuration information for the batch processing task. For example... Figure 7 As shown, the method in this embodiment includes:
[0135] S701: Determine the time period and the preset scanning interval corresponding to the scanner of the batch processing task during scanning; wherein, the time period includes peak time period and off-peak time period, and the preset scanning interval corresponding to the peak time period is less than the preset scanning interval corresponding to the off-peak time period.
[0136] In this embodiment, the following seven batch processing task types include: data splitting task for a company's data file group, data splitting task for an exchange's file group, data splitting task for a securities firm's settlement file group, data splitting task for a margin trading file group, data splitting task for a futures simple file group, data splitting task for a futures complex file group, and data splitting task for other file groups. The preset scanning intervals of the scanners corresponding to each batch processing task during peak and off-peak hours are shown in Table 1 below:
[0137] Table 1 shows the preset scanning intervals for each scanner during peak and off-peak hours.
[0138]
[0139]
[0140] S702: Count the total number of files to be split across all file types corresponding to the task type, and determine whether the total number exceeds a preset threshold to obtain the judgment result.
[0141] S703: Determine the time interval based on the preset scanning interval corresponding to the time period and the judgment result.
[0142] The above judgment result is used to determine the urgency of the batch processing task. Since the scanning frequency varies under different urgency levels, the appropriate scanning frequency can be dynamically adjusted according to the urgency of the batch processing task. For example:
[0143] During peak hours, if the total number of files in a company's data file group splitting task is less than the preset threshold of 300, the time interval will be adjusted from 5 seconds to 8 seconds.
[0144] During peak hours, if the total number of files in the exchange file group data splitting task is less than the preset threshold of 300, the time interval will be adjusted from 5 seconds to 8 seconds.
[0145] During peak hours, if the total number of files in the brokerage settlement file group data splitting task is less than the preset threshold of 1000, the time interval will be adjusted from 3 seconds to 10 seconds.
[0146] During peak hours, if the total number of files in the margin trading file group data splitting task is less than the preset threshold of 1000, the time interval will be adjusted from 5 seconds to 10 seconds.
[0147] During peak hours, if the total number of files in the futures simple file group data splitting task is less than the preset threshold of 300, the time interval will be adjusted from 3 seconds to 8 seconds.
[0148] During peak hours, if the total number of files in the futures complex file group data splitting task is less than the preset threshold of 300, the time interval will be adjusted from 3 seconds to 8 seconds.
[0149] During peak hours, if the total number of files in other filegroup data splitting tasks is less than the preset threshold of 1000, the time interval will be adjusted from 5 seconds to 10 seconds.
[0150] Specifically, for each scanner, the scanning interval is shorter during peak business hours and longer during off-peak business hours, enabling dynamic scanning time control and reducing resource consumption on the managed system during off-peak periods. In one possible implementation, S703: Based on the preset scanning interval corresponding to the time period and the judgment result, determine the time interval, including the following four cases:
[0151] The first scenario: When the preset scanning interval corresponding to the time period is either the preset scanning interval corresponding to the peak time period or the preset scanning interval corresponding to the off-peak time period, and the judgment result is that the total number exceeds the preset threshold, the preset scanning interval corresponding to the peak time period is determined as the time interval.
[0152] The second scenario: When the preset scanning interval corresponding to the time period is the same as the preset scanning interval corresponding to the peak time period, and the judgment result is that the total number does not exceed the preset threshold, it is determined whether the total number is zero. If not, the preset scanning interval corresponding to the peak time period is determined as the time interval.
[0153] The third scenario: When the preset scanning interval corresponding to the time period is the same as the preset scanning interval corresponding to the off-peak time period, and the judgment result is that the total number does not exceed the preset threshold, it is determined whether the total number is zero. If not, the preset scanning interval corresponding to the off-peak time period is determined as the time interval.
[0154] The fourth scenario: When the preset scanning interval corresponding to the time period is either the preset scanning interval corresponding to the peak time period or the preset scanning interval corresponding to the off-peak time period, and the judgment result is that the total number does not exceed the preset threshold, it is determined whether the total number is zero. If so, the preset scanning interval corresponding to the off-peak time period is determined as the time interval.
[0155] The procedures for the above four situations are as follows: Figure 8 As shown:
[0156] S81: Determine the time period during which the scanner corresponding to the batch processing task is scanning. If the time period is a peak period, execute S82; if the time period is an off-peak period, execute S83.
[0157] S82: Determine the preset scanning interval S1 corresponding to the peak period as the time interval S.
[0158] S83: Determine the preset scanning interval S2 corresponding to the off-peak period as the time interval S.
[0159] S84: Determine whether the total number of files to be split for all file types corresponding to the task type exceeds the preset threshold. If yes, execute S85; otherwise, execute S86.
[0160] S85: The update time interval S is the preset scan interval S1 corresponding to the peak period.
[0161] S86: Determine if the total number of files to be split for all file types corresponding to the task type is 0. If yes, execute S87; otherwise, execute S88.
[0162] S87: The update time interval S is the preset scan interval S2 corresponding to the off-peak period.
[0163] S88: Create a batch task.
[0164] By executing S81 to S88, the time interval during scanning can be dynamically adjusted. In this embodiment, during intermittent scanning, the scanning time interval is dynamically adjusted based on the number of files to be split under that task type in the current managed system's file-to-split list. If the number of files to be split under that task type in the current managed system's file-to-split list exceeds a preset threshold, the scanning time interval is reduced. Conversely, if the number of files to be split under that task type in the current managed system's file-to-split list is low, the scanning frequency is reduced, the time interval is increased, and the resource utilization of the managed system is reduced.
[0165] In summary, this application embodiment, while ensuring successful data parsing in the file, can achieve batch processing of file splitting. Batch processing improves the hosting system in the following ways: (1) improves the efficiency of file splitting in the hosting system; (2) reduces the number of file splitting tasks and reduces the consumption of system resources; (3) reduces the CPU utilization rate of the system during peak hours; and (4) reduces the waiting time of other tasks and improves the accounting processing efficiency of the hosting system.
[0166] Figure 9 This is a schematic diagram of a file processing apparatus provided in an embodiment of this application. The apparatus in this embodiment can be in the form of software and / or hardware. Figure 9 As shown, the file processing apparatus provided in this embodiment includes: an acquisition and generation module 91, a determination module 92, and a creation and execution module 93. Wherein:
[0167] The generation module 91 is used to obtain multiple files to be split and generate a list of files to be split corresponding to the multiple files to be split; the entries in the list of files to be split are used to record the file type of all files to be split and the task type of the batch processing task corresponding to the file type of all files to be split.
[0168] The determination module 92 is used to determine the configuration information of the batch processing task for each task type; the configuration information includes: the number of files to be split in each batch of the batch processing task.
[0169] Create execution module 93, which is used to create and execute batch processing tasks based on the list of files to be split according to the configuration information, and obtain the splitting results of all file types to be split corresponding to the task type.
[0170] In one possible implementation, after obtaining multiple files to be split, the file processing device is further used to:
[0171] Each file to be split is parsed, and the parsed file data is stored in a preset database table.
[0172] After parsing all files to be split, determine the attribute information of all files to be split; the attribute information includes: the file type of the file to be split, and the task type of the batch processing task corresponding to the file type of the file to be split.
[0173] In one possible implementation, the configuration information also includes the time interval for the scanner corresponding to the batch processing task to scan the list of files to be split, covering all file types corresponding to the task type of the batch processing task; the execution module 93 is also used for:
[0174] The receiver scans the list of files to be split at time intervals, and determines the total number of files to be split across all file types corresponding to the task type of the batch processing task.
[0175] A batch processing task is created based on the total number of files to be split across all file types corresponding to the task type and the number of files to be split per batch in each batch processing task, in order to determine the number of times the batch processing task will be executed.
[0176] The batch processing task is executed repeatedly based on the number of executions to obtain the splitting results of all file types to be split, corresponding to the task type.
[0177] In one possible implementation, the creation of execution module 93 is also used for:
[0178] During each execution of a batch processing task, determine whether there are dependencies between the files to be split during this execution.
[0179] If it exists, determine the splitting order among the files to be split in this execution process and the splitting rules corresponding to the file types of the files to be split in this execution process, and split the data of all files to be split in the batch processing task in this execution process into the corresponding management tables according to the splitting order and splitting rules.
[0180] If not, determine the splitting rule corresponding to the file type of the file to be split in this execution process, and split the file data of all files to be split in this batch processing task into the corresponding management table according to the splitting rule.
[0181] In one possible implementation, the configuration information also includes the time interval for the scanner corresponding to the batch processing task to scan the list of files to be split, covering all file types corresponding to the task type of the batch processing task; the determining module 92 is further configured to:
[0182] Determine the time period and the preset scanning interval corresponding to the scanner for the batch processing task; wherein, the time period includes peak time period and off-peak time period, and the preset scanning interval corresponding to the peak time period is less than the preset scanning interval corresponding to the off-peak time period.
[0183] The total number of files to be split across all file types corresponding to the task type is counted, and it is determined whether the total number exceeds a preset threshold to obtain the judgment result.
[0184] The time interval is determined based on the preset scanning interval corresponding to the time period and the judgment result.
[0185] In one possible implementation, the file processing device is further used for:
[0186] When the preset scanning interval corresponding to a time period is either the preset scanning interval corresponding to a peak time period or the preset scanning interval corresponding to an off-peak time period, and the judgment result is that the total number exceeds the preset threshold, the preset scanning interval corresponding to the peak time period is determined as the time interval.
[0187] Alternatively, if the preset scanning interval corresponding to the time period is the same as the preset scanning interval corresponding to the peak time period, and the judgment result is that the total number does not exceed the preset threshold, then it is determined whether the total number is zero. If not, the preset scanning interval corresponding to the peak time period is determined as the time interval.
[0188] Alternatively, if the preset scanning interval corresponding to the time period is the same as the preset scanning interval corresponding to the off-peak time period, and the judgment result is that the total number does not exceed the preset threshold, then it is determined whether the total number is zero. If not, the preset scanning interval corresponding to the off-peak time period is determined as the time interval.
[0189] Alternatively, if the preset scanning interval corresponding to the time period is the preset scanning interval corresponding to the peak time period or the preset scanning interval corresponding to the off-peak time period, and the judgment result is that the total number does not exceed the preset threshold, then determine whether the total number is zero. If so, then determine the preset scanning interval corresponding to the off-peak time period as the time interval.
[0190] In one possible implementation, after executing a batch processing task based on the list of files to be split, according to the configuration information, and obtaining sub-files of all file types corresponding to the task type, the file processing device is further used for:
[0191] Get an account inquiry request.
[0192] Find the subfile of the file to be split that corresponds to the accounting query request from all the subfiles of the file to be split.
[0193] Perform accounting processing on the sub-files of the file to be split corresponding to the accounting query request to obtain the accounting processing result corresponding to the accounting query request.
[0194] The file processing apparatus provided in this embodiment can be used to execute the file processing method provided in any of the above method embodiments. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0195] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the technical solution of this application all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0196] According to embodiments of this application, this application also provides an electronic device, a readable storage medium, and a computer program product.
[0197] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device includes a receiver 100, a transmitter 101, at least one processor 102, and a memory 103. The electronic device composed of the above components can be used to implement the above-described specific embodiments of this application, which will not be described in detail here.
[0198] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the methods described above.
[0199] This application also provides a computer program product, including computer instructions that, when executed by a processor, implement the various steps in the methods described above.
[0200] Various embodiments of the systems and technologies described above in this application can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0201] The program code used to implement the methods of this application may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing device, such that when executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or electronic device.
[0202] In the context of this application, a computer-readable storage medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium can be a machine-readable signal medium or a machine-readable storage medium. A computer-readable storage medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of computer-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0203] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0204] The systems and technologies described herein can be implemented in computing systems that include back-end components (e.g., as data electronic devices), or computing systems that include middleware components (e.g., application electronic devices), or computing systems that include front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and technologies described herein), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0205] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this application can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this application can be achieved, and this is not limited herein.
[0206] The specific embodiments described above do not constitute a limitation on the scope of protection of this application. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the principles of this application should be included within the scope of protection of this application.
Claims
1. A file processing method, characterized in that, include: Obtain multiple files to be split and generate a list of files to be split corresponding to the multiple files to be split; the entries in the list of files to be split are used to record the file types of all the files to be split and the task types of the batch processing tasks corresponding to the file types of all the files to be split; For each batch processing task of each task type, determine the configuration information of the batch processing task; The configuration information includes: the number of files to be split that are processed in each batch of the batch processing task; Based on the list of files to be split, the batch processing task is created and executed according to the configuration information to obtain the splitting results of all file types to be split corresponding to the task type; The configuration information also includes the time interval for the scanner corresponding to the batch processing task to scan all file types of files to be split in the file list to be split, which correspond to the task type of the batch processing task. The process of determining the configuration information for the batch processing task includes: Determine the time period in which the scanner corresponding to the batch processing task is scanning and the preset scanning interval corresponding to the time period; wherein, the time period includes peak time period and off-peak time period, and the preset scanning interval corresponding to the peak time period is less than the preset scanning interval corresponding to the off-peak time period; The total number of files to be split across all file types corresponding to the task type is counted, and it is determined whether the total number exceeds a preset threshold to obtain the determination result. When the preset scanning interval corresponding to the time period is the preset scanning interval corresponding to the peak time period or the preset scanning interval corresponding to the off-peak time period, and the judgment result is that the total number exceeds the preset threshold, the preset scanning interval corresponding to the peak time period is determined as the time interval. or, When the preset scanning interval corresponding to the time period is the same as the preset scanning interval corresponding to the peak time period, and the judgment result is that the total number does not exceed the preset threshold, it is determined whether the total number is zero. If not, the preset scanning interval corresponding to the peak time period is determined as the time interval. or, When the preset scanning interval corresponding to the time period is the preset scanning interval corresponding to the off-peak time period, and the judgment result is that the total number does not exceed the preset threshold, it is determined whether the total number is zero. If not, the preset scanning interval corresponding to the off-peak time period is determined as the time interval. or, When the preset scanning interval corresponding to the time period is the preset scanning interval corresponding to the peak time period or the preset scanning interval corresponding to the off-peak time period, and the judgment result is that the total number does not exceed the preset threshold, it is determined whether the total number is zero. If so, the preset scanning interval corresponding to the off-peak time period is determined as the time interval.
2. The method according to claim 1, characterized in that, After obtaining multiple files to be split, the process also includes: Each of the files to be split is parsed, and the parsed file data is stored in a preset database table; After parsing all the files to be split, the attribute information of all the files to be split is determined; wherein, the attribute information includes: the file type of the file to be split, and the task type of the batch processing task corresponding to the file type of the file to be split.
3. The method according to claim 2, characterized in that, The configuration information also includes the time interval for the scanner corresponding to the batch processing task to scan all file types of files to be split in the file list to be split, which correspond to the task type of the batch processing task. The step of creating and executing the batch processing task based on the list of files to be split, according to the configuration information, includes: Receive all file types of files to be split from the list of files to be split that correspond to the task type of the batch processing task, which are scanned by the scanner at the time interval, and determine the total number of all file types of files to be split that correspond to the task type of the batch processing task. Based on the total number of files to be split across all file types corresponding to the task type and the number of files to be split processed in each batch by the batch processing task, the batch processing task is created to determine the number of times the batch processing task is executed. The batch processing task is executed repeatedly according to the number of executions to obtain the splitting results of all file types to be split according to the task type.
4. The method according to claim 3, characterized in that, Executing the batch processing task includes: During each execution of the batch processing task, it is determined whether there are any dependencies between the files to be split during this execution process; If they exist, the splitting order of the files to be split in this execution process and the splitting rules corresponding to the file types of the files to be split in this execution process are determined, and the data of the files to be split in all the files to be split in the batch processing task in this execution process are split into the corresponding management tables according to the splitting order and the splitting rules. If not, determine the splitting rule corresponding to the file type of the file to be split in this execution process, and split the file data of all files to be split in the batch processing task in this execution process into the corresponding management table according to the splitting rule.
5. The method according to claim 1, characterized in that, After executing the batch processing task according to the configuration information based on the list of files to be split, and obtaining sub-files of all file types corresponding to the task type, the process further includes: Obtain an account inquiry request; Find the sub-file of the file to be split that corresponds to the accounting query request from all the sub-files of the files to be split; The sub-files of the file to be split corresponding to the accounting query request are processed to obtain the accounting processing result corresponding to the accounting query request.
6. A document processing device, characterized in that, include: The acquisition and generation module is used to acquire multiple files to be split and generate a list of files to be split corresponding to the multiple files to be split; the entries in the list of files to be split are used to record the file types of all the files to be split and the task types of the batch processing tasks corresponding to the file types of all the files to be split; The determination module is used to determine the configuration information of the batch processing task for each task type. The configuration information includes: the number of files to be split that are processed in each batch of the batch processing task; An execution module is created to create and execute the batch processing task based on the list of files to be split, according to the configuration information, to obtain the splitting results of all file types to be split corresponding to the task type. The configuration information also includes the time interval for the scanner corresponding to the batch processing task to scan all file types of files to be split in the file list to be split, which correspond to the task type of the batch processing task. The determining module is used for: Determine the time period in which the scanner corresponding to the batch processing task is scanning and the preset scanning interval corresponding to the time period; wherein, the time period includes peak time period and off-peak time period, and the preset scanning interval corresponding to the peak time period is less than the preset scanning interval corresponding to the off-peak time period; The total number of files to be split across all file types corresponding to the task type is counted, and it is determined whether the total number exceeds a preset threshold to obtain the determination result. When the preset scanning interval corresponding to the time period is the preset scanning interval corresponding to the peak time period or the preset scanning interval corresponding to the off-peak time period, and the judgment result is that the total number exceeds the preset threshold, the preset scanning interval corresponding to the peak time period is determined as the time interval. or, When the preset scanning interval corresponding to the time period is the same as the preset scanning interval corresponding to the peak time period, and the judgment result is that the total number does not exceed the preset threshold, it is determined whether the total number is zero. If not, the preset scanning interval corresponding to the peak time period is determined as the time interval. or, When the preset scanning interval corresponding to the time period is the preset scanning interval corresponding to the off-peak time period, and the judgment result is that the total number does not exceed the preset threshold, it is determined whether the total number is zero. If not, the preset scanning interval corresponding to the off-peak time period is determined as the time interval. or, When the preset scanning interval corresponding to the time period is the preset scanning interval corresponding to the peak time period or the preset scanning interval corresponding to the off-peak time period, and the judgment result is that the total number does not exceed the preset threshold, it is determined whether the total number is zero. If so, the preset scanning interval corresponding to the off-peak time period is determined as the time interval.
7. An electronic device, characterized in that, include: At least one processor and memory; The memory stores computer-executed instructions; The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the file processing method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the file processing method as described in any one of claims 1 to 5.
9. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the file processing method according to any one of claims 1-5.
Citation Information
Patent Citations
File processing method and device, electronic equipment and storage medium
CN113806312A