Home Database Mysql Tutorial 在Data Studio 3.1.1中使用Query Tuner进行查询优化

在Data Studio 3.1.1中使用Query Tuner进行查询优化

Jun 07, 2016 pm 05:53 PM

IBM Data Studio 3.1.1 产品包中包含了 SQL 性能调优工具,并与数据库开发和管理工具无缝结合。Data Studio 3.1.1 用户可以在编辑 SQL 语句、编辑 Routine、编写 java JDBC 代码等多种场合调用 SQL 性能调优工具进行查询优化。

本文将分别就如何在 Data Studio 3.1.1 的上述应用场景中使用集成的 SQL 性能调优工具进行详细介绍。

IBM Data Studio 3.1.1 产品包中包含了 SQL 性能调优工具,并与开发和管理工具无缝结合。Data Studio 3.1.1 用户可以在编辑 SQL 语句、编辑 Routine、编写 java JDBC 代码等多种场合调用 SQL 性能调优工具进行查询优化。本文将分别就如何在 Data Studio 3.1.1 的上述应用场景中使用集成的 SQL 性能调优工具进行详细介绍。本文会介绍 Data Studio 3.1.1 的高级特性,因此读者阅读之前需要对 Data Studio 3.1.1 的基本功能有所了解。

Data Studio 概述

Data Studio 是 IBM 开发的一个免费的综合数据库开发管理工具平台,IBM 数据生命周期管理工具和解决方案家族的一部分。用户可以用它来设计和开发数据库应用程序,对数据库应用程序的数据操作进行优化,以及监视数据库的健康状况。它可以安装在 Red Hat® Linux、SUSE Linux、Windows 和 AIX(仅限于 Data Studio Web 控制台组件)操作系统上。

Data Studio 主要面向一下三种应用场景提供服务:

  • 数据库管理场景。Data Studio 3.1.1 提供了强大的数据库对象管理功能,可以代替 DB2 Control Center 作为管理数据库对象的工具。
  • 数据库应用开发场景。Data Studio 3.1.1 提供了强大的数据库应用程序开发工具,支持 Java™、SQL PL 和 PL/SQL 例程、XML 编辑器及其他开发方式。并且可以和 IBM 的查询优化工具整合,对查询性能进行优化。
  • 数据库健康状况和可用性的监控和管理计划作业的场景。Data Studio 3.1.1 提供了基于 Web 的健康状况和可用性的监控工具,能够对数据库健康状况进行监控并生成告警,同时也提供管理计划作业的工具。

Data Studio 3.1.1 将 Optim Development Studio、Optim Database Administrator 和以前版本的 IBM Data Studio 的功能整合到单一产品中,并整合了部分 Optim Query Workload Tuner 的功能。这样,Data Studio 为数据库管理和应用开发提供了更高的可用性。

图 1.IBM Data Studio 3.1.1
图 1.IBM Data Studio 3.1.1

Query Tuner 简介

Data Studio 3.1.1 中集成的 Ouery Tuner 组件是 Infosphere Optim Query Workload Tuner 功能的一部分。Infosphere Optim Query Workload Tuner 是使用单独许可证收费的产品,但集成在 Data Studio 中的部分是可以免费使用的。

在数据库的开发和应用当中,往往出现某些纷繁复杂的数据查询和访问环节存在设计上的缺陷,以至于严重影响了应用的效率,此时即使是有丰富经验的 DBA 也无从下手。不仅仅数据库管理员(DBA)能管理数据库对象,维护数据库应用,而且开发人员(developers)可以进行数据库查询和设计的优化,将最佳实践和顾问功能集成于一体。

集成了 Query Tuner 的 Data Studio 3.1.1 具备诸如以下性能优势:

  • 在广为熟悉的 Eclipse 开发环境下操作,与 Data Studio 实现无缝集成
  • 通过使开发人员在开发阶段调优 SQL 以降低开销和风险。
  • 鼓励开发人员(developers)与数据库管理员(DBAs)之间的协作。DBA 可以更好的了解数据库是被哪些 SQL 访问的,便于执行优化策略,Developer 也可以了解更多的数据库优化知识。

