summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/storage_lmdb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp
index 3647472..201e1a0 100644
--- a/common/storage_lmdb.cpp
+++ b/common/storage_lmdb.cpp
@@ -928,8 +928,8 @@ static size_t mapsize()
928 return (size_t)1048576 * (size_t)1000; // 1MB * 1000 928 return (size_t)1048576 * (size_t)1000; // 1MB * 1000
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) 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)100000; // 1MB * 100'000 932 return (size_t)1048576 * (size_t)10000; // 1MB * 10'000
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