The display of the data in ArcMap is actually really fast. But adding it to ArcMap takes minutes. Just selecting it in ArcCatalog freezes the application for minutes. Other layers in the database, even fairly large ones, are instantaneous. This all makes me think there is some cruft in the SDE tables, or at least something wrong in them.
I have two unversioned featureclasses in a dataset that our organization adds and deletes up to 10s of thousands of records daily. One is over 3million points and the other is over 500k lines
CREATE TABLE mytab_backup AS SELECT * FROM mytab_backup
INSERT INTO mytab SELECT * FROM mytab_backup ORDER BY county_fips
If the feature data has been gathered over time it is likely badly spatiallyfragmented. One of the hallmarks of spatial fragmentation is poor spatialquery performance, not matter how artfully the spatial index has been tuned.There are many possible ways to defragment spatially, but the easiest isto do an ORDER BY query on some attribute that imposes spatial order(county code, etc). More exotic queries are available if you can use the ST functions to group features into bands in X (or Y), then order by Y (or X).Note that spatial defragmentation will hurt join performance on otherquery constraints (like time), so that may need to be mitigated.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.