RCP:Query SDO_RELATE Spatial Function Is Slow
Last updated on AUGUST 05, 2014
Applies to:Oracle Spatial and Graph - Version 220.127.116.11 and later
Information in this document applies to any platform.
Queries with sod_relate function are very slow in production environment taking more than 30 minutes. There are around 9 million records.
In our test environment I created a table with only 2 entries and even this takes 5 minutes
SQL> select /*+ ordered */ a.woe_id from vdsilva.spatial_1 b, vdsilva.spatial_1 a where a.woe_id=28289488 and b.woe_id=24865690 and sdo_relate(a.shape,b.shape, 'mask=covers+contains') ='TRUE';
no rows selected
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms