× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Nathan

After another post, where someone mentioned multiple insert techniques with JDBC, I looked at the same thing with ODBC - you can specify multiple statements in one ExecDirect, one transmission. This was presented as a way of blocking, it seems. Could be a nice solution.

Volume can still be an issue!

Vern

On 2/25/2013 5:31 PM, Nathan Andelin wrote:
If performance were the primary concern, then you might need to look into parallel processing on the MS SQL Server side; using multiple threads to load the data.

Have an IBM i process that outputs records to say 4 text files, FTP them to the SQL Server machine, then run some kind of multi-threaded process (or multiple processes) on that box to perform inserts simultaneously.

As you've discovered, sending millions of "messages" via JDBC has too much overhead. And no matter how you slice and dice this, you're still subject to SQL Inserts on the SQL Server box.

If the positions were reversed, and you were importing data into IBM i files, you could increase performance GREATLY by using RPG block reads and writes.

-Nathan





----- Original Message -----
From: "Anderson, Kurt" <KAnderson@xxxxxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Cc:
Sent: Monday, February 25, 2013 10:49 AM
Subject: RE: JDBCR4 and Inserts

I'm using the jTDS driver.

Yep, I'm re-preparing the statement every time. I'll test the idea of preparing once and see how it goes. Though it sounds like the JDBC connection might not be the answer here, and that's fine. Good idea about mapping to the IFS.

In the scenario where I'm creating a file on the IFS, Bulk Insert is how the file is getting loaded into the database.

Thanks for the responses,
Kurt


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.