Skip to content

Commit 378f395

Browse files
martinitussaishreeeee
authored andcommitted
Document behaviour of executemany (#213)
Signed-off-by: Martin Rueckl <enigma@nbubu.de> Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
1 parent 06bd616 commit 378f395

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/databricks/sql/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,8 +701,10 @@ def execute(
701701

702702
def executemany(self, operation, seq_of_parameters):
703703
"""
704-
Prepare a database operation (query or command) and then execute it against all parameter
705-
sequences or mappings found in the sequence ``seq_of_parameters``.
704+
Execute the operation once for every set of passed in parameters.
705+
706+
This will issue N sequential request to the database where N is the length of the provided sequence.
707+
No optimizations of the query (like batching) will be performed.
706708
707709
Only the final result set is retained.
708710

0 commit comments

Comments
 (0)