[go: up one dir, main page]

CN112115158A - SQL statement execution time recording method, device, equipment and readable storage medium - Google Patents

SQL statement execution time recording method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN112115158A
CN112115158A CN202010922961.3A CN202010922961A CN112115158A CN 112115158 A CN112115158 A CN 112115158A CN 202010922961 A CN202010922961 A CN 202010922961A CN 112115158 A CN112115158 A CN 112115158A
Authority
CN
China
Prior art keywords
sql statement
identification information
client
target
execution time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202010922961.3A
Other languages
Chinese (zh)
Inventor
朱滕波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
IEIT Systems Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN202010922961.3A priority Critical patent/CN112115158A/en
Publication of CN112115158A publication Critical patent/CN112115158A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2433Query languages
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本申请公开了一种SQL语句执行时间记录方法、装置、设备及可读存储介质。本申请公开的方法包括:获取正在对Sybase数据库执行SQL语句的至少一个客户端的标识信息;判断标识信息是否记录于任一个监控列表中;若否,则将标识信息添加至目标监控列表,并利用目标监控列表对应的监控线程轮询客户端,若轮询到客户端正在对Sybase数据库执行目标SQL语句,则按照预设策略记录目标SQL语句的执行时间。若数据库整体性能降低,则技术人员可以基于记录的这些执行时间找出导致数据库整体性能降低的SQL语句,然后优化相应SQL语句,以提高数据库性能。相应地,本申请提供的一种SQL语句执行时间记录装置、设备及可读存储介质,也同样具有上述技术效果。

Figure 202010922961

The present application discloses a method, device, equipment and readable storage medium for recording the execution time of SQL statements. The method disclosed in the present application includes: obtaining the identification information of at least one client that is executing SQL statements on a Sybase database; determining whether the identification information is recorded in any monitoring list; if not, adding the identification information to the target monitoring list, and using the monitoring thread corresponding to the target monitoring list to poll the client, if the client is polled to execute the target SQL statement on the Sybase database, then recording the execution time of the target SQL statement according to the preset strategy. If the overall performance of the database is reduced, the technician can find out the SQL statements that cause the overall performance of the database to be reduced based on the recorded execution times, and then optimize the corresponding SQL statements to improve the database performance. Correspondingly, the SQL statement execution time recording device, equipment and readable storage medium provided by the present application also have the above-mentioned technical effects.

Figure 202010922961

Description

SQL语句执行时间记录方法、装置、设备及可读存储介质SQL statement execution time recording method, apparatus, device and readable storage medium

技术领域technical field

本申请涉及计算机技术领域,特别涉及一种SQL语句执行时间记录方法、装置、设备及可读存储介质。The present application relates to the field of computer technologies, and in particular, to a method, apparatus, device, and readable storage medium for recording the execution time of an SQL statement.

背景技术Background technique

目前,在众多客户端同时对Sybase数据库执行SQL语句的过程中,可能会由于并发数过大和/或个别SQL语句执行缓慢,导致数据库整体性能降低。但由于Sybase数据库没有记录SQL语句执行信息的相关功能,因此无法及时找出导致数据库性能降低的SQL语句。At present, in the process of simultaneously executing SQL statements on the Sybase database by many clients, the overall performance of the database may be degraded due to excessive concurrency and/or slow execution of individual SQL statements. However, since the Sybase database does not have the relevant function to record the execution information of SQL statements, it is impossible to find out the SQL statements that cause the performance of the database to decrease in time.

因此,如何记录客户端对Sybase数据库执行SQL语句的相关信息,是本领域技术人员需要解决的问题。Therefore, how to record the relevant information of the SQL statement executed by the client on the Sybase database is a problem to be solved by those skilled in the art.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本申请的目的在于提供一种SQL语句执行时间记录方法、装置、设备及可读存储介质,以记录客户端对Sybase数据库执行SQL语句的相关信息。其具体方案如下:In view of this, the purpose of the present application is to provide a method, apparatus, device and readable storage medium for recording the execution time of an SQL statement, so as to record the relevant information of the SQL statement executed by the client on the Sybase database. Its specific plan is as follows:

第一方面,本申请提供了一种SQL语句执行时间记录方法,包括:In a first aspect, the present application provides a method for recording the execution time of an SQL statement, including:

获取正在对Sybase数据库执行SQL语句的至少一个客户端的标识信息;Obtain the identification information of at least one client that is executing the SQL statement against the Sybase database;

判断所述标识信息是否记录于任一个监控列表中;Determine whether the identification information is recorded in any monitoring list;

若否,则将所述标识信息添加至目标监控列表,并利用所述目标监控列表对应的监控线程轮询所述客户端,若轮询到所述客户端正在对所述Sybase数据库执行目标SQL语句,则按照预设策略记录所述目标SQL语句的执行时间。If not, add the identification information to the target monitoring list, and use the monitoring thread corresponding to the target monitoring list to poll the client, if it is polled that the client is executing the target SQL on the Sybase database statement, the execution time of the target SQL statement is recorded according to the preset strategy.

优选地,所述获取正在对Sybase数据库执行SQL语句的至少一个客户端的标识信息,包括:Preferably, the described acquisition is the identification information of at least one client that is executing the SQL statement to the Sybase database, including:

利用调度线程以预设周期获取正在对Sybase数据库执行SQL语句的所有客户端的标识信息,获得标识信息列表。Use the scheduling thread to obtain identification information of all clients that are executing SQL statements on the Sybase database at a preset period, and obtain a list of identification information.

优选地,所述判断所述标识信息是否记录于任一个监控列表中,包括:Preferably, the judging whether the identification information is recorded in any monitoring list includes:

