if we get data from code through sql using select query and same query is executed on sql view, then which way is faster from performance point. mean view’s display data faster or direct sql query that we run on tables fetch the data faster?
Share
You cannot answer such a generally asked question. Views can be faster, but don’t have to be. It highly depends on the DBMS you are using, on the view you created, on the amount of data you have loaded, on the indexes you created and on the queries you run against the table/view.