Database high-frequency SQL query method and system and storage medium
A query method and database technology, applied in the field of systems and storage media, and database high-frequency SQL query methods, can solve the problems of low efficiency of high-frequency SQL queries, reduce the time for repeated SQL parsing and regenerate result sets, and highlight the essence Sexual characteristics, stress-relieving effects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0052] like Figures 1 to 3 As shown, the present embodiment provides a database high-frequency SQL query method, comprising the following steps:
[0053] S1: Grab SQL-related information in the database and create a storage table;
[0054] Said step S1 comprises the following steps:
[0055] Real-time scan in the database to obtain SQL-related information and record it; create a Job in the database, scan the SQL session view in real-time through the Job in the database view, obtain SQL-related information and put it into the information record table. The fields in the information record table are serial number, SQL ID, SQL execution plan, SQL start execution time, and SQL execution times. The number of SQL executions will increase by 1 for each SQL execution.
[0056] According to the execution frequency of SQL, SQL is divided into high-frequency SQL, intermediate-frequency SQL, medium-low-frequency SQL, and low-frequency SQL; the number of successful executions of SQL with...
Embodiment 2
[0074] like Figure 4 As shown, the present embodiment provides a database high-frequency SQL query system, including:
[0075] SQL Capture Module 1: Create the first stored procedure in the database, capture SQL-related information in real time, and create a storage table; create a Job to scan the SQL session view in real time to capture SQL-related information, and divide it into high-frequency and medium-frequency according to the SQL execution frequency , medium-low frequency, and low-frequency, create storage tables for high-frequency, medium-frequency, and medium-low-frequency SQL respectively.
[0076] Storage module 2: Create a trigger in the database to store the result set after SQL execution into the corresponding storage table, and the trigger updates the result set in real time and synchronizes the updated result set to the storage table;
[0077] Mapping module 3: create a second stored procedure in the database, establish a mapping relationship between the SQL ...
Embodiment 3
[0081] This embodiment provides a computer storage medium, where instructions are stored in the computer storage medium, and when the computer is run on the computer, the computer is made to execute the above method.
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