From: Aki Tuomi Date: Wed, 11 Jan 2017 17:43:30 +0000 (+0200) Subject: lib-dict-sql: Try merge sets to single update X-Git-Tag: 2.2.29.1~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e44f1143983d6d186a229bb7206defbe11b24804;p=thirdparty%2Fdovecot%2Fcore.git lib-dict-sql: Try merge sets to single update This attempts to put mergeable keys into same update instead of using multiple SQL statements. --- diff --git a/src/lib-dict/dict-sql.c b/src/lib-dict/dict-sql.c index 696f3aed6c..03f9ea70a7 100644 --- a/src/lib-dict/dict-sql.c +++ b/src/lib-dict/dict-sql.c @@ -1295,7 +1295,7 @@ static void sql_dict_set(struct dict_transaction_context *_ctx, t_array_init(&build.fields, 1); build.extra_values = &values; build.key1 = key[0]; - build.inc = FALSE; + build.inc = TRUE; field = array_append_space(&build.fields); field->map = ctx->prev_set_map;