Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - SQL 的用法 » 监控和提高数据库性能 » 提高数据库性能 » 性能提高提示

 

监控查询性能

SQL Anywhere 包括多种用于测试查询性能的工具。这些工具存储在 samples-dir\SQLAnywhere 下的子目录中,如下所述。有关每种工具的完整文档,可以在 readme.txt 文件中找到,该文件与工具位于相同的文件夹中。有关 samples-dir 位置的详细信息,请参见示例目录

有关用于测量查询执行时间的系统过程的信息,请参见sa_get_request_profile 系统过程sa_get_request_times 系统过程

fetchtst

功能   确定检索某一结果集所需的时间。

位置   samples-dir\SQLAnywhere\PerformanceFetch

odbcfet

功能   确定检索某一结果集所需的时间。此工具与 fetchtst 相似,但是功能较少。

位置   samples-dir\SQLAnywhere\PerformanceFetch

instest

功能   确定将行插入表中所需的时间。

位置   samples-dir\SQLAnywhere\PerformanceInsert

trantest

功能   测量给定数据库服务器配置(已给定数据库设计和一组事务)可以处理的负载。

位置   samples-dir\SQLAnywhere\PerformanceTransaction