判断所述标识信息列表中的任一个标识信息是否记录于任一个监控列表中。Determine whether any identification information in the identification information list is recorded in any monitoring list.

优选地,所述将所述标识信息添加至目标监控列表,包括:Preferably, the adding the identification information to the target monitoring list includes:

从多个监控列表中选择信息量最少的监控列表作为所述目标监控列表,并将所述标识信息添加至所述目标监控列表的尾部。A monitoring list with the least amount of information is selected from a plurality of monitoring lists as the target monitoring list, and the identification information is added to the tail of the target monitoring list.

优选地,所述若轮询到所述客户端正在对所述Sybase数据库执行目标SQL语句,则按照预设策略记录所述目标SQL语句的执行时间,包括:Preferably, if it is polled that the client is executing the target SQL statement on the Sybase database, the execution time of the target SQL statement is recorded according to a preset strategy, including:

若首次轮询到所述客户端正在对所述Sybase数据库执行所述目标SQL语句,则记录所述目标SQL语句的执行时间为0;If it is polled for the first time that the client is executing the target SQL statement on the Sybase database, the execution time of the record target SQL statement is 0;

若再次轮询到所述客户端正在对所述Sybase数据库执行所述目标SQL语句,则将所述执行时间递增一个轮询周期;If it is polled again that the client is executing the target SQL statement on the Sybase database, the execution time is incremented by one polling period;

若再次未轮询到所述客户端正在对所述Sybase数据库执行所述目标SQL语句,则将当前执行时间、所述标识信息以及所述目标SQL语句记录至日志。If it is not polled again that the client is executing the target SQL statement on the Sybase database, the current execution time, the identification information and the target SQL statement are recorded in a log.

优选地,还包括:Preferably, it also includes:

若首次未轮询到所述客户端正在对所述Sybase数据库执行所述目标SQL语句,则删除所述目标监控列表中的所述标识信息。If it is not polled for the first time that the client is executing the target SQL statement on the Sybase database, the identification information in the target monitoring list is deleted.

优选地,所述任一个监控列表中记录有被监控的客户端的标识信息。Preferably, the identification information of the monitored client is recorded in any one of the monitoring lists.

优选地,若再次未轮询到所述客户端正在对所述Sybase数据库执行所述目标SQL语句,但轮询到所述客户端正在对所述Sybase数据库执行其他SQL语句,则将当前执行时间、所述标识信息以及所述目标SQL语句记录至日志,同时记录所述其他SQL语句的执行时间。Preferably, if it is not polled again that the client is executing the target SQL statement on the Sybase database, but it is polled that the client is executing other SQL statements on the Sybase database, the current execution time , the identification information and the target SQL statement are recorded in the log, and the execution time of the other SQL statements is recorded at the same time.

第二方面,本申请提供了一种SQL语句执行时间记录装置,包括:In a second aspect, the present application provides a device for recording the execution time of an SQL statement, including:

获取模块,用于获取正在对Sybase数据库执行SQL语句的至少一个客户端的标识信息;an obtaining module, used to obtain the identification information of at least one client that is executing the SQL statement on the Sybase database;

判断模块,用于判断所述标识信息是否记录于任一个监控列表中;Judging module, for judging whether the identification information is recorded in any monitoring list;

记录模块,用于若所述标识信息未记录于任一个监控列表中,则将所述标识信息添加至目标监控列表,并利用所述目标监控列表对应的监控线程轮询所述客户端,若轮询到所述客户端正在对所述Sybase数据库执行目标SQL语句,则按照预设策略记录所述目标SQL语句的执行时间。A recording module, configured to add the identification information to the target monitoring list if the identification information is not recorded in any monitoring list, and use the monitoring thread corresponding to the target monitoring list to poll the client, if When it is polled that the client is executing the target SQL statement on the Sybase database, the execution time of the target SQL statement is recorded according to a preset strategy.

第三方面,本申请提供了一种SQL语句执行时间记录设备,包括:In a third aspect, the present application provides a device for recording the execution time of an SQL statement, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序,以实现前述公开的SQL语句执行时间记录方法。The processor is configured to execute the computer program, so as to realize the method for recording the execution time of the SQL statement disclosed above.

第四方面,本申请提供了一种可读存储介质,用于保存计算机程序,其中,所述计算机程序被处理器执行时实现前述公开的SQL语句执行时间记录方法。In a fourth aspect, the present application provides a readable storage medium for storing a computer program, wherein when the computer program is executed by a processor, the aforementioned method for recording the execution time of an SQL statement is implemented.

通过以上方案可知,本申请提供了一种SQL语句执行时间记录方法,包括:获取正在对Sybase数据库执行SQL语句的至少一个客户端的标识信息;判断所述标识信息是否记录于任一个监控列表中;若否,则将所述标识信息添加至目标监控列表,并利用所述目标监控列表对应的监控线程轮询所述客户端,若轮询到所述客户端正在对所述Sybase数据库执行目标SQL语句,则按照预设策略记录所述目标SQL语句的执行时间。As can be seen from the above scheme, the present application provides a method for recording the execution time of an SQL statement, including: obtaining the identification information of at least one client that is executing the SQL statement on the Sybase database; judging whether the identification information is recorded in any monitoring list; If not, add the identification information to the target monitoring list, and use the monitoring thread corresponding to the target monitoring list to poll the client, if it is polled that the client is executing the target SQL on the Sybase database statement, the execution time of the target SQL statement is recorded according to the preset strategy.

