Skip to content

question about execute_values performance #1427

Answered by dvarrazzo
jerch asked this question in Q&A
Discussion options

You must be logged in to vote

If you look at execute_batch code, it doesn't do much different than what you do. I don't know if the difference is in the client crafting the batches, in the time to send them over the network, or the time for the server to apply them: there is too much variability in that.

Maybe we are doing something silly, or maybe we are doing something more generic than you are, because I assume that, if you are only handling numbers, you are not taking all the care we need to take with users possibly trying to send values to escape.

You are in a much better position than us to profile the difference between your code and ours (which is just a handful of python statements, no more than that)) and yo…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jerch
Comment options

@dvarrazzo
Comment options

@jerch
Comment options

@dvarrazzo
Comment options

Answer selected by jerch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants