开发者

Lucene.NET Performances Concerns with ASP.NET MVC

开发者 https://www.devze.com 2022-12-21 03:53 出处:网络
I\'m currently developping a web site with asp.net that use Lucene.Net to perform fulltext queries. The web site display a couple of data lists.

I'm currently developping a web site with asp.net that use Lucene.Net to perform fulltext queries.

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 fullte开发者_如何学编程xt 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消