I've got too many views in my GIS database. I'm starting to wonder if the database isn't the right place to store queries. Any tips?
- Only store queries as database views if the view is spatial?
- ...since dragging views into the map is convenient; .lyr files in a network folder are less convenient.
- Try not to have "views on top of views"? I.e., don't split views into manageable parts. Put all logic into a single big view to avoid clutter.
- Store all other queries in the applications that use them -- i.e. reporting software such as Excel or Power BI?
- Store the master query as a .sql file in a network folder?
- Refactor queries so that they're simpler. And possibly eliminate some unnecessary queries. Get outside input from codereview.stackexchange.com or some other kind of code review.
- Other?
How are things done in the non-GIS world? I'm starting to get the impression that people don't create many database views. Instead, logic is usually stored at the application level. Is that your experience?
(ArcMap/Enterprise 10.7.1, ArcGIS Pro 2.6.8, Oracle 18c, SDE.ST_GEOMETRY)