Note: as Itamar said you can't limit the amount of memory to a set
amount, you can just reduce it.
Matt Warren
unread,
Sep 9, 2011, 8:01:49 AM9/9/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ravendb
Actually you probably don't want to prevent RavenDB from caching docs
(using using SkipSettingDocumentsInDocumentCache) as that will be a
perf hit, instead you just want to configure how much RAM it can use
for the cache.
> Also you can limit how much caching Raven does by using code like
> this:
>
> using (DocumentCacher.SkipSettingDocumentsInDocumentCache())
> {
> ...
>
> }
>
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ravendb
Thanks a lot this is just what I was looking for.
My initial question was not phrased too well! :-) I meant reduce
instead of a set a hard limit.
Thanks again
Andy
On Sep 9, 1:01 pm, Matt Warren <mattd...@gmail.com> wrote:
> Actually you probably don't want to prevent RavenDB from caching docs
> (using using SkipSettingDocumentsInDocumentCache) as that will be a
> perf hit, instead you just want to configure how much RAM it can use
> for the cache.
>
> You can do that using the settings MemoryCacheLimitPercentage and