可见,本申请在获取到正在对Sybase数据库执行SQL语句的至少一个客户端的标识信息后,判断标识信息是否记录于任一个监控列表中;若否,则表明当前获取到的客户端没有被监控,则将标识信息添加至目标监控列表,并利用目标监控列表对应的监控线程轮询客户端,若轮询到客户端正在对Sybase数据库执行目标SQL语句,则按照预设策略记录目标SQL语句的执行时间。如此可记录到客户端正在对Sybase数据库执行的SQL语句的执行时间,若众多客户端同时对Sybase数据库执行SQL语句,导致数据库整体性能降低,则技术人员可以基于记录的这些执行时间找出导致数据库整体性能降低的SQL语句,然后优化相应SQL语句,以避免此情况的频繁发生,从而提高数据库性能。It can be seen that after obtaining the identification information of at least one client that is executing the SQL statement on the Sybase database, the application determines whether the identification information is recorded in any monitoring list; if not, it indicates that the currently obtained client is not monitored, Then add the identification information to the target monitoring list, and use the monitoring thread corresponding to the target monitoring list to poll the client. If the polling indicates that the client is executing the target SQL statement on the Sybase database, the execution of the target SQL statement is recorded according to the preset strategy. time. In this way, the execution time of the SQL statement that the client is executing on the Sybase database can be recorded. If many clients execute SQL statements on the Sybase database at the same time, the overall performance of the database is reduced. The overall performance of the SQL statement is reduced, and then the corresponding SQL statement is optimized to avoid the frequent occurrence of this situation, thereby improving the database performance.

相应地,本申请提供的一种SQL语句执行时间记录装置、设备及可读存储介质,也同样具有上述技术效果。Correspondingly, the device, device and readable storage medium for recording the execution time of an SQL statement provided by the present application also have the above technical effects.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only It is an embodiment of the present application. For those of ordinary skill in the art, other drawings can also be obtained according to the provided drawings without any creative effort.

图1为本申请公开的一种SQL语句执行时间记录方法流程图;1 is a flowchart of a method for recording the execution time of a SQL statement disclosed by the application;

图2为本申请公开的一种调度线程的具体执行步骤示意图;FIG. 2 is a schematic diagram of specific execution steps of a scheduling thread disclosed in the present application;

图3为本申请公开的一种监控线程的具体执行步骤示意图;3 is a schematic diagram of specific execution steps of a monitoring thread disclosed in the application;

图4为本申请公开的一种SQL语句执行时间记录装置示意图;4 is a schematic diagram of a SQL statement execution time recording device disclosed in the application;

图5为本申请公开的一种SQL语句执行时间记录设备示意图。FIG. 5 is a schematic diagram of a device for recording the execution time of an SQL statement disclosed in the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

目前,Sybase数据库没有记录SQL语句执行信息的相关功能,因此无法及时找出导致数据库性能降低的SQL语句。为此,本申请提供了一种SQL语句执行时间记录方案,能够记录客户端对Sybase数据库执行SQL语句的相关信息,为筛选有问题的SQL语句提供帮助。At present, the Sybase database does not have the relevant function to record the execution information of SQL statements, so it is impossible to find out the SQL statements that reduce the performance of the database in time. To this end, the present application provides a SQL statement execution time recording solution, which can record the relevant information of the SQL statement executed by the client on the Sybase database, and provides assistance for screening problematic SQL statements.

参见图1所示,本申请实施例公开了一种SQL语句执行时间记录方法,包括:Referring to FIG. 1, an embodiment of the present application discloses a method for recording the execution time of an SQL statement, including:

S101、获取正在对Sybase数据库执行SQL语句的至少一个客户端的标识信息。S101. Acquire identification information of at least one client that is executing the SQL statement on the Sybase database.

需要说明的是,正在对Sybase数据库执行SQL语句的客户端可能有多个,也可能仅有一个。可以将正在对Sybase数据库执行SQL语句的所有客户端的标识信息记录下来,也可以每次仅记录一个客户端的标识信息。It should be noted that there may be multiple clients executing SQL statements against the Sybase database, or there may be only one client. The identification information of all clients that are executing SQL statements on the Sybase database can be recorded, or the identification information of only one client can be recorded at a time.

在一种具体实施方式中,获取正在对Sybase数据库执行SQL语句的至少一个客户端的标识信息,包括:利用调度线程以预设周期获取正在对Sybase数据库执行SQL语句的所有客户端的标识信息,获得标识信息列表。例如:调度线程每隔1秒获取一次正在对Sybase数据库执行SQL语句的所有客户端的标识信息。In a specific embodiment, acquiring the identification information of at least one client that is executing the SQL statement on the Sybase database includes: using a scheduling thread to acquire the identification information of all clients that are executing the SQL statement on the Sybase database with a preset cycle, and obtaining the identification list of information. For example, the scheduling thread obtains the identification information of all clients that are executing SQL statements against the Sybase database every 1 second.

具体的,正在对Sybase数据库执行SQL语句的客户端的标识信息在数据库的系统表sysprocesses中被标记为running,因此利用调度线程以预设周期查询系统表sysprocesses,便可获取到正在对Sybase数据库执行SQL语句的客户端的标识信息。客户端的标识信息如客户端地址、人为标记号码等。Specifically, the identification information of the client that is executing the SQL statement on the Sybase database is marked as running in the system table sysprocesses of the database. Therefore, the scheduling thread is used to query the system table sysprocesses at a preset period, and the SQL execution on the Sybase database can be obtained. Identification information for the client of the statement. The identification information of the client is such as client address, artificial mark number and so on.

S102、判断标识信息是否记录于任一个监控列表中;若是,则无操作;若否,则执行S103。S102: Determine whether the identification information is recorded in any monitoring list; if yes, no operation; if not, execute S103.

