我需要经常删除文档,但是es
只将这些标记为已删除。如果删除的文档很多,查询速度会降低?还有其他问题吗?
编辑
换句话说,我经常从 index
中删除很多文档。 ,并且永远不要使用force merge
api释放磁盘使用情况,一段时间后会出现查询性能问题吗?
最佳答案
您必须简单地向您的elasticsearch节点发送一个http POST
请求,结构如下
http://localhost:9200/your_index_name/_forcemerge
有关更多详细信息,您可以阅读此 page
If there are a lot of deleted docs,the speed of query will lower?
答案是肯定的
In other words,I often delete a lot of docs from a index,and never use force merge api to release disk usage,i will have query performance issues after a period of time?
当插入或更新操作过多(导致段脏)时,elasticsearch 会自动运行合并过程。另一方面,您可以使用 forcemerge
api 自己对合并过程进行一些控制。
关于elasticsearch - 大量删除的文档会影响查询速度吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40099446/