summaryrefslogtreecommitdiff
path: root/scripts/benchmark
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2017-07-05 16:26:49 -0300
committerKali Kaneko <kali@leap.se>2017-07-07 21:25:22 +0200
commit7502bf9928780648b8c1f79ab24eb53e3f1d620d (patch)
tree5f267e87e408f7a3177bcbf3f4b7a0a601b1379b /scripts/benchmark
parentcc499a407fe41c635e2317021acce05ae957ab3a (diff)
[benchmarks] move adbapi tuning script to benchmark scripts folder
Diffstat (limited to 'scripts/benchmark')
-rwxr-xr-xscripts/benchmark/tune-adbapi-parameters.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/benchmark/tune-adbapi-parameters.sh b/scripts/benchmark/tune-adbapi-parameters.sh
new file mode 100755
index 00000000..22408d86
--- /dev/null
+++ b/scripts/benchmark/tune-adbapi-parameters.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+FILE=client/src/leap/soledad/client/adbapi.py
+
+if [ ! -f ${FILE} ]; then
+ exit 0
+fi
+
+sed -i -e "s/\(SQLCIPHER_MAX_RETRIES\) =.*/\1 = 100/" ${FILE}
+sed -i -e "s/\(SQLCIPHER_CONNECTION_TIMEOUT\) =.*/\1 = 100/" ${FILE}