About 286,000 results
Open links in new tab
  1. sql - Is a view faster than a simple query? - Stack Overflow

    To that end, SQL Server, Oracle, etc. will typically provide a "cached" or "compiled" version of your view, thus improving its performance. In general, this should perform better than a "simple" query, though if …

  2. SQL-Server Performance: What is faster, a stored procedure or a view?

    However, as a general answer for an SQL Server specific implementaion... In general, a Stored Procedure stands a good chance of being faster than a direct SQL statement because the server …

  3. Do database views affect query performance? - Stack Overflow

    Feb 9, 2009 · Are database views only a means to simplify the access of data or does it provide performance benefits when accessing the views as opposed to just running the query which the view …

  4. How can I optimize views in SQL Server for speed

    Feb 9, 2011 · Nesting views that call other views is an extremely bad technique for performance. Since it can't be indexed, it has to call the entire underlying view in order to get the one record the top would …

  5. sql server - Is running a query on a view any faster or slower than ...

    1 Is there performance reasons to use views? I realize this answer might be different per database. I'm using MS SQL but am curious about any database really. Does a view in general cause a …

  6. sql server - Are Views optimized when I add a WHERE clause to them ...

    I'm asking because I have to query a large table (44mil rows) twice from a linked server, and get an aggregate of the results. I want to know if I should create two views to access the data, one for each …

  7. sql server - Improving performance on a view with a LOT of joins ...

    Dec 18, 2009 · This is a hard one, with a complex view you also have potential interactions with queries against the view, so guaranteeing reasonable performance will be quite hard. Outer joins in views …

  8. sql server - Table-Valued Function (TVF) vs. View - Stack Overflow

    Apr 18, 2015 · What's the difference between table-valued functions and views? Is there something you can do with 1 that's hard or impossible to do with the other? Or does the difference lie in efficiency?

  9. performance - SQL Server Nested views, how deep is too much?

    Nov 16, 2020 · Broadly, if you have a well-designed series of views where each level has some defined responsibility, you're much more likely to have reasonable performance than if you have an …

  10. sql server - Does the performance impact even happen on simple …

    Sep 18, 2024 · For remote view, local server can only assume a number of return rows, without WHERE clause, it's 10K; with WHERE clause, it's 100 or 1K. This causes poor performance, and that's why …