Gateway data uploading database connection number control method, equipment, device, and medium
A technology for data uploading and control methods, applied in the field of data storage, can solve the problems of database congestion, fullness, and the number of connections cannot be released, and achieve the effect of reducing pressure and improving user experience.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] Embodiment 1 of the present invention discloses a method for controlling the number of gateway data upload database connections, which can be executed by the storage platform (hardware or / and software), please refer to figure 1 As shown, it includes the following steps:
[0041] 110. The server obtains the file uploaded by the gateway and the time stamp of the file.
[0042] After the Xgate gateway uploads the file to the storage platform, the interface server of the storage platform obtains the compressed stream of the uploaded file, and judges whether the time stamp is greater than the system time, or whether it is smaller than the system time by the preset number of days (set according to needs, such as 10 days, 30 days, etc.) days, 35 days, etc.), if the timestamp is greater than the system time, or less than the system time by the preset number of days, then discard the file uploaded by the gateway. The file name of the file uploaded by the gateway includes the S / ...
Embodiment 2
[0054] Embodiment 2 discloses a gateway data upload database connection number control device corresponding to the above embodiment, please refer to figure 2 shown, which includes:
[0055] Obtaining module 210, for obtaining the file uploaded by the gateway, and the time stamp of the file;
[0056] The saving module 220 is configured to decompress the file, and save the target file into a corresponding folder according to the time stamp, the target file is a decompressed file;
[0057] The upload module 230 is used to generate a cache thread pool, and the cache thread pool is used to manage scanning threads and data processing threads, and uses blocking queues to store target files scanned by scanning threads, and the data processing threads read from the blocking queues. Get the content of the target file and perform the upload database operation.
Embodiment 3
[0059] image 3 A schematic structural diagram of an electronic device provided in Embodiment 3 of the present invention, such as image 3 As shown, the electronic device is a server, which includes a processor 310, a memory 320, an input device 330, and an output device 340; the number of processors 310 in the computer device may be one or more, image 3 Take a processor 310 as an example; the processor 310, memory 320, input device 330 and output device 340 in the electronic device can be connected by bus or other methods, image 3 Take connection via bus as an example.
[0060] The memory 320, as a computer-readable storage medium, can be used to store software programs, computer-executable programs and modules, such as program instructions / modules corresponding to the gateway data upload database connection number control method in the embodiment of the present invention (for example, gateway data The acquisition module 210, the storage module 220 and the upload module 2...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com