Scenario:
I have 3 tables that need to be joined together, a where clause to limit the result set, and only a few columns from each selected table. Simply. However, the request to do this is not very nice, and when using ORM between the database and the application, it is like trying to put a square anchor in a circular hole.
My way around this is to create a view that spans the query, and now my application model maps directly to the view in the database; no longer crazy display of the ORM layer.
Question: Assuming that there are no other factors, will the query against the view incur any additional performance penalties that I would not hit if I executed the SQL statement directly? . This is not an indexed view, accept the same as the sentence, keep it simple.
I am convinced that the submission suffers from the additional overhead of "creating." My understanding is that for everything else the same thing, two should have the same performance.
Please clarify. Thank!
sql
PAR Jan 7 2018-11-11T00: 00Z
source share