dbTalk Databases Forums  

inserting / updating

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss inserting / updating in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael Vardinghus
 
Posts: n/a

Default inserting / updating - 05-24-2005 , 02:45 AM






Is updating a much more demanding task than inserting ? If so would the best
approach always be to construct the
insert sentence with joins to as much table as possible in order to avoid
updating ?

Have 3 tables with

a 5 mio
b 11 mio
c 5 mio
d 0

When inserting a/b into d it only takes about 12 minutes but when updating c
it takes 1-2 hours....?

Have tried to index felds used in the where statements (but I'm no indexing
wizard though...

/Michael v.



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default RE: inserting / updating - 05-24-2005 , 04:27 AM






Michael

I think you have your answer already. Why make mutiple passes over the same
data when doing it once will work for you.

Allan

"Michael Vardinghus" wrote:

Quote:
Is updating a much more demanding task than inserting ? If so would the best
approach always be to construct the
insert sentence with joins to as much table as possible in order to avoid
updating ?

Have 3 tables with

a 5 mio
b 11 mio
c 5 mio
d 0

When inserting a/b into d it only takes about 12 minutes but when updating c
it takes 1-2 hours....?

Have tried to index felds used in the where statements (but I'm no indexing
wizard though...

/Michael v.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.