From f88a0e43ac6d4087a1d3242cd2365db6f38bba6f Mon Sep 17 00:00:00 2001 From: Martin Rueckl Date: Mon, 14 Aug 2023 17:29:58 +0200 Subject: [PATCH] document un-optimized behaviour of executemany Resolves #196 Signed-off-by: Martin Rueckl --- src/databricks/sql/client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/databricks/sql/client.py b/src/databricks/sql/client.py index eed13f1c5..cad4e5926 100644 --- a/src/databricks/sql/client.py +++ b/src/databricks/sql/client.py @@ -526,9 +526,11 @@ def execute( def executemany(self, operation, seq_of_parameters): """ - Prepare a database operation (query or command) and then execute it against all parameter - sequences or mappings found in the sequence ``seq_of_parameters``. + Execute the operation once for every set of passed in parameters. + This will issue N sequential request to the database where N is the length of the provided sequence. + No optimizations of the query (like batching) will be performed. + Only the final result set is retained. :returns self