设为首页 - 加入收藏  
您的当前位置:首页 >IT科技 >数据库MySQL索引优化分析 正文

数据库MySQL索引优化分析

来源:汇智坊编辑:IT科技时间:2025-11-05 02:03:12
数据库MySQL索引优化分析
数据索引复制mysql> select * from itdragon_order_list where transaction_id = "81X97310V32236260E";  +-------+--------------------+-------+------+----------+--------------+----------+------------------+-------------+-------------+------------+---------------------+ | id    | transaction_id     | gross | net  | stock_id | order_status | descript | finance_descript | create_type | order_level | input_user | input_date          |  +-------+--------------------+-------+------+----------+--------------+----------+------------------+-------------+-------------+------------+---------------------+ | 10000 | 81X97310V32236260E |   6.6 | 6.13 |        1 |           10 | ok       | ok               | auto        |           1 | itdragon   | 2017-08-18 17:01:49 |  +-------+--------------------+-------+------+----------+--------------+----------+------------------+-------------+-------------+------------+---------------------+ mysql> explain select * from itdragon_order_list where transaction_id = "81X97310V32236260E";  +----+-------------+---------------------+------------+------+---------------+------+---------+------+------+----------+-------------+ | id | select_type | table               | partitions | type | possible_keys | key  | key_len | ref  | rows | filtered | Extra       |  +----+-------------+---------------------+------------+------+---------------+------+---------+------+------+----------+-------------+ |  1 | SIMPLE      | itdragon_order_list | NULL       | ALL  | NULL          | NULL | NULL    | NULL |    3 |    33.33 | Using where |  +----+-------------+---------------------+------------+------+---------------+------+---------+------+------+----------+-------------+ 1.2.3.4.5.6.7.8.9.10.11.12.13.14.

0.9295s , 11641.90625 kb

Copyright © 2025 Powered by 数据库MySQL索引优化分析,汇智坊  滇ICP备2023006006号-2

sitemap

Top