I'm just busy at the moment getting timing info for the three states I'm interested in :
When I received the database, the table Nn was set up as (approx) Main1. My expectation is that Main3 will provide the quickest results. I'm using the SQL from post #18 as the query, but saved into a pre-optimised QueryDef for consistency.
I'll post when the results arrive.
Code:
Main1 = PK=[ID] + Ix2=[SourceUID] + Ix3=[TargetUID] Main2 = PK=[ID] + Ix2=[SourceUID] + Ix3=[TargetUID] + Ix4=[SourceUID]&[TargetUID] Main3 = PK=[ID] + Ix2=[SourceUID] + Ix3=[TargetUID] + Ix4=[SourceUID]&[TargetUID]&[Distance]
I'll post when the results arrive.
Comment