简体   繁体   English

Lucene.NET性能与ASP.NET MVC有关

[英]Lucene.NET Performances Concerns with ASP.NET MVC

I'm currently developping a web site with asp.net that use Lucene.Net to perform fulltext queries. 我目前正在使用asp.net开发一个网站,该网站使用Lucene.Net来执行全文查询。

The web site display a couple of data lists. 该网站显示几个数据列表。

The problem is that i perform fulltext queries FOR EACH items displayed in the list which can be a performance issue. 问题是我对列表中显示的每个项目执行全文查询,这可能是性能问题。

So i wonder if i should "pre fulltext query" with a kind of Search Engine maybe with caching topology instead of performing fulltext queries on demand when items are displayed (queried) 因此,我想知道是否应该使用一种搜索引擎来进行“预全文查询”,也许是使用缓存拓扑,而不是在显示(查询)项目时按需执行全文查询。

I would recommend caching fulltext query results as they're generated. 我建议在生成全文查询结果时将其缓存。

As you loop through the items in the list, check a cache to see if you already have results. 当您遍历列表中的项目时,请检查缓存以查看是否已经有结果。 If not, get the fulltext results and put them in the cache. 如果不是,请获取全文结果并将其放入缓存中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM