solrclient php,PHP - Manual: SolrClient::commit (官方文档)

这篇博客讨论了Solr中软提交和硬提交的区别。软提交仅使索引更改可见,速度快但不保证数据在磁盘上的持久性,适合实时搜索需求。而硬提交则会同步索引文件并确保即使在JVM崩溃或电源丢失后,变化也能被保留。对于需要快速响应搜索的场景,建议频繁进行软提交,减少硬提交的频率。
摘要由CSDN通过智能技术生成

This will refresh the 'view' of the index in a more performant manner, but without "on-disk" guarantees. (Solr4.0+)

A soft commit is much faster since it only makes index changes visible and does not fsync index files or write a new index descriptor.

If the JVM crashes or there is a loss of power, changes that occurred after the last hard commit will be lost.

Search collections that have near-real-time requirements (that want index changes to be quickly visible to searches) will want to soft commit often but hard commit less frequently.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值