This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi What is more effiecient to fetch data --> a join of lets say 5 tables. --> a view build on top of these 5 tables. as per my info view is nothing but a created stored in DB and this query inturn fetch data from the tables only. kindly clarify...
~ Pratibha Malhotra<br /> <br />Sun Certified Java Programmer<br />SCEA 1.4 (In Progress)<br />~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />"Many of life's failures are people who did not realize how close they were to success when they gave up!!"
Gunjan, In general, querying a view is slower than querying directly from the table(s). But in order to really know which is faster, I think you would need to record the time it takes in both cases. Good Luck, Avi.
Avi, Gunjan, A view is nothing but a select statement stored within the database. Views and queries should therefore not differ in the execution plan or the performance. One exception that comes to mind: views might be slightly more sensitive to sub-optimal formulation of search conditions, as the underlying query is abstracted from and thus likeley not known at all times. But that doesn't do away with the general rule: same execution plan, same performance. Good riding, Rudy.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: effiiciency comparison while fetching rows from a tables or view build on top of them