在本实施例中,正在被监控线程监控的客户端的标识信息记录在各个监控列表中。一般一个客户端对应一个监控线程,一个监控线程对应一个监控列表,该监控列表中即记录着其对应的监控线程监控的这一个客户端的标识信息。当然,一个监控线程也可以对应多个客户端,当对应多个客户端,监控线程按照监控列表中记录的标识信息的顺序轮询各个客户端。In this embodiment, the identification information of the client being monitored by the monitoring thread is recorded in each monitoring list. Generally, one client corresponds to one monitoring thread, and one monitoring thread corresponds to one monitoring list, and the monitoring list records the identification information of the client monitored by the corresponding monitoring thread. Of course, one monitoring thread can also correspond to multiple clients. When it corresponds to multiple clients, the monitoring thread polls each client in the order of the identification information recorded in the monitoring list.

在一种具体实施方式中,判断标识信息是否记录于任一个监控列表中,包括:判断标识信息列表中的任一个标识信息是否记录于任一个监控列表中。若标识信息列表中的任一个标识信息被记录在任一个监控列表中,则表明该标识信息对应的客户端已在某个监控线程之下,因此无需做其他操作。若标识信息列表中的任一个标识信息没有被记录在任一个监控列表中,则表明该标识信息对应的客户端没有被某个监控线程监控,因此将其添加至某个监控列表,以便相应监控线程监控该标识信息对应的客户端。In a specific implementation manner, judging whether the identification information is recorded in any monitoring list includes: judging whether any identification information in the identification information list is recorded in any monitoring list. If any identification information in the identification information list is recorded in any monitoring list, it indicates that the client corresponding to the identification information is already under a certain monitoring thread, so no other operation is required. If any identification information in the identification information list is not recorded in any monitoring list, it indicates that the client corresponding to the identification information is not monitored by a monitoring thread, so it is added to a monitoring list so that the corresponding monitoring thread Monitor the client corresponding to the identification information.

在一种具体实施方式中,任一个监控列表中记录有被监控的客户端的标识信息。In a specific implementation manner, identification information of the monitored client is recorded in any monitoring list.

S103、将标识信息添加至目标监控列表,并利用目标监控列表对应的监控线程轮询客户端,若轮询到客户端正在对Sybase数据库执行目标SQL语句,则按照预设策略记录目标SQL语句的执行时间。S103. Add the identification information to the target monitoring list, and use the monitoring thread corresponding to the target monitoring list to poll the client. If it is found that the client is executing the target SQL statement on the Sybase database, record the target SQL statement according to a preset policy. execution time.

在一种具体实施方式中,将标识信息添加至目标监控列表,包括:从多个监控列表中选择信息量最少的监控列表作为目标监控列表,并将标识信息添加至目标监控列表的尾部。若信息量最少的监控列表有多个,则可以从这多个监控列表中随机选择某一个监控列表作为目标监控列表。In a specific embodiment, adding the identification information to the target monitoring list includes: selecting a monitoring list with the least amount of information from multiple monitoring lists as the target monitoring list, and adding the identification information to the tail of the target monitoring list. If there are multiple monitoring lists with the least amount of information, a certain monitoring list can be randomly selected from the multiple monitoring lists as the target monitoring list.

在一种具体实施方式中,若轮询到客户端正在对Sybase数据库执行目标SQL语句,则按照预设策略记录目标SQL语句的执行时间,包括:若首次轮询到客户端正在对Sybase数据库执行目标SQL语句,则记录目标SQL语句的执行时间为0;若再次轮询到客户端正在对Sybase数据库执行目标SQL语句,则将执行时间递增一个轮询周期;若再次未轮询到客户端正在对Sybase数据库执行目标SQL语句,则将当前执行时间、标识信息以及目标SQL语句记录至日志。若再次未轮询到所述客户端正在对所述Sybase数据库执行所述目标SQL语句,但轮询到所述客户端正在对所述Sybase数据库执行其他SQL语句,则将当前执行时间、所述标识信息以及所述目标SQL语句记录至日志,同时记录所述其他SQL语句的执行时间。In a specific embodiment, if it is polled that the client is executing the target SQL statement on the Sybase database, the execution time of the target SQL statement is recorded according to a preset strategy, including: if the client is polled for the first time that the client is executing the Sybase database The target SQL statement, the execution time of the target SQL statement is recorded as 0; if it is polled again that the client is executing the target SQL statement on the Sybase database, the execution time is incremented by one polling cycle; if it is not polled again that the client is executing the target SQL statement When the target SQL statement is executed against the Sybase database, the current execution time, identification information and the target SQL statement are recorded in the log. If it is not polled again that the client is executing the target SQL statement on the Sybase database, but it is polled that the client is executing other SQL statements on the Sybase database, the current execution time, the The identification information and the target SQL statement are recorded in the log, and the execution time of the other SQL statements is recorded at the same time.

在一种具体实施方式中,还包括:若首次未轮询到客户端正在对Sybase数据库执行目标SQL语句,则删除目标监控列表中的标识信息。In a specific embodiment, the method further includes: if it is not polled for the first time that the client is executing the target SQL statement on the Sybase database, deleting the identification information in the target monitoring list.

具体的,在将一个没有被监控的客户端的标识信息添加至目标监控列表后,若首次轮询该客户端,没有发现该客户端正在执行的SQL语句,则表明该客户端对应的SQL语句已经执行完毕,因此可以删除目标监控列表中的标识信息。Specifically, after adding the identification information of an unmonitored client to the target monitoring list, if the client is polled for the first time and no SQL statement being executed by the client is found, it indicates that the SQL statement corresponding to the client has been After the execution is completed, the identification information in the target monitoring list can be deleted.

