solr cache

1.Solr caches 与 Index Searcher有关,只要Index Searcher 存在,缓存中的任何items就会有效。Caching 和在solr里的普通caches不同,因为他没有失效日期,而是与Index Searcher同在。

2.Solr caches有三种实现,LRU(最小最近使用),FastLRU,LFU。

FastLRU有更快的read,但是更慢的写比着LRU。

3.Solrcache的几种设置维度。

1.field cache:结构 field name:large data structures mapping docIDS to values,应用于facet和sort。

2.document cache:应用于page 场合,缓存预测的值。

3.queryResultcache:优化策略:the unique query  * the number of sort parameters *  the number 

of possible orders of sort

4.filterResultcache:优化策略:the unique filterkey num.

5.user cache:用户自定义缓存。HTTPcache是官方实现的clientCache,我们也可以自定义本地cache

6.improving performance: to set the firstSearcher and next seacher. fistSeacher 用来加速一个新开始的IndexSearcher,比如第一次启动Solr

next searcher 用来加速添加新索引后的查询速度。


评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值