ES 修改 查询最大行数
curl -XPUT http://ip:port/your_index/_settings?preserve_existing=true -H 'Content-Type: application/json' -d' { "max_result_window" : "50000000" }'
这里就把es最大查询行数提升到了50000000 默认20000行;
curl -XPUT http://ip:port/your_index/_settings?preserve_existing=true -H 'Content-Type: application/json' -d' { "max_result_window" : "50000000" }'
这里就把es最大查询行数提升到了50000000 默认20000行;
下载rpm包wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm 安裝包仓库yum -y install * 或者yum -...
系统:centos,版本:postgresql-9.6因为要测试postgresql的性能,当多次查询的时候查询结果会因为缓存用时很短,不能模拟出现实使用的场景。因此需要清除缓存。首先stop掉postgresqlsystemctl sto...
truncate table 表名...
将mysql数据取出放到elasticsearch中from datetime import datetime from elasticsearch import Elastic...
整型有符号整型Int8 - [-128 : 127]Int16 - [-32768 : 32767]Int32 - [-2147483648 : 2147483647]Int64 - [-9223372036854775808 : 9223...
对一条sql进行优化时,发现原本很慢的一条sql(将近1分钟) 在第二次运行时, 瞬间就完成了(0.00sec) 这是因为mysql对同一条sql进行了缓存,服务器直接从上次的查询结果缓存中读取数据,而不是重新分析...