OSCache vs. EHCache

前端 未结 10 2048
囚心锁ツ
囚心锁ツ 2020-12-28 17:47

Never used a cache like this before. The problem is that I want to load 500,000 + records out of a database and do some selecting/filtering wicked fast.

I\'m thinkin

10条回答
  •  囚心锁ツ
    2020-12-28 18:26

    They're both pretty solid projects. If you have pretty basic caching needs, either one of them will probably work as well as the other.

    You may also wish to consider doing the filtering in a database query if it's feasible. Often, using a tuned query that returns a smaller result set will give you better performance than loading 500,000 rows into memory and then filtering them.

提交回复
热议问题