Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SSIS Large records batch processing Expand / Collapse
Author
Message
Posted Sunday, April 25, 2010 10:19 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, May 28, 2010 12:46 AM
Points: 8, Visits: 18
Hi,
I have nearly 1 Crore records at my source side,i have to transfer these records to destination in batch wise let's suppose like 1 lakh records per batch.How can i implement this scenario.Pls help me.

Thank you.
Post #910173
Posted Monday, April 26, 2010 2:52 AM


SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Today @ 3:56 AM
Points: 4,110, Visits: 5,474
In SSIS OLEDB destination component, set load type to table or view - fast load;
there will be options made available, including rows per batch and maximum insert commit size. set these to circa 10.000 to begin with and increase or decrease according to the speed required and amount of ram available.


____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”
Post #910242
Posted Monday, April 26, 2010 9:48 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, May 28, 2010 12:46 AM
Points: 8, Visits: 18
Please suggest me to do the same with FOR Loop or FOR EACH Loop.

Thanks in Advance
Post #910806
Posted Wednesday, April 28, 2010 12:50 AM


SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Today @ 3:56 AM
Points: 4,110, Visits: 5,474
What is the data source (e.g. oracle, SQL server, DB2, etc)?

If SQL Server, consider using the ROW_NUMBER () function in a CTE to select e.g. 100.000 records at a time.
use variables, e.g. StartAt and UpTo (both of datatype (DT_I8)) to identify which row numbers to use.
also remember to sort.
refer to the following link: http://msdn.microsoft.com/en-us/library/ms186734.aspx


____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”
Post #911647
Posted Wednesday, April 28, 2010 5:13 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, May 28, 2010 12:46 AM
Points: 8, Visits: 18
Thanks For Your Reply..
My Source Data BAse is Oracle and the Target is SQL Server.

Please help...
Post #911783
Posted Wednesday, April 28, 2010 5:29 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, May 28, 2010 12:46 AM
Points: 8, Visits: 18
How to split a Oracle Data source data into different Rawfiles with a fixed size of 10,000?On which we can split the source data of Oracle?
Pls hlp..
Post #911791
Posted Wednesday, April 28, 2010 10:36 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Monday, October 21, 2013 11:43 PM
Points: 945, Visits: 1,234
But why do you need to use a For each loop? As mentioned by stewartc mentioned use batch size and commit size of 10,000 with TABLOCK option in the OLEDB Destination component, using TABLOCK option will speed up the data load operation. If you need more than 10K records to be processed increase the size to 100,000 (1 lakh).

Thanks,


Amol Naik
Post #912183
Posted Wednesday, April 28, 2010 9:42 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, May 28, 2010 12:46 AM
Points: 8, Visits: 18
For each batch(10,000 records) i need to run a script.
Post #912505
Posted Wednesday, April 28, 2010 10:28 PM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Monday, October 21, 2013 11:43 PM
Points: 945, Visits: 1,234
How about this then... Load all the records to a staging table with IDENTITY column. Using T-SQL Loop thru the records using IDENTITY range. This will be more efficient and easy too.

Thanks,


Amol Naik
Post #912524
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse