Hello. I have a weird problem with database.
I have 2 equal databases. Same tables and columns only the difference is the content.
One of these databases which is in production is very slow and the other one which i develop on for testing is fast.
Their size is also pretty equal. I have both databases on my local pc now to locate the problem. On the same sql server. Tried both 2008 and 2014. Same problem on both.
I have done some tests and simple query like select * from sometable takes 11 seconds to retrieve 5000 rows on the slow database and 0 seconds on the other one to retrieve the same amount of rows.
One of these databases which is in production is very slow and the other one which i develop on for testing is fast.
Their size is also pretty equal. I have both databases on my local pc now to locate the problem. On the same sql server. Tried both 2008 and 2014. Same problem on both.
I have done some tests and simple query like select * from sometable takes 11 seconds to retrieve 5000 rows on the slow database and 0 seconds on the other one to retrieve the same amount of rows.
Anyone have any idea for solution to this problem?
Thanks