I have a transaction table where I have around 1 million records. I have created a view for this table with around 50 other tables joined via foreign key.
Now, when I fetched a record using a simple query, which one of the following will be faster? Table or View?
My query is fetching a real field from a Table and where clause includes cluster index.
Select Field1 from Table1 where Sequence = xxx
or
Select Field1 from View1 where Sequence = xxx
I feel that the first query (Table1) will be faster however when I see Query Execution Plan, I dont see any difference. So, I am confused as whether it makes any difference if I use table instead of view? Also, if there are more records, will it make substantial difference?
Awaiting your reply.
Thanks
Rahul