Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
444 views
in Technique[技术] by (71.8m points)

mysql - Using SSIS Recordset to execute stored procedures per row

I'm tasked with converting a very old & simple Java program used for daily data processing of a MySQL database to an SSIS package. The program queries the DB to get a list of records and then executes a set of 10 or so procedures with the primary key of the record passed in as a parameter. Once execution completes the next record is loaded and the process repeats. In SSIS I use an ODBC connection to MySQL, run the query and pass the results into a recordset destination. Back on the control flow tab I use a ForEach loop to load each recordset & execute the set of procedures before loading the next record. The initial loading of the data into the recordset is very fast but there is a large delay in-between each record loaded by the ForEach loop before the procedures are executed. The java program can execute in 15-20 min while the ssis package takes over a day. As a workaround i'm using SQL Server to build a cursor and a linked server to access mySQL & is similar to the Java processing time.

I know SSIS works better when designed to work in batches but were not trying to redesign the entire thing but rather move it to a language that we can better support with our current team. Are there settings i can disable to eliminate the delay between records? is this something that SSIS will never be very efficient at?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...