若首次轮询该客户端,发现了该客户端正在执行的SQL语句,则记录该SQL语句的执行时间为0;当第二次轮询到该SQL语句时,将其执行时间递增一个轮询周期;此后若还是轮询到该SQL语句,将其执行时间再递增一个轮询周期,后面以此类推。If the client is polled for the first time and the SQL statement being executed by the client is found, the execution time of the SQL statement is recorded as 0; when the SQL statement is polled for the second time, its execution time is incremented by one poll cycle; after that, if the SQL statement is still polled, its execution time is incremented by another polling cycle, and so on.

但若是第二次没有轮询到该SQL语句,则表明该客户端对应的SQL语句已经执行完毕,因此可以将当前执行时间、标识信息以及目标SQL语句记录至日志,并删除目标监控列表中的标识信息。或者第二次轮询到该SQL语句,但第三次没有轮询到该SQL语句(可能轮询到其他SQL语句),则将当前执行时间、标识信息以及目标SQL语句记录至日志。此时若轮询到客户端正在对Sybase数据库执行其他SQL语句,则表明客户端执行完了目标SQL语句,但由立即执行了其他SQL语句,那么将当前执行时间、标识信息以及目标SQL语句记录至日志,同时记录所述其他SQL语句的执行时间。However, if the SQL statement is not polled for the second time, it indicates that the SQL statement corresponding to the client has been executed. Therefore, the current execution time, identification information and target SQL statement can be recorded in the log, and the target monitoring list can be deleted. identification information. Or if the SQL statement is polled for the second time, but the SQL statement is not polled for the third time (other SQL statements may be polled), the current execution time, identification information and target SQL statement are recorded to the log. At this time, if it is polled that the client is executing other SQL statements on the Sybase database, it means that the client has finished executing the target SQL statement, but other SQL statements are executed immediately, then the current execution time, identification information and the target SQL statement are recorded to log, and simultaneously record the execution time of the other SQL statements.

可见,本申请实施例在获取到正在对Sybase数据库执行SQL语句的至少一个客户端的标识信息后,判断标识信息是否记录于任一个监控列表中;若否,则表明当前获取到的客户端没有被监控,则将标识信息添加至目标监控列表,并利用目标监控列表对应的监控线程轮询客户端,若轮询到客户端正在对Sybase数据库执行目标SQL语句,则按照预设策略记录目标SQL语句的执行时间。如此可记录到客户端正在对Sybase数据库执行的SQL语句的执行时间,若众多客户端同时对Sybase数据库执行SQL语句,导致数据库整体性能降低,则技术人员可以基于记录的这些执行时间找出导致数据库整体性能降低的SQL语句,然后优化相应SQL语句,以避免此情况的频繁发生,从而提高数据库性能。It can be seen that the embodiment of the present application judges whether the identification information is recorded in any monitoring list after obtaining the identification information of at least one client that is executing the SQL statement on the Sybase database; if not, it indicates that the currently obtained client is not For monitoring, the identification information is added to the target monitoring list, and the monitoring thread corresponding to the target monitoring list is used to poll the client. If the polling indicates that the client is executing the target SQL statement on the Sybase database, the target SQL statement is recorded according to the preset strategy. execution time. In this way, the execution time of the SQL statement that the client is executing on the Sybase database can be recorded. If many clients execute SQL statements on the Sybase database at the same time, the overall performance of the database is reduced. The overall performance of the SQL statement is reduced, and then the corresponding SQL statement is optimized to avoid the frequent occurrence of this situation, thereby improving the database performance.

参见图2所示,上述实施例提及的调度线程的具体执行步骤包括:Referring to Fig. 2, the specific execution steps of the scheduling thread mentioned in the above embodiment include:

1、调度线程到数据库的系统表sysprocesses中获取状态为running的客户端号(即客户端标识信息),并形成列表。1. The scheduling thread goes to the system table sysprocesses of the database to obtain the client number (ie, client identification information) whose status is running, and forms a list.

2、调度线程对各个监控线程对应的监控列表进行整理、排序,同时获取各监控列表中的客户端号。2. The scheduling thread organizes and sorts the monitoring lists corresponding to each monitoring thread, and obtains the client number in each monitoring list at the same time.

3、调度线程将1步、2步获得的客户端号进行对比,找出目前没有被监控的客户端号。3. The scheduling thread compares the client numbers obtained in steps 1 and 2 to find out the client numbers that are not currently being monitored.

4、调度线程找到监控列表中元素最少的列表,添加3步中新找到的客户端号至其中。4. The scheduling thread finds the list with the fewest elements in the monitoring list, and adds the newly found client number in step 3 to it.

5、调度线程休息1秒后重复1-4步。其中,调度周期为1秒。5. Repeat steps 1-4 after the scheduling thread rests for 1 second. The scheduling period is 1 second.

参见图3所示,上述实施例提及的任一个监控线程的具体执行步骤包括:Referring to Fig. 3, the specific execution steps of any monitoring thread mentioned in the above embodiment include:

1、监控线程检查自己对应的监控列表是否为空,如果列表为空,则休息1秒后重复本步操作。1. The monitoring thread checks whether its corresponding monitoring list is empty. If the list is empty, repeat this step after resting for 1 second.

2、如果列表不为空,则监控线程从监控列表中提取需要监控的客户端号,并根据提取到的号码到数据库中监控相应客户端执行的SQL语句。2. If the list is not empty, the monitoring thread extracts the client number to be monitored from the monitoring list, and monitors the SQL statement executed by the corresponding client in the database according to the extracted number.