安装 IBM Data Studio 3.1.1 中集成的 Query Tuner 组件

IBM Data Studio 3.1.1 产品包中包含了 SQL 性能调优工具,用户只需要在安装 IBM Data Studio 3.1.1 过程的 Select the features to install(选择需要安装的特性)这一步中,勾选 Query Tuning(查询优化)这一项。

图 2. 在安装过程中勾选 Query Tuning(查询优化)
图 2. 在安装过程中勾选 Query Tuning(查询优化)

安装完成之后,就可以在 Data Studio 3.1.1 中使用查询优化功能。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

When might a full table scan be faster than using an index in MySQL? When might a full table scan be faster than using an index in MySQL? Apr 09, 2025 am 12:05 AM

Full table scanning may be faster in MySQL than using indexes. Specific cases include: 1) the data volume is small; 2) when the query returns a large amount of data; 3) when the index column is not highly selective; 4) when the complex query. By analyzing query plans, optimizing indexes, avoiding over-index and regularly maintaining tables, you can make the best choices in practical applications.

Can I install mysql on Windows 7 Can I install mysql on Windows 7 Apr 08, 2025 pm 03:21 PM

Yes, MySQL can be installed on Windows 7, and although Microsoft has stopped supporting Windows 7, MySQL is still compatible with it. However, the following points should be noted during the installation process: Download the MySQL installer for Windows. Select the appropriate version of MySQL (community or enterprise). Select the appropriate installation directory and character set during the installation process. Set the root user password and keep it properly. Connect to the database for testing. Note the compatibility and security issues on Windows 7, and it is recommended to upgrade to a supported operating system.

Explain InnoDB Full-Text Search capabilities. Explain InnoDB Full-Text Search capabilities. Apr 02, 2025 pm 06:09 PM

InnoDB's full-text search capabilities are very powerful, which can significantly improve database query efficiency and ability to process large amounts of text data. 1) InnoDB implements full-text search through inverted indexing, supporting basic and advanced search queries. 2) Use MATCH and AGAINST keywords to search, support Boolean mode and phrase search. 3) Optimization methods include using word segmentation technology, periodic rebuilding of indexes and adjusting cache size to improve performance and accuracy.

Difference between clustered index and non-clustered index (secondary index) in InnoDB. Difference between clustered index and non-clustered index (secondary index) in InnoDB. Apr 02, 2025 pm 06:25 PM

The difference between clustered index and non-clustered index is: 1. Clustered index stores data rows in the index structure, which is suitable for querying by primary key and range. 2. The non-clustered index stores index key values ​​and pointers to data rows, and is suitable for non-primary key column queries.

What are some popular MySQL GUI tools (e.g., MySQL Workbench, phpMyAdmin)? What are some popular MySQL GUI tools (e.g., MySQL Workbench, phpMyAdmin)? Mar 21, 2025 pm 06:28 PM

Article discusses popular MySQL GUI tools like MySQL Workbench and phpMyAdmin, comparing their features and suitability for beginners and advanced users.[159 characters]

How do you handle large datasets in MySQL? How do you handle large datasets in MySQL? Mar 21, 2025 pm 12:15 PM

Article discusses strategies for handling large datasets in MySQL, including partitioning, sharding, indexing, and query optimization.

MySQL: Simple Concepts for Easy Learning MySQL: Simple Concepts for Easy Learning Apr 10, 2025 am 09:29 AM

MySQL is an open source relational database management system. 1) Create database and tables: Use the CREATEDATABASE and CREATETABLE commands. 2) Basic operations: INSERT, UPDATE, DELETE and SELECT. 3) Advanced operations: JOIN, subquery and transaction processing. 4) Debugging skills: Check syntax, data type and permissions. 5) Optimization suggestions: Use indexes, avoid SELECT* and use transactions.

The relationship between mysql user and database The relationship between mysql user and database Apr 08, 2025 pm 07:15 PM

In MySQL database, the relationship between the user and the database is defined by permissions and tables. The user has a username and password to access the database. Permissions are granted through the GRANT command, while the table is created by the CREATE TABLE command. To establish a relationship between a user and a database, you need to create a database, create a user, and then grant permissions.

See all articles