Property MmapSizeBytes

Assembly: redb.SQLite.dll

Size, in bytes, of the part of the database file every connection maps into memory
(PRAGMA mmap_size). 0, the default, leaves SQLite as it is: pages are read through
its own page cache, which is 2 MB per connection. On a database of several gigabytes that
cache is the cost of every query that reads more than a few thousand rows: measured on
2.5 GB, the same statements ran 2-4 times faster with the file mapped. A mapping takes
address space, not memory of its own - the pages live in the file cache of the operating
system and are shared by all connections. SQLite caps the value at its compile-time limit
(about 2 GB in the bundled build); what lies beyond the mapped part is read as before.

public static long MmapSizeBytes { get; set; }