File generation method and device based on sub-libraries and sub-tables, storage medium and equipment
A technology for file generation, database and table division, applied in the computer field, can solve problems such as imperfection, and achieve the effect of improving query and consumption efficiency, and improving the efficiency of file generation.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] figure 1 It is a schematic flow chart of a file generation method based on sub-database and table provided by Embodiment 1 of the present invention. The method can be executed by a file generation device based on sub-database and table, wherein the device can be implemented by software and / or hardware, generally It can be integrated in computer equipment such as servers. Such as figure 1 As shown, the method includes:
[0028] Step 101, after detecting that the preset file generation event is triggered, start multiple producer threads and start multiple consumer threads.
[0029] Exemplarily, the embodiments of the present invention are applicable to the generation of Internet order-related files, and may also be applicable to other application scenarios. For example, in the clearing and settlement system, it is necessary to send documents such as the user's actual repayment data or repayment plan to the funder; another example, in the fund agency sales system, it is...
Embodiment 2
[0048] figure 2 It is a schematic flowchart of a file generation method based on sub-database and sub-table provided in Embodiment 2 of the present invention, image 3 It is a schematic diagram of the structure of a file generation method based on sub-database and sub-table provided by Embodiment 2 of the present invention. The embodiment of the present invention is optimized on the basis of the above-mentioned embodiments, and the relevant content of the number of messages recorded in the preset cache is added.
[0049] Exemplarily, during the data query process, the number of first messages produced by the multiple producer threads is incrementally recorded in the preset cache, and at the same time, the multiple consumer threads are incrementally recorded in the preset cache The number of second messages consumed. The advantage of this setting is that the production and consumption of messages can be recorded in the cache, which facilitates the management and control of th...
Embodiment 3
[0069] Figure 4 It is a schematic flowchart of a file generation method based on sub-database and sub-table provided by Embodiment 3 of the present invention. The embodiment of the present invention optimizes the above-mentioned embodiments, introduces a retry mechanism, and adds relevant content.
[0070] Exemplarily, while performing data query from sub-tables within a preset range in the preset database in parallel through the plurality of producer threads, it also includes: when a query exception is detected, recording the first time when the exception occurs A location; starting from the first location to retry the data query operation. The advantage of this setting is that it can repair the exceptions that occur during the data query process and improve the fault tolerance performance of the system.
[0071] Further, while reading messages from the preset message queue in parallel through the multiple consumer threads and performing the file writing operation, it also in...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



