Hi,
I have a web application (ASP.NET 2.0) connecting to a sql server 2005 instance (SP2) residing on the same server. I recently restored a fresh backup of the live database in the the same sql server instance as a new database (essentially duplicated the database). I also duplicated the web site to perform some tests on this restored database. Both databases have same content, are on the same instance and physical files are on the same disk.
On a given page in the web app (many select statements are issued to generate this page), i consistently have about 3 times the performance using the restored database instead of the live one, even when the live database is idle (no requests from the production web site).
Any ideas why a restored database would be faster ? I tried rebuilding indexes on the live database but the performance gap stays the same.
Thanks for any pointers