栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

es查询优化

es查询优化

 查询优化 
  • Give memory to the filesystem cache
  • Use faster hardware
  • document modeling
  • Search as few fields as possible
  • Pre-index data
  • Consider mapping identifiers as keyword
  • Avoid scripts
  • Search rounded dates
  • Force-merge read-only indices
  • Warm up global ordinals
  • Warm up the filesystem cache
  • Use index sorting to speed up conjunctions
  • Use preference to optimize cache utilization
  • Replicas might help with throughput, but not always

    官方优化

段 

如上图:

  • 一个集群包含1个或多个节点;

  • 一个节点包含1个或多个索引;

  • 一个索引:类似 Mysql 中的数据库;

  • 每个索引又由一个或多个分片组成;

  • 每个分片都是一个 Lucene 索引实例,您可以将其视作一个独立的搜索引擎,它能够对 Elasticsearch 集群中的数据子集进行索引并处理相关查询;

  • 每个分片包含多个segment(段),每一个segment都是一个倒排索引。

    在查询的时,会把所有的segment查询结果汇总归并为最终的分片查询结果返回。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/689741.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号