LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is this the fastest way to insert 100k rows into a database?

I'm looking to insert ~100k rows into a database as fast as possible. I'm connected to the database through a small LAN with static IP adresses. The target database is running my SQL. Here's the fastest I've gotten the code so far. Task manager shows that it's only sending like 2.5mbps. If I take the size of the 2D array (64MB) and divide by the time it takes to transfer it currently, I calculate ~160kbps. Is that the best I can hope for with the NI DB Toolkit?

 

sql snippet.png

 

CLED (2016)
0 Kudos
Message 1 of 2
(2,124 Views)

Hi,

 

Use DB Tool Insert Data VI to insert the data in the database.

You can insert complete row data at a time. No need to insert single-single element in database this will reduce your code performance.

Thanks and Regards
Himanshu Goyal | LabVIEW Engineer- Power System Automation
Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
It Only gets BETTER!!!
0 Kudos
Message 2 of 2
(2,113 Views)