我有以下查询:
Insert into PropertyTractsTemp
Select
P.field1 as field1 ,
P.field2 as field2,
P.field3 as field3,
P.field4 as field4,
G.GEOID,
P.field5 as field5
from PROPERTY_PARAMETERS P
join BH_EDW.dbo.REF_GEOID_GEOG G WITH(INDEX([geog_sidx]))on G.geom.STIntersects(P.GeoLocation) =1
where P.GEOID is null
这可能有1,000到100Mil的记录来匹配。 无论哪种方式,查询都会停止,我收到此错误:
Msg 10316, Level 16, State 1, Line 3
The app domain with specified version id (4) was unloaded due to memory pressure and could not be found.
The statement has been terminated.
我告诉它CLR错误,它与空间索引有关,但没有解释如何解决它。
任何智慧都会受到高度赞赏。