How to Create Database View in PostgreSQL Enterprise Geodatabase
Database View is one cool things about database management in DBMS. Using database view, you can deliver so many options of data publishing without messing up your database and messing up your tables structure. Database View is a common features that almost every database platform could have that features, includes here is spatial database (PostGIS, Oracle Spatial, or Enterprise Geodatabase).
If we talks about database view in Enterprise Geodatabase, it has all the features of enterprise geodatabase feature class. Database view in Enterprise Geodatabase is also directly linked with its parent tables. So any modification or updating in parent tables will also reflected in the database view. The database view itself is read only and only support reading/view.
Database View as I already told actually is one of the DBMS features regardless what kind of DBMS are used. If we see it in Enterprise Geodatabase Point of View, Database View when it is just created or imported, is not considered as native Enterprise Geodatabase Tables/Feature Classes. It didn't have many of Enterprise Geodatabase features although it is stored inside Enterprise Geodatabase and using ST_Geometry Spatial columns just like native Enterprise Geodatabase Feature Classes. It should be registered in the Enterprise Geodatabase to make it behave like native Enterprise Geodatabase Feature Classes.
There are also other benefit about registering database view, here are:
- Performance improvements for viewing and querying due to table metadata (rowid, extent, etc) being stored within the system tables
- No prompt to specify a unique identifier when adding database views to ArcMap/Pro clients
- Ability to create and store geodatabase metadata on the registered view
And if you are Enterprise Geodatabase user, and may be is not yet familiar with database view, its benefit, how to construct them using SQL Query, and how to register it inside Enterprise Geodatabase, I already made a tutorial about how to do it all below.
Comments
Post a Comment