Skip to main content
Released

Update Spatial Index on the Esri Geodatabase Writers

Related products:Transformers
siennaatsafe
fmelizard
nielsgerrits
danilo_fme
warrendev
+64
  • siennaatsafe
    siennaatsafe
  • fmelizard
    fmelizard
  • nielsgerrits
    nielsgerrits
  • danilo_fme
    danilo_fme
  • warrendev
    warrendev
  • tcrossman
    tcrossman
  • vxn43
    vxn43
  • j.botterill
    j.botterill
  • runneals
    runneals
  • bruceharold
    bruceharold
  • fgiron
    fgiron
  • panda
    panda
  • kennyo
    kennyo
  • chriswilson
    chriswilson
  • jhawks
    jhawks
  • bibold
  • kimo
    kimo
  • gbj1717
    gbj1717
  • richsnyder0
  • gerhard
  • e_blair
  • taudorf
    taudorf
  • nordpil
    nordpil
  • r5
    r5
  • dannymeus
    dannymeus
  • andrew_r
    andrew_r
  • travg
    travg
  • esietinga
    esietinga
  • cwarren
    cwarren
  • cstelow
  • davisblack
    davisblack
  • samisnunu
    samisnunu
  • ekkischeffler
    ekkischeffler
  • mmccart
    mmccart
  • bgeorges
    bgeorges
  • lau
    lau
  • billybob
    billybob
  • dos_gis
    dos_gis
  • chau
    chau
  • plynn
    plynn
  • anari
    anari
  • frro
    frro
  • joshuadamron
    joshuadamron
  • setld_solutions
    setld_solutions
  • geoportalcartog
    geoportalcartog
  • adriano
    adriano
  • janb
  • geoal
    geoal
  • vienna
  • jpvo
    jpvo
  • thejando
    thejando
  • mb_fdfa
    mb_fdfa
  • wicki
    wicki
  • bertd
  • valetovsa
  • antonfors09
    antonfors09
  • pboliver
  • cbs
  • gainzmik
  • adampelletier
    adampelletier
  • learning4life
  • sichenbim
  • joehansson
    joehansson
  • dominicrorke
  • jason_balmut
    jason_balmut
  • cillingworth81
  • msims
  • herdisg
  • tkaufmann
    tkaufmann

frro
Contributor
  • Contributor

I'd love to see a parameter on the writer feature types of the Esri Geodatabase Writers where you have an option to create or update the Spatial Indexes for the Esri Geodatabase feature types.

It would be a great feature to update/rebuild spatial index on the feature types after they have finished loading. This would make your data ready to go after a big data loading job has completed. Then you wouldn't have to rely on some custom Python hack to update you spatial indexes.

The writers I see can benefit from this feature are:

  • Esri Geodatabase (GEODATABASE_SDE)
  • Esri Legacy ArcSDE (SDE30)
  • Esri Geodatabase (File Geodb API)
  • Esri Geodatabase (File Geodb ArcObjects)
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

9 replies

joehansson
Participant
Forum|alt.badge.img
  • Participant
  • June 7, 2017

Hi!

This would greatly improve the usability and convenience of using the ESRI geodatabase writer.

Regards,

Joe Hansson

 


m_tengbrand
Participant
Forum|alt.badge.img
  • Participant
  • July 3, 2017

Agrees that it would simplify a lot!


Please add the option to update/rebuild spatial index in a ESRI GDB!


runneals
Supporter
Forum|alt.badge.img+26
  • Supporter
  • July 18, 2017

The current work around is using a python script with arcpy management tools. It also looks like you could potentially use a sql statement to rebuild them.


I am using pythonCaller with both AddSpatialIndex_management and RebuildIndexes_management to create spatial index extent for feature classes under a MS Sql Server spatial database but it seems it is not working as expected, nothing happens.

Anyone had this issue?

Any workaround?


chriswilson
Enthusiast
Forum|alt.badge.img+21
  • Enthusiast
  • February 18, 2020

Bump for this, it would be tidy if it's practical to achieve this with the writer rather than looking at python scripts. Perhaps it could remove the index at the start of writing, write features then re-add the index and maybe even auto-calculate based on feature sizes?


jhawks
Contributor
Forum|alt.badge.img+7
  • Contributor
  • October 12, 2022

Were very interested in this


bgeorges
Contributor
Forum|alt.badge.img+5
  • Contributor
  • February 24, 2023

Totally. When you truncate / append the whole table every day to keep the data up to date, you have to rebuild the indexes somehow.


aquee
Contributor
Forum|alt.badge.img+3
  • Contributor
  • March 16, 2023

Page quoted has been removed from Esri support and does not appear to be maintained any more. It was Article ID: 000006051 "FAQ: How can ArcSDE performance be improved?" for oracle 8/9/10 or SQL Server 200/2005, and is available from archive.org circa 2017/2018.

 

I won't repost here but it involved running SQL as the SYS or SA/dbo user on either dba_indexes or using dbcc dbreindex. I believe this is no longer an Esri approved method for administering indexes any more (Our DBA would not allow us to do this, so it is moot.) and has moved to Python/GPT.

 

example: Rebuild system table indexes (ArcGIS Pro latest)

 

Failing an in-Workspace feature, we're using arcpy either separately in batch (custom task/application) or as part of the workspace scripting shutdown python parameter: Question: Update spatial index

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings