From baee9f0795da3984edb55418e5a45cdbe5dc9fa6 Mon Sep 17 00:00:00 2001 From: Johannes Visintini Date: Tue, 15 Nov 2022 14:54:06 +0100 Subject: [PATCH] Set reasonable value for ttMaxBytesValue --- .../heigit/ohsome/ohsomeapi/utils/ConfigureApplication.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/lombok/org/heigit/ohsome/ohsomeapi/utils/ConfigureApplication.java b/src/main/lombok/org/heigit/ohsome/ohsomeapi/utils/ConfigureApplication.java index f1ad6999..62cd0015 100644 --- a/src/main/lombok/org/heigit/ohsome/ohsomeapi/utils/ConfigureApplication.java +++ b/src/main/lombok/org/heigit/ohsome/ohsomeapi/utils/ConfigureApplication.java @@ -36,8 +36,7 @@ private enum DatabaseType { private String keytablesPassword; private DatabaseType keytablesType = DatabaseType.NONE; private String keytablesUrl; - // TODO replace the following two with reasonable values - private long ttMaxBytesValue = Long.MAX_VALUE; + private long ttMaxBytesValue = 512L * 1024L * 1024L; private int ttMaxNumRoles = Integer.MAX_VALUE; private ConfigureApplication(ApplicationArguments args) {