3、监控线程检测该客户端当前执行的SQL语句是否为空,如果为空,则该客户端当前没有执行SQL语句,此时如果有记录执行时间,则将监控到的SQL语句及执行时间保存到日志中,同时将该客户端号从列表中删除,对该客户端不再监控。3. The monitoring thread detects whether the SQL statement currently executed by the client is empty. If it is empty, the client is not currently executing the SQL statement. If the execution time is recorded at this time, the monitored SQL statement and execution time will be saved. to the log, and delete the client number from the list at the same time, and no longer monitor the client.

4、如果监控到的SQL语句与上次监控到的SQL语句相同,则认为该SQL语句在连续执行中,将记录的该SQL语句的执行时间+1秒,即:递增一个轮询周期。4. If the monitored SQL statement is the same as the last monitored SQL statement, it is considered that the SQL statement is in continuous execution, and the recorded execution time of the SQL statement is +1 second, that is, incrementing a polling cycle.

5、如果监控到的SQL语句与上次监控到的SQL语句不同,则认为上次监控到的SQL语句已执行完毕,将上次监控的SQL语句以及其执行时间保存到日志中。然后记录本次监控到的SQL语句,并将执行时间记为0。5. If the monitored SQL statement is different from the last monitored SQL statement, it is considered that the last monitored SQL statement has been executed, and the last monitored SQL statement and its execution time are saved in the log. Then record the SQL statement monitored this time, and record the execution time as 0.

6、休息1秒后重复1-5步工作。其中,轮询周期为1秒。6. Repeat steps 1-5 after resting for 1 second. Among them, the polling period is 1 second.

需要说明的是,本实施例中的其他实现步骤与上述实施例相同或类似,故本实施例在此不再赘述。It should be noted that, other implementation steps in this embodiment are the same as or similar to the above-mentioned embodiments, and thus are not described again in this embodiment.

由上可见,本实施例可记录到客户端正在对Sybase数据库执行的SQL语句的执行时间,若众多客户端同时对Sybase数据库执行SQL语句,导致数据库整体性能降低,则技术人员可以基于记录的这些执行时间找出导致数据库整体性能降低的SQL语句,然后优化相应SQL语句,以避免此情况的频繁发生,从而提高数据库性能。As can be seen from the above, the present embodiment can record the execution time of the SQL statement that the client is executing to the Sybase database. If many clients simultaneously execute the SQL statement to the Sybase database, the overall performance of the database is reduced. Execution time Find out the SQL statement that reduces the overall performance of the database, and then optimize the corresponding SQL statement to avoid the frequent occurrence of this situation, thereby improving database performance.

下面对本申请实施例提供的一种SQL语句执行时间记录装置进行介绍,下文描述的一种SQL语句执行时间记录装置与上文描述的一种SQL语句执行时间记录方法可以相互参照。A device for recording an execution time of an SQL statement provided by an embodiment of the present application will be introduced below. The device for recording an execution time of an SQL statement described below and a method for recording an execution time of an SQL statement described above may refer to each other.

参见图4所示,本申请实施例公开了一种SQL语句执行时间记录装置,包括:Referring to FIG. 4 , an embodiment of the present application discloses a device for recording the execution time of an SQL statement, including:

获取模块401,用于获取正在对Sybase数据库执行SQL语句的至少一个客户端的标识信息;Obtaining module 401, for obtaining the identification information of at least one client that is executing SQL statement to Sybase database;

判断模块402,用于判断标识信息是否记录于任一个监控列表中;Judging module 402, for judging whether the identification information is recorded in any monitoring list;

记录模块403,用于若标识信息未记录于任一个监控列表中,则将标识信息添加至目标监控列表,并利用目标监控列表对应的监控线程轮询客户端,若轮询到客户端正在对Sybase数据库执行目标SQL语句,则按照预设策略记录目标SQL语句的执行时间。The recording module 403 is configured to add the identification information to the target monitoring list if the identification information is not recorded in any monitoring list, and use the monitoring thread corresponding to the target monitoring list to poll the client. When the Sybase database executes the target SQL statement, the execution time of the target SQL statement is recorded according to the preset strategy.

在一种具体实施方式中,获取模块具体用于:In a specific embodiment, the acquisition module is specifically used for:

利用调度线程以预设周期获取正在对Sybase数据库执行SQL语句的所有客户端的标识信息,获得标识信息列表。Use the scheduling thread to obtain identification information of all clients that are executing SQL statements on the Sybase database at a preset period, and obtain a list of identification information.

在一种具体实施方式中,判断模块具体用于:In a specific embodiment, the judgment module is specifically used for:

判断标识信息列表中的任一个标识信息是否记录于任一个监控列表中。Determine whether any identification information in the identification information list is recorded in any monitoring list.

在一种具体实施方式中,记录模块具体用于:In a specific implementation, the recording module is specifically used for:

从多个监控列表中选择信息量最少的监控列表作为目标监控列表,并将标识信息添加至目标监控列表的尾部。Select the monitoring list with the least amount of information from multiple monitoring lists as the target monitoring list, and add the identification information to the tail of the target monitoring list.

在一种具体实施方式中,记录模块具体用于:In a specific implementation, the recording module is specifically used for:

若首次轮询到客户端正在对Sybase数据库执行目标SQL语句,则记录目标SQL语句的执行时间为0;If it is polled for the first time that the client is executing the target SQL statement against the Sybase database, the execution time of the target SQL statement is recorded as 0;

若再次轮询到客户端正在对Sybase数据库执行目标SQL语句,则将执行时间递增一个轮询周期;If it is polled again that the client is executing the target SQL statement on the Sybase database, the execution time is incremented by one polling cycle;

若再次未轮询到客户端正在对Sybase数据库执行目标SQL语句,则将当前执行时间、标识信息以及目标SQL语句记录至日志。If it is not polled again that the client is executing the target SQL statement on the Sybase database, the current execution time, identification information and the target SQL statement are recorded in the log.

