zillow / ctds

Python DB-API 2.0 library for MS SQL Server
MIT License
83 stars 12 forks source link

Bulk insert - Do the string encodings inside C #39

Closed gizmo93 closed 5 years ago

gizmo93 commented 5 years ago

At the moment we need to convert python strings to the right encoding. Thats slow, because we need to do it in python per cell. Maybe there is a possibility to implement this inside the C code for better performance.

joshuahlang commented 5 years ago

I would assume that str.encode is implemented using the same API that the CPython API provides. Or are you suggesting something else? Can you provide a code example of what you're trying to accomplish?