After reading other similar questions on SO/Google, I get DB views(Virtual/Simple table views not materialized views) are primarily used for convenience and security, not for speed improvements. Some people says views are reusable and at central place but that can be kept at central place also in code
Per mine understanding Views should have been marginally better than query when coming from web server. Reason is when query is executed through code in Web server, the query text needs to travel on network which is not the case in views. I believe both query(prepared statement) and Views are pre-compiled ? . So same in that sense. Is my understanding correct here ?
This resource says opposite
Performance – What may seem like a simple query against a view could turn out to be a hugely complex job for the database engine. That is because each time a view is referenced, the query used to define it, is rerun.
But this is true for query also. Is not it ?
This question is for simple views not materialized/indexed view
Reference resources are Is a view faster than a simple query?