bulkinsert

How to speed up bulk insert to MS SQL Server using pyodbc

How to speed up bulk insert to MS SQL Server using pyodbc Question: Below is my code that I’d like some help with. I am having to run it over 1,300,000 rows meaning it takes up to 40 minutes to insert ~300,000 rows. I figure bulk insert is the route to go to speed it …

Total answers: 6

Use binary COPY table FROM with psycopg2

Use binary COPY table FROM with psycopg2 Question: I have tens of millions of rows to transfer from multidimensional array files into a PostgreSQL database. My tools are Python and psycopg2. The most efficient way to bulk instert data is using copy_from. However, my data are mostly 32-bit floating point numbers (real or float4), so …

Total answers: 2

mongodb: insert if not exists

mongodb: insert if not exists Question: Every day, I receive a stock of documents (an update). What I want to do is insert each item that does not already exist. I also want to keep track of the first time I inserted them, and the last time I saw them in an update. I don’t …

Total answers: 10