摘要: 第一个例子 建立映射 PUT /my_index { "mappings": { "my_type": { "properties": { "location" : { "type": "geo_point" //地理位置的分词器是geo_point } } } } } 填充数据 PUT my_in 阅读全文
posted @ 2020-04-26 11:03 cchilei 阅读(2894) 评论(0) 推荐(0) 编辑
摘要: count(\ )和count(1)的sql性能分析 一、性能测试背景 系统程序数据库层调用了大量的count(\ ) 的SQL语句,鉴于开发的疑惑count( )与count(1)到底有什么区别。哪个性能更好更快一些。下面我们带着疑惑进行SQL性能分析。 二、测试数据准备 插入1000000条数据 阅读全文
posted @ 2020-04-26 10:55 cchilei 阅读(601) 评论(0) 推荐(0) 编辑