Database optimization method and device based on database
An optimization method and a technology for optimizing devices, which are applied in the field of database processing, can solve problems such as data query efficiency impact, low efficiency, and weak automation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0063] Please see figure 1 , figure 1 A schematic flowchart of a database-based database optimization method is provided for the embodiment of the present application. This method can be applied to any database management scenario with databases. Specifically, this method can be applied to databases where slow SQL is common in databases, so that more slow SQL can be automatically identified and processed, thereby saving the database. Optimized time for database administrators to perform more work and tasks.
[0064] Specifically, slow SQL, as the main factor that kills the database, often brings considerable trouble to database administrators and related personnel. However, although slow SQL can kill the database, this process is not caused by one slow SQL, but slowed down by a bunch of slow SQL. Therefore, it is imminent to propose an automatic optimization method for SQL. Some of the current solutions almost require manual secondary confirmation by R&D or database admini...
Embodiment 2
[0088] Please see figure 2 , figure 2 It is a schematic flowchart of another database-based database optimization method provided in the embodiment of the present application. figure 2 The flow diagram of the described database-based database optimization method is based on figure 1 The flow diagram of the described database-based database optimization method is improved. Wherein, the database-based database optimization method includes:
[0089] S201. Receive the slow data log of the database at a preset time.
[0090] In this embodiment, the slow data log corresponds to the slow sql log.
[0091] In this embodiment, the preset time is a fixed time or time interval preset by the user, which is not limited in this embodiment.
[0092] In this embodiment, no limitation is made on the acquisition port and terminal of the slow data log.
[0093] S202. Parameterize the statement query conditions included in the data slow log to obtain the parameterized conditions.
[009...
Embodiment 3
[0143] Please see image 3 , image 3 It is a schematic structural diagram of a database-based database optimization device provided in the embodiment of the present application. Wherein, the database-based database optimization device includes:
[0144] A receiving unit 310, configured to receive the analysis log of the database;
[0145] A judging unit 320, configured to judge whether the analysis log meets a preset optimization trigger condition;
[0146] An acquisition unit 330, configured to acquire an optimization scheme of the database when the analysis log meets the optimization trigger condition;
[0147] The optimization unit 340 is configured to optimize the database according to the optimization scheme.
[0148] In this embodiment, the optimization algorithm includes an index optimization algorithm, and the optimization scheme includes an index optimization scheme.
[0149] In this embodiment, the database may be any kind of database, which is not limited in t...
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