Reply to SQL View Performance

Your name:

Reply:


Posted by Auday Alwash on 11/24/05 05:14

Hi all,

SQL Server 2000 service pack 3 running on Quad zeon windows 2003 server
with 6GB of ram.

A few months ago we split our databases into operational and completed
data...

So now instead of doing select * from tblTest, we do select * from
tblTestboth where tblTestboth is a view like this:

Select *
From Operational.dbo.tbltest
UNION
Select *
From Archive.dbo.tbltest

The tables on both databases are heavily indexed but it still takes much
longer to do the select * from tblTestBoth than it is to do

Select *
From Operational.dbo.tbltest
UNION
Select *
From Archive.dbo.tbltest

Can anyone please tell me why that is? We are starting to get timeouts
regularly...

Should I use indexed views even though the data is inserted/updated
multiple hundres of times per second?

Thank you very much in advance for your help...

Regards,

Auday

*** Sent via Developersdex http://www.developersdex.com ***

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация