RunInMemory == true Yet Still Writing Files to Disk

30 views
Skip to first unread message

João Bragança

unread,
Mar 29, 2017, 8:08:27 AM3/29/17
to RavenDB - 2nd generation document database
With the following code

            _documentStore = new EmbeddableDocumentStore
            {
                RunInMemory = true,
                Configuration =
                {
                    Settings =
                    {
                        ["Raven/Licensing/AllowAdminAnonymousAccessForCommercialUse"] = "true",
                        ["Raven/License"] = GetRavenLicense()
                    }
                },
                Conventions =
                {
                    AcceptGzipContent = false
                },
                DataDirectory = Path.Combine(ravenDbDataDirectory.FullName, "system")
            };

I would expect ravendb not to put anything on disk. However I see lots of files named like ravendb-59460-1-compression.buffers in the working directory. Is this expected?

Oren Eini (Ayende Rahien)

unread,
Mar 29, 2017, 8:37:02 AM3/29/17
to ravendb
Yes, they aren't actually written to disk most of the time, but that allows us to use the same codepath all the time, and since this is mmap, you odn't pay the perf costs

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages