summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/storage_lmdb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp
index 201e1a0..fe3b303 100644
--- a/common/storage_lmdb.cpp
+++ b/common/storage_lmdb.cpp
@@ -929,7 +929,7 @@ static size_t mapsize()
929 } 929 }
930#ifdef Q_OS_WIN 930#ifdef Q_OS_WIN
931 //Windows home 10 has a virtual address space limit of 128GB(https://msdn.microsoft.com/en-us/library/windows/desktop/aa366778(v=vs.85).aspx#physical_memory_limits_windows_10). I seems like the 128GB need to accomodate all databases we open in the process. 931 //Windows home 10 has a virtual address space limit of 128GB(https://msdn.microsoft.com/en-us/library/windows/desktop/aa366778(v=vs.85).aspx#physical_memory_limits_windows_10). I seems like the 128GB need to accomodate all databases we open in the process.
932 return (size_t)1048576 * (size_t)10000; // 1MB * 10'000 932 return (size_t)1048576 * (size_t)200; // 1MB * 200
933#else 933#else
934 //This is the maximum size of the db (but will not be used directly), so we make it large enough that we hopefully never run into the limit. 934 //This is the maximum size of the db (but will not be used directly), so we make it large enough that we hopefully never run into the limit.
935 return (size_t)1048576 * (size_t)100000; // 1MB * 100'000 935 return (size_t)1048576 * (size_t)100000; // 1MB * 100'000