Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
karmeeabi
Starting Member
18 Posts |
Posted - 2013-07-11 : 09:11:17
|
Hi, i am currently trying to sort the data using Sort Transformation for a database which has 23,00,000 ( 23 Lacs) data point. below mentioned are the steps i have done so far.Create a DFTOLE Database Source - Selected the particular DatabaseSort Transformation - Session_ID Data type : (Numeric)& Line_Time data type : (Datetime)OLE Database Destination - Created a new tablealso i tried to used the show advance editor andISSORTED as TrueSession_ID 1Line_time 2but that is not sorting properly hence have choosed the sort transformation option.currently Source table is completed and showing in GREENSort Transformation is in YELLOWDestination table is still in WHITEnothing has moved so farMissed to say one thingRight clicked on the DFT clicked on PropertiesDefault buffer Max Row as 10000 recordsDefault buffer size changed to 104857600from 15:54:12till 18:39:00need help to fix this . please help me.Regards,Karthik Shankaran (KS)+91-9940074724 |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2013-07-11 : 11:18:46
|
It means sorting the 2.3 millions rows are expensive and time consuming. There is no other option than wait.Unless you can sort the data already at the source? N 56°04'39.26"E 12°55'05.63" |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
wowguide
Starting Member
3 Posts |
Posted - 2013-08-04 : 03:50:03
|
unspammed |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-08-05 : 02:36:46
|
quote: Originally posted by karmeeabi Hi, i am currently trying to sort the data using Sort Transformation for a database which has 23,00,000 ( 23 Lacs) data point. below mentioned are the steps i have done so far.Create a DFTOLE Database Source - Selected the particular DatabaseSort Transformation - Session_ID Data type : (Numeric)& Line_Time data type : (Datetime)OLE Database Destination - Created a new tablealso i tried to used the show advance editor andISSORTED as TrueSession_ID 1Line_time 2but that is not sorting properly hence have choosed the sort transformation option.currently Source table is completed and showing in GREENSort Transformation is in YELLOWDestination table is still in WHITEnothing has moved so farMissed to say one thingRight clicked on the DFT clicked on PropertiesDefault buffer Max Row as 10000 recordsDefault buffer size changed to 104857600from 15:54:12till 18:39:00need help to fix this . please help me.Regards,Karthik Shankaran (KS)+91-9940074724
Sort tranformation is a fully blocking transform and obviously will cause performance issues especially for large datasets.If your source is database why cant you sort and bring the data from db itself by using ORDER BY in the query? Once you do that you can take advanced editor of the source task and in properties mark IsSorted property as true and set sortkey for columns used in ORDER BY as 1,2 etc in the same order as you've specified them in ORDER BY. Once you do this you can drop the sort transformation altogether and you should get better performance from the package while executing.------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
|
|
|