![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have got an update query which takes significantly more time if put within a transaction (having another insert and update) than if run outside the transaction. In Transaction -> 34 min Outside transaction -> 1 min I have enough space for log file to grow. What could be the reason for this difference? The update looks something like this: UPDATE we SET we.BaseEntitlementKey = weBEKey.BaseEntitlementKey, we.LastRefreshDate = @StartDate FROM Warehouse.dbo.EntitlementBase we INNER JOIN Delta.dbo.Entitlement de ON we.EntitlementID = de.EntitlementID INNER JOIN Staging.dbo.Wrk_EntitlementBase_PostLoad weBEKey (NOLOCK) ON weBEKey.BaseEntitlementID = we.BaseEntitlementID |
#3
| |||
| |||
|
|
I have got an update query which takes significantly more time if put within a transaction (having another insert and update) than if run outside the transaction. In Transaction -> 34 min Outside transaction -> 1 min I have enough space for log file to grow. What could be the reason for this difference? The update looks something like this: UPDATE we SET we.BaseEntitlementKey = weBEKey.BaseEntitlementKey, we.LastRefreshDate = @StartDate FROM Warehouse.dbo.EntitlementBase we INNER JOIN Delta.dbo.Entitlement de ON we.EntitlementID = de.EntitlementID INNER JOIN Staging.dbo.Wrk_EntitlementBase_PostLoad weBEKey (NOLOCK) ON weBEKey.BaseEntitlementID = we.BaseEntitlementID |
![]() |
| Thread Tools | |
| Display Modes | |
| |