summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-06-19 17:29:07 +0200
committerChristian Grothoff <christian@grothoff.org>2021-06-19 17:29:07 +0200
commit03e2aa71bc851239ca51c90ba81135ac54c2d5da (patch)
treeff96322d54ff2341aa272a59d01feca1616cf819
parent2a9ec82dceec4dba2d7b1a5f7d891abb6d2cd5b9 (diff)
downloadexchange-03e2aa71bc851239ca51c90ba81135ac54c2d5da.tar.gz
exchange-03e2aa71bc851239ca51c90ba81135ac54c2d5da.tar.bz2
exchange-03e2aa71bc851239ca51c90ba81135ac54c2d5da.zip
note on perf
-rw-r--r--src/exchange/taler-exchange-wirewatch.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-wirewatch.c b/src/exchange/taler-exchange-wirewatch.c
index ab2bc381..40b962f8 100644
--- a/src/exchange/taler-exchange-wirewatch.c
+++ b/src/exchange/taler-exchange-wirewatch.c
@@ -458,6 +458,11 @@ history_cb (void *cls,
}
#endif
+ /* FIXME-PERFORMANCE: Consider using Postgres multi-valued insert here,
+ for up to 15x speed-up according to
+ https://dba.stackexchange.com/questions/224989/multi-row-insert-vs-transactional-single-row-inserts#225006
+ (Note: this may require changing both the
+ plugin API as well as modifying how this function is called.) */
qs = db_plugin->reserves_in_insert (db_plugin->cls,
session,
&details->reserve_pub,