在一种具体实施方式中,记录模块还用于:In a specific embodiment, the recording module is also used for:

若首次未轮询到客户端正在对Sybase数据库执行目标SQL语句,则删除目标监控列表中的标识信息。If the client is not polled for the first time to execute the target SQL statement on the Sybase database, delete the identification information in the target monitoring list.

在一种具体实施方式中,任一个监控列表中记录有被监控的客户端的标识信息。In a specific implementation manner, identification information of the monitored client is recorded in any monitoring list.

其中,关于本实施例中各个模块、单元更加具体的工作过程可以参考前述实施例中公开的相应内容,在此不再进行赘述。For the more specific working process of each module and unit in this embodiment, reference may be made to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.

可见,本实施例提供了一种SQL语句执行时间记录装置,该装置可记录到客户端正在对Sybase数据库执行的SQL语句的执行时间,若众多客户端同时对Sybase数据库执行SQL语句,导致数据库整体性能降低,则技术人员可以基于记录的这些执行时间找出导致数据库整体性能降低的SQL语句,然后优化相应SQL语句,以避免此情况的频繁发生,从而提高数据库性能。It can be seen that this embodiment provides a SQL statement execution time recording device, which can record the execution time of the SQL statement that the client is executing on the Sybase database. If many clients simultaneously execute the SQL statement on the Sybase database, the entire database will be If the performance is degraded, the technician can find out the SQL statement that causes the overall performance of the database to degrade based on the recorded execution times, and then optimize the corresponding SQL statement to avoid the frequent occurrence of this situation, thereby improving the database performance.

下面对本申请实施例提供的一种SQL语句执行时间记录设备进行介绍,下文描述的一种SQL语句执行时间记录设备与上文描述的一种SQL语句执行时间记录方法及装置可以相互参照。The following describes an SQL statement execution time recording device provided by the embodiments of the present application. The SQL statement execution time recording device described below and the SQL statement execution time recording method and apparatus described above can be referred to each other.

参见图5所示,本申请实施例公开了一种SQL语句执行时间记录设备,包括:Referring to FIG. 5 , an embodiment of the present application discloses a device for recording the execution time of an SQL statement, including:

存储器501,用于保存计算机程序;Memory 501, used to save computer programs;

处理器502,用于执行所述计算机程序,以实现上述任意实施例公开的方法。The processor 502 is configured to execute the computer program to implement the method disclosed in any of the foregoing embodiments.

下面对本申请实施例提供的一种可读存储介质进行介绍,下文描述的一种可读存储介质与上文描述的一种SQL语句执行时间记录方法、装置及设备可以相互参照。A readable storage medium provided by an embodiment of the present application is introduced below. A readable storage medium described below and a method, apparatus, and device for recording the execution time of an SQL statement described above can be referred to each other.

一种可读存储介质,用于保存计算机程序,其中,所述计算机程序被处理器执行时实现前述实施例公开的SQL语句执行时间记录方法。关于该方法的具体步骤可以参考前述实施例中公开的相应内容,在此不再进行赘述。A readable storage medium for storing a computer program, wherein, when the computer program is executed by a processor, the method for recording the execution time of an SQL statement disclosed in the foregoing embodiments is implemented. For the specific steps of the method, reference may be made to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.

本申请涉及的“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法或设备固有的其它步骤或单元。References in this application to "first", "second", "third", "fourth", etc. (if any) are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method or apparatus comprising a series of steps or elements is not necessarily limited to those steps or elements expressly listed , but may include other steps or elements not expressly listed or inherent to these processes, methods or apparatus.

需要说明的是,在本申请中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。It should be noted that the descriptions involving "first", "second", etc. in this application are only for the purpose of description, and should not be construed as indicating or implying their relative importance or implying the number of indicated technical features . Thus, a feature delimited with "first", "second" may expressly or implicitly include at least one of that feature. In addition, the technical solutions between the various embodiments can be combined with each other, but must be based on the realization by those of ordinary skill in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of such technical solutions does not exist. , is not within the scope of protection claimed in this application.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts of the various embodiments may be referred to each other.

结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的可读存储介质中。The steps of a method or algorithm described in conjunction with the embodiments disclosed herein may be directly implemented in hardware, a software module executed by a processor, or a combination of the two. A software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other form of readable storage medium that is well known.

本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The principles and implementations of the present application are described herein by using specific examples. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application. There will be changes in the specific implementation and application scope. To sum up, the content of this specification should not be construed as a limitation on the application.

Claims (10)

