SQL data processing method, system and electronic device
A data processing and data technology, applied in the database field, can solve problems such as resource occupation, and achieve the effect of reducing resource occupation pressure, saving resources, and improving accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] A kind of SQL data processing method that the embodiment of the present invention provides, such as figure 1 shown, including:
[0045] S11: The proxy module reads the SQL message from the memory of the database, and performs primary screening on the SQL message to obtain SQL primary selection data.
[0046] Specifically, the agent module (agent) set in the database reads the SQL message from the memory of the database. After the agent module reads the SQL message, it can only send the SQL message whose time length is greater than the preset time period (for example, 2 seconds). The message is sent to the analysis server (that is, the analysis module), that is, the agent module can complete the preliminary screening.
[0047] S12: The analysis module receives the SQL primary selection data, and analyzes the SQL primary selection data through delayed processing based on the idle time of the analysis module, and obtains the analysis result, wherein, the content of the an...
Embodiment 2
[0054] A kind of SQL data processing method that the embodiment of the present invention provides, such as figure 2 shown, including:
[0055] S21: The agent module reads the SQL messages from the memory of the database through the ONSTAT command, and performs initial screening on the SQL messages based on the SQL messages whose dumping time is longer than the preset time threshold, and obtains the SQL primary selection data.
[0056] It should be noted that the method provided by this embodiment is different from the SQL-Tracing in the prior art which obtains system data by reading the system tables. This embodiment obtains the corresponding SQL session data directly from the memory by running the ONSTAT command. The consumption of fetching system tables is low, especially during peak business hours, when the database reads and writes system tables very frequently. If the system tables are read and written again, the performance of the database will be adversely affected.
...
Embodiment 3
[0076] A kind of SQL data processing system that the embodiment of the present invention provides, such as Figure 4 As shown, the SQL data processing system 3 includes: an agent module 31 and an analysis module 32 .
[0077] As an optimal solution, the agent module is used to read SQL messages from the memory of the database, and perform initial screening on the SQL messages to obtain SQL primary data.
[0078] Further, the analysis module is used to receive the SQL primary selection data, and analyze the SQL primary selection data through delay processing based on the idle time of the analysis module to obtain the analysis results, wherein, the content of the analysis module for the SQL primary selection data includes : Perform secondary screening on the SQL primary selection data.
[0079] Therefore, the SQL data processing system can be composed of a SQL capture module and a SQL analysis module. Among them, the SQL capture module is composed of two sub-modules: the SQL c...
PUM

Abstract
Description
Claims
Application Information

- 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