Skip to content

pandas to_sql is slow with fast_executemany when SQL trace/extended events is running #1215

Discussion options

You must be logged in to vote

This really sounds like something you should be asking the SQL Sentry people about, but one thing you might try would be to use this .to_sql() method

https://gist.github.com/gordthompson/1fb0f1c3f5edbf6192e596de8350f205

(to avoid .to_sql() using .executemany()) and see if it makes any difference.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@match-gabeflores
Comment options

@gordthompson
Comment options

Answer selected by match-gabeflores
Comment options

You must be logged in to vote
1 reply
@match-gabeflores
Comment options

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