StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
Bulk Saving?
Bulk Saving?
Post Reply
Like
0
Bulk Saving?
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Edhy Rijo
E
Edhy Rijo
posted 15 Years Ago
ANSWER
HOT
Topic Details
Share Topic
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
Hi guys,
I have an import process of CSV files with more than 300 thousand records, I have to read each one and compare against my records and then insert them in another table for future reference with other imports.
My approach is to loop through the imported records collection and then add them to the BO using BO.NewRow(), so far so good, the problem comes when I need to save them using BO.Save(), it takes a long time to actually insert those 300+K records.
I am using the DDT for all my data modeling, and this table is setup to use Store Procedures for all Insert/Update/Delete and also is using an AutoIncrement PK.
In the BO I have turn off the Update/Delete ConcurrencyType and there is no value in the RowVersionOrTimestampColumn.
Is there anything else I may need to do to save those records faster?
Edhy Rijo
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Bulk Saving?
Edhy Rijo
-
15 Years Ago
SQLBULKCOPY Somthing like this: (pass in the currentdatatable fo...
Keith Chisarik
-
15 Years Ago
if your SQL table matches the structure of your BO, you can skip the...
Keith Chisarik
-
15 Years Ago
Hi Keith,
Thanks a lot for the code sharing. I was just...
Edhy Rijo
-
15 Years Ago
This saved my butt way back when I was using DB2 (uhggg) , I use it a...
Keith Chisarik
-
15 Years Ago
Hi Keith,
I am very close to make this work. I only having...
Edhy Rijo
-
15 Years Ago
Never mind, I found it:
[quote]For Each fieldName As String In...
Edhy Rijo
-
15 Years Ago
ahh yes I was pulling from a fields mapping table because my BO...
Keith Chisarik
-
15 Years Ago
[quote][b]Keith Chisarik (09/01/2009)[/b][hr]ahh yes I was pulling...
Edhy Rijo
-
15 Years Ago
My bet is ... 6 seconds.
Keith Chisarik
-
15 Years Ago
[quote][b]Keith Chisarik (09/01/2009)[/b][hr]My bet is ... 6...
Edhy Rijo
-
15 Years Ago
you can get that better with some tweaking :) Congrats, I remember...
Keith Chisarik
-
15 Years Ago
Bulk copies....can't live without'em! :D
Trent L. Taylor
-
15 Years Ago
BTW, is there a way to simply bulk update the records instead of...
Edhy Rijo
-
15 Years Ago
Trent,
Talking about concurrency, in this same process,...
Edhy Rijo
-
15 Years Ago
Yes. There are a number of ways to make sure that there is not any...
Trent L. Taylor
-
15 Years Ago
Thanks for the info.
I believe the AutoHandleCollisions...
Edhy Rijo
-
15 Years Ago
That is the only place that the dialog is fired from. So if you want...
Trent L. Taylor
-
15 Years Ago
Hi
Any plan to add this feature to BO by SF team?
ChanKK
-
14 Years Ago
Hello :), Which feature are you referring to? The...
Dustin Taylor
-
14 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search