如果包含查询“。 - /'等,如何增加mysql查询

时间:2018-04-21 09:55:27

标签: mysql performance

如果包含点,逗号等,我如何改进mysql查询。 我的数据大小为3GB和12,000,000行。

我的系统信息

本报告时间:4/20 / 201,13:55:16        操作系统:Windows Server 2008 R2标准版64位(6.1,版本7600)(7600.win7_gdr.120401-1505)                语言:土耳其语(区域环境:土耳其语)     系统制造商:VMware,Inc。            系统模型:VMware虚拟平台                    BIOS:PhoenixBIOS 4.0 Release 6.0
              处理器:英特尔(R)Xeon(R)CPU E3-1245 V2 @ 3.40GHz(8个CPU),~3.4GHz                  内存:16384MB RAM     可用的OS内存:16384MB RAM               页面文件:使用8402MB,可用24362MB             Windows目录:C:\ Windows         DirectX版本:DirectX 11     DX设置参数:未找到        用户DPI设置:使用系统DPI      系统DPI设置:96 DPI(100%)         DWM DPI缩放:已禁用          DxDiag版本:6.01.7600.16385 32位Unicode

MY.ini文件是:

[client]
port=3306

[mysql]
no-beep=
[mysqld]
port=3306
datadir=C:/ProgramData/MySQL/MySQL Server 5.7/Data
default-storage-engine=INNODB
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
log-output=FILE
general-log=0
general_log_file="WIN-FFJIGKKSAPK.log"
slow-query-log=1
slow_query_log_file="WIN-FFJIGKKSAPK-slow.log"
long_query_time=10
log-error="WIN-FFJIGKKSAPK.err"
server-id=1
secure-file-priv="C:/ProgramData/MySQL/MySQL Server 5.7/Uploads"



max_connections = 2000
query_cache_size = 0
table_open_cache=39390
open_files_limit=78780   
tmp_table_size = 20M
thread_cache_size = 100
myisam_max_sort_file_size=100G
myisam_sort_buffer_size = 64M
key_buffer_size = 32M
read_buffer_size=64K
read_rnd_buffer_size=256K
innodb_flush_log_at_trx_commit = 0
innodb_log_buffer_size=8M
innodb_buffer_pool_size = 6000M
innodb_log_file_size = 256M
innodb_thread_concurrency=0
innodb_autoextend_increment=64
innodb_write_io_threads = 16
innodb_read_io_threads = 16
innodb_io_capacity=500
innodb_buffer_pool_instances=8


innodb_concurrency_tickets=5000
innodb_old_blocks_time=1000
innodb_open_files=300
innodb_stats_on_metadata=0
innodb_file_per_table=1
innodb_checksum_algorithm=0
back_log=80
flush_time=0
join_buffer_size=256K
max_allowed_packet = 16M
query_cache_type=0
sort_buffer_size=256K
table_definition_cache=1400
binlog_row_event_max_size=8K
sync_master_info=10000
sync_relay_log=10000
sync_relay_log_info=10000
ft_min_word_len = 3
max_connect_errors = 1000000
expire_logs_days = 14
max_heap_table_size = 32M
myisam-recover-options = FORCE
slave-net-timeout = 60
sync_binlog = 1
skip-name-resolve

请帮助我,我想加快mysql查询。谢谢

0 个答案:

没有答案