optimizing enterprise geodatabase data to create high …€¦ · working with database views and...

24
Optimizing Enterprise Geodatabase Data to Create High-Performing Feature Services Joe Zheng Li & Alex Thurstlic

Upload: others

Post on 04-Jul-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Optimizing Enterprise Geodatabase Data to

Create High-Performing Feature Services

Joe Zheng Li & Alex Thurstlic

Page 2: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Optimizing Data for High-Performing Feature Services

• Target Audience

- Source data in enterprise geodatabases

- Publisher or user of feature services

- Editing data through web applications

Page 3: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Optimizing Data for High-Performing Feature Services

• Agenda

- Sample Case Study

- Tips, Tricks, and Best Practices

- Questions at the end

Please silence cell phones

Page 4: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

ArcGIS Service Performance

• Why do we need to consider ArcGIS Service performance?

- Performance can define the user experience

- Web experiences are expected to be fast and easy

- Avoid user frustration and confusion

Page 5: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Creating High-Performing Feature Services

• How to?

- Data Design

- As the amount of data increases, the performance of the service may decrease

- Map Authoring

- Layer Properties

- Data Management

- Database Maintenance

Page 6: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Demo 1:

Case Study: Traffic Accident Reporting

• Product: Web/mobile application

• Users: Car accident witnesses

• Purpose: Report traffic accident in SF

Page 7: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Geodatabase ArcGIS Pro ArcGIS Server

ArcGIS OnlineWeb App Builder

Author a Map

Publish a

Feature Service

Create a web

map using

REST service

Create a web

applicationLaunch app

Page 8: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Demo 1

Web App -

Witness

Report

Page 9: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Prepare data with the intended user in mind

• Points to consider

- Who will be using this feature service/web map?

- What functionality do the users need?

- What information is important?

- How will the feature service or map be accessed?

Page 10: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Data Design:

• Feature Dataset—Don't use to thematically store data

• Are all of the columns in each layer necessary?

• Are all of the records necessary?

• What are the data field types and could they be affecting performance?

Page 11: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Map Authoring

• Optimize Layers

- Use simplified layers

- Use scale-dependency

- Simplify layer symbology

- Annotation vs. Labels

- Avoid using nonalphanumeric characters in layer names (layer properties)

Page 12: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Data Management

• Permissions

- What access is needed for each layer?

- Service capabilities and user privileges

• Maintenance

- Geodatabase maintenance tasks are key, especially for versioned data

- Reconcile and Post versions regularly

- Update database statistics

- Compress geodatabase

- Rebuild Indexes on system tables in geodatabases that use traditional versioning

• Clear geoprocessing history 1

1 https://support.esri.com/en/technical-article/000011751

Page 13: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Working with joined and related data

• Use data from same database rather than cross-database joins

• Create attribute indexes on join fields

• Avoid creating relationship classes between two Feature Classes residing in separate feature

datasets

Page 14: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Working with Database Views and feature services

• Register the view with geodatabase

• Create attribute indexes

- Cannot add attribute indexes directly on a view

- Should add an attribute index to the fields used to join the tables.

• Publish a database view as a Feature Service

- Cannot publish with editing capabilities.

- Can add feature access after publishing, but only query capabilities. Your view will then be read-

only.

Page 15: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Demo 2:

Case Study: Traffic Accident Web App

This demo represents a second-attempt to

pull together the data while taking into

account performance considerations at the

data source.

Page 16: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Geodatabase ArcGIS Pro ArcGIS Server

ArcGIS OnlineWeb App Builder

Author a Map

Publish a

Feature Service

Create a web

map using

REST service

Create a web

applicationLaunch app

Page 17: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Geodatabase ArcGIS Pro ArcGIS Server

Author a Map Publish Feature Service

Page 18: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Geodatabase ArcGIS Pro ArcGIS Server

Author a Map Publish Feature Service

Page 19: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Demo 2

Web App -

Witness

Report

Page 20: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Demo 2: Performance Improvements

• A number of performance improvements have been applied to our Traffic Accident reporting

web app. These include:

- Simplified data structure

- Reduced number of feature layers

- Refined the feature attribute information

- Used definition query

- Modified unnecessary NVARCHAR(MAX) field

- Used scale-dependency to set visible scale range

- Simplified feature geometry

- Simplified layer symbology

- Optimized query of database view using Attribute Indexes

Page 21: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Please Take Our Survey on the App

Download the Esri Events

app and find your event

Select the session

you attended

Scroll down to find the

feedback section

Complete answers

and select “Submit”

Page 22: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Esri Support Service Presentations: Enterprise Geodatabase

• Optimizing Enterprise

Geodatabase Data to Create

High-Performing Feature

Services

• Troubleshoot Like an Esri

Support Pro: Enterprise

Geodatabases

• Troubleshoot Like an Esri

Support Pro: Enterprise

Geodatabase Performance

• SQL Access Using Native

Geometry Types: Tips and

Tricks

WORKSHOP LOCATION

• SDCC - Demo Theater 06

• SDCC - Demo Theater 06

• SDCC - Demo Theater 17

• SDCC - Demo Theater 06

TIME FRAME

• Tuesday, July 10

- 11:15 am - 12:00 pm

• Tuesday, July 10

- 2:30 pm - 3:15 pm

• Wednesday, July 11

- 1:15 pm - 2:00 pm

• Thursday, July 12

- 10:00 am - 10:45 am

Page 23: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot

Questions?

Page 24: Optimizing Enterprise Geodatabase Data to Create High …€¦ · Working with Database Views and feature services •Register the view with geodatabase •Create attribute indexes-Cannot