1. A method for recording the execution time of an SQL statement is characterized by comprising the following steps:
acquiring identification information of at least one client executing SQL statements on a Sybase database;
judging whether the identification information is recorded in any monitoring list;
if not, adding the identification information to a target monitoring list, polling the client by using a monitoring thread corresponding to the target monitoring list, and recording the execution time of the target SQL statement according to a preset strategy if the client is polling to execute the target SQL statement on the Sybase database.
2. The SQL statement execution time recording method according to claim 1, wherein the obtaining identification information of at least one client that is executing SQL statements on a Sybase database comprises:
and acquiring identification information of all clients executing SQL statements on the Sybase database by utilizing the scheduling thread in a preset period to obtain an identification information list.
3. The SQL statement execution time recording method according to claim 2, wherein the determining whether the identification information is recorded in any monitoring list comprises:
and judging whether any identification information in the identification information list is recorded in any monitoring list.
4. The SQL statement execution time recording method according to claim 1, wherein the adding the identification information to a target monitoring list comprises:
and selecting a monitoring list with the least information amount from a plurality of monitoring lists as the target monitoring list, and adding the identification information to the tail part of the target monitoring list.
5. The method for recording execution time of SQL statements according to claim 1, wherein if it is polled that the client executes a target SQL statement on the Sybase database, recording the execution time of the target SQL statement according to a preset policy, comprising:
if the client executes the target SQL statement on the Sybase database in the first polling mode, recording the execution time of the target SQL statement as 0;
if the client executes the target SQL statement on the Sybase database by polling again, the execution time is increased by one polling period;
if the client does not poll the Sybase database again until the client executes the target SQL statement on the Sybase database, recording the current execution time, the identification information and the target SQL statement to a log.
6. The SQL statement execution time recording method according to claim 5, further comprising:
deleting the identification information in the target monitoring list if the client is not polling the Sybase database to execute the target SQL statement for the first time.
7. The method for performing time recording of SQL statements according to claim 5, wherein if it is not polled again that the client is executing the target SQL statement on the Sybase database, but it is polled that the client is executing other SQL statements on the Sybase database, then the current execution time, the identification information and the target SQL statement are recorded to a log, and the execution times of the other SQL statements are recorded at the same time.
8. An SQL statement execution time recording apparatus, comprising:
the system comprises an acquisition module, a query module and a query module, wherein the acquisition module is used for acquiring identification information of at least one client executing SQL statements on a Sybase database;
the judging module is used for judging whether the identification information is recorded in any monitoring list;
and the recording module is used for adding the identification information to a target monitoring list if the identification information is not recorded in any monitoring list, polling the client by using a monitoring thread corresponding to the target monitoring list, and recording the execution time of the target SQL statement according to a preset strategy if the client is polling to execute the target SQL statement on the Sybase database.
9. An SQL statement execution time recording apparatus, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the SQL statement execution time recording method according to any of claims 1 to 7.
10. A readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the SQL statement execution time recording method according to any one of claims 1 to 7.
CN202010922961.3A 2020-09-04 2020-09-04 SQL statement execution time recording method, device, equipment and readable storage medium Withdrawn CN112115158A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010922961.3A CN112115158A (en) 2020-09-04 2020-09-04 SQL statement execution time recording method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010922961.3A CN112115158A (en) 2020-09-04 2020-09-04 SQL statement execution time recording method, device, equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN112115158A true CN112115158A (en) 2020-12-22

Family

ID=73802068

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010922961.3A Withdrawn CN112115158A (en) 2020-09-04 2020-09-04 SQL statement execution time recording method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112115158A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113177054A (en) * 2021-05-28 2021-07-27 广州南方卫星导航仪器有限公司 Equipment position updating method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030110153A1 (en) * 2001-12-11 2003-06-12 Sprint Communications Company L.P. Database performance monitoring method and tool
CN106294075A (en) * 2016-08-17 2017-01-04 浪潮软件股份有限公司 A kind of SQL is monitored method, Apparatus and system
CN107609028A (en) * 2017-08-09 2018-01-19 山东中创软件商用中间件股份有限公司 A kind of determination method and device of inefficient SQL statement
CN109933601A (en) * 2019-01-24 2019-06-25 深圳壹账通智能科技有限公司 Database management method, system, computer device and readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030110153A1 (en) * 2001-12-11 2003-06-12 Sprint Communications Company L.P. Database performance monitoring method and tool
CN106294075A (en) * 2016-08-17 2017-01-04 浪潮软件股份有限公司 A kind of SQL is monitored method, Apparatus and system
CN107609028A (en) * 2017-08-09 2018-01-19 山东中创软件商用中间件股份有限公司 A kind of determination method and device of inefficient SQL statement
CN109933601A (en) * 2019-01-24 2019-06-25 深圳壹账通智能科技有限公司 Database management method, system, computer device and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113177054A (en) * 2021-05-28 2021-07-27 广州南方卫星导航仪器有限公司 Equipment position updating method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108133031A (en) A kind of method and device of filtered recommendation video candidate result
CN104462606B (en) A kind of method that diagnostic process measure is determined based on daily record data
CN110019239B (en) Storage method and device of reported data, electronic equipment and storage medium
CN112527479A (en) Task execution method and device, computer equipment and storage medium
CN109388671B (en) Data processing method, device, equipment and storage medium
CN114443441B (en) Storage system management method, device and equipment and readable storage medium
US20140114723A1 (en) Method and system for estimating a number of users of a website based on lossy compressed data
CN112115158A (en) SQL statement execution time recording method, device, equipment and readable storage medium
CN113704577A (en) Data query method and device based on multithreading concurrent processing
CN113821166A (en) Method, device and equipment for aggregating multi-version small objects
CN113625971B (en) Data storage method, device, equipment and computer storage medium
CN115509858A (en) Business system monitoring method and device, storage medium and computer equipment
CN113761021A (en) Time sequence index data precision reduction processing method and device and computer equipment
CN117743307A (en) Data cleaning method, device and computer equipment
CN111538647A (en) Equipment health state detection method and device and client
CN113849133B (en) Processing method and device of privacy data, electronic equipment and storage medium
CN113901014A (en) Database processing method, apparatus, computer equipment and storage medium
CN118132400A (en) Storage system testing method, device, storage medium and electronic device
CN110532148B (en) Monitoring method and device of micro-service system
CN113868194A (en) A management method, device, system and medium for a local user group of a storage device
CN114461659A (en) Killing method, device, computer equipment and storage medium
CN113449025A (en) Data processing method and breakpoint device
CN108595502B (en) Method, apparatus and computer-readable storage medium for evaluating database service performance
CN108363819B (en) Query engine matching method, device, server group and readable storage medium
CN112732192A (en) Method, system, equipment and medium for cutting disk distribution information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20201222