Using RavenDB as a persistent cache

一个人想着一个人 提交于 2019-12-08 01:14:25

问题


I have currently have a web application that caches a large amount of data (several hundred thousand entries) in memory for quick lookup and then in SQL Server as a persistent cache. Basically the information consists of geocodes of addresses where the geocode is retrieved via a remote web service which takes time if needed to be called continuously rather than cached.

Would using RavenDB (or other suggestions) be a better way of caching this information in a persistent store in terms of both speed and memory? Currently the app is hosted on a server which SQL Server sucks most of the memory dry so I would like a more light weight solution.


回答1:


RavenDB as a document database seems overkill to me if only used as a cache. What about redis as a value store? It could better match what you are after




回答2:


RavenDb should be faster for reading than SQL. Not that writing is slow, but it's optimized for read operations as far as I know. So you should try it, it should be better performance-wise. I'm not sure about memory though.

If you want more info, you can always try the RavenDb Google Group. Ayende follows it, so he might answer himself.



来源:https://stackoverflow.com/questions/3350313/using-ravendb-as-a-persistent-cache

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!