Letakkan berkas disini

SQL upload ( 0 ) x -

Pengaturan Terkait dengan Halaman Klik pada bar untuk menggulir ke atas halaman
Tekan Ctrl+Enter untuk menjalankan kueri Press Enter to execute query
ascending
descending
Order:
Men-Debug SQL
Jumlah
Execution order
Time taken
Order by:
Group queries
Ungroup queries
Tampilkan Buka Show trace Hide trace Jumlah Time taken
Bookmark
Segarkan
Tambah
Tidak ada penanda
Tambah bookmark
Opsi
Kembalikan nilai bawaan





Tampilkan Buka Kueri ulang Ubah Jelaskan Profil Bookmarks Kueri gagal Basis data : Waktu eksekusi kueri :

Sistem penasihat

Isu kinerja yang mungkin

Issue:
long_query_time disetel ke 10 detik atau lebih, jadi hanya kueri lambat yang membutuhkan waktu di atas 10 detik yang dicatat.
Recommendation:
Disarankan untuk mengatur long_query_time ke nilai yang lebih rendah, tergantung pada sistem anda. Biasanya nilai 1-5 detik disarankan.
Justification:
long_query_time saat ini disetel menjadi 10 detik.
Used variable / formula:
long_query_time
Test:
value >= 10
Issue:
Log kueri yang lambat dinonaktifkan.
Recommendation:
Aktifkan logging query dengan menetapkan slow_query_log ke 'ON'. Ini akan membantu pemecahan masalah pada query yang bekerja buruk.
Justification:
slow_query_log disetel ke 'OFF'
Used variable / formula:
slow_query_log
Test:
value == 'OFF'
Issue:
Terlalu banyak pengurutan yang menyebabkan tabel temporer.
Recommendation:
Consider increasing sort_buffer_size and/or read_rnd_buffer_size, depending on your system memory limits.
Justification:
Temporary tables average: 7.87 dalam sejam, this value should be less than 1 per hour.
Used variable / formula:
Sort_merge_passes / Uptime
Test:
value * 60 * 60 > 1
Issue:
There are lots of rows being sorted.
Recommendation:
While there is nothing wrong with a high amount of row sorting, you might want to make sure that the queries which require a lot of sorting use indexed columns in the ORDER BY clause, as this will result in much faster sorting.
Justification:
Sorted rows average: 33.54 per detik
Used variable / formula:
Sort_rows / Uptime
Test:
value * 60 >= 1
Issue:
Terlalu banyak join tanpa indeks.
Recommendation:
This means that joins are doing full table scans. Adding indexes for the columns being used in the join conditions will greatly speed up table joins.
Justification:
Table joins average: 2.61 per detik, this value should be less than 1 per hour
Used variable / formula:
(Select_range_check + Select_scan + Select_full_join) / Uptime
Test:
value * 60 * 60 > 1
Issue:
The rate of reading the first index entry is high.
Recommendation:
This usually indicates frequent full index scans. Full index scans are faster than table scans but require lots of CPU cycles in big tables, if those tables that have or had high volumes of UPDATEs and DELETEs, running 'OPTIMIZE TABLE' might reduce the amount of and/or speed up full index scans. Other than that full index scans can only be reduced by rewriting queries.
Justification:
Index scans average: 19.45 per menit, this value should be less than 1 per hour
Used variable / formula:
Handler_read_first / Uptime
Test:
value * 60 * 60 > 1
Issue:
The rate of reading data from a fixed position is high.
Recommendation:
This indicates that many queries need to sort results and/or do a full table scan, including join queries that do not use indexes. Add indexes where applicable.
Justification:
Rate of reading fixed position average: 88.53 per detik, this value should be less than 1 per hour
Used variable / formula:
Handler_read_rnd / Uptime
Test:
value * 60 * 60 > 1
Issue:
The rate of reading the next table row is high.
Recommendation:
Hal ini menunjukkan bahwa banyak kueri yang melakukan scan tabel secara menyeluruh. Menambahkan indeks dimana memungkinkan.
Justification:
Tingkat (kecepatan) membaca baris tabel selanjutnya: 11851.07 per detik, nilai ini seharusnya kurang dari 1 per jam
Used variable / formula:
Handler_read_rnd_next / Uptime
Test:
value * 60 * 60 > 1
Issue:
Banyak tabel sementara yang ditulis ke disk daripada disimpan di memori.
Recommendation:
Increasing max_heap_table_size and tmp_table_size might help. However some temporary tables are always being written to disk, independent of the value of these variables. To eliminate these you will have to rewrite your queries to avoid those conditions (Within a temporary table: Presence of a BLOB or TEXT column or presence of a column bigger than 512 bytes) as mentioned in the MySQL Documentation
Justification:
Tingkat pembuatan tabel temporer ke diska: 6.67 per menit, nilai ini hasul kurang dari 1 per jam
Used variable / formula:
Created_tmp_disk_tables / Uptime
Test:
value * 60 * 60 > 1
Issue:
MyISAM key buffer (index cache) % used is low.
Recommendation:
You may need to decrease the size of key_buffer_size, re-examine your tables to see if indexes have been removed, or examine queries and expectations about what indexes are being used.
Justification:
max % MyISAM key buffer ever used: 0%, this value should be above 95%
Used variable / formula:
Key_blocks_used * key_cache_block_size / key_buffer_size * 100
Test:
value < 95
Issue:
Tingkat pembukaan tabel tinggi.
Recommendation:
Opening tables requires disk I/O which is costly. Increasing table_open_cache might avoid this.
Justification:
Tingkat koneksi yang dibatalkan adalah 8.04 per menit, ninlai ini seharusnya kurang dari 10 per jam
Used variable / formula:
Opened_tables / Uptime
Test:
value*60*60 > 10
Issue:
The rate of opening files is high.
Recommendation:
Pertimbangkan untuk meningkatkan open_files_limit, dan periksa log kesalahan ketika restart setelah mengubah open_files_limit.
Justification:
Tingkat file yang dibuka: 5.7 dalam sejam, seharusnya nilai ini kurang dari 5 per jam
Used variable / formula:
Open_files / Uptime
Test:
value * 60 * 60 > 5
Issue:
Terlalu banyak klien yang dibatalkan.
Recommendation:
Klien biasanya digagalkan apabila mereka tidak menutup koneksi ke MySQL secara benar. Hal ini bisa disebabkan oleh adanya masalah pada jaringan atau kode tidak menutup handler basis data dengan benar. Periksa jaringan dan kode Anda.
Justification:
Tingkat koneksi yang digugurkan adalah pada 2.64 dalam sejam, nilai ini seharusnya kurang dari 1 per jam
Used variable / formula:
Aborted_clients / Uptime
Test:
value * 60 * 60 > 1
Issue:
Singgahan kueri tidak diaktifkan.
Recommendation:
The query cache is known to greatly improve performance if configured correctly. Enable it by setting query_cache_size to a 2 digit MiB value and setting query_cache_type to 'ON'. Note: If you are using memcached, ignore this recommendation.
Justification:
query_cache_size is set to 0 or query_cache_type is set to 'OFF'
Used variable / formula:
query_cache_size
Test:
value == 0 || query_cache_type == 'OFF' || query_cache_type == '0'