cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FDO SQL Server queries whole tables for SRID - reduce to top 1

FDO SQL Server queries whole tables for SRID - reduce to top 1

I used a Database Sniffer to look at the SQL that AutoCAD Map 3D pulls from SQL Server when first connecting in FDO.

 

For example, for every table in my GIS, it runs:

 select   [GEOMETRY_COLUMN].STSrid as srid from "MYTABLE"

So if I have 50 tables with 1 million records, it performs a 50 million record query to get the SRIDs (Coordinate System).

 

I suggest it changes the query to:

 

select  top 1 [GEOMETRY_COLUMN].STSrid as srid from "MYTABLE"

 

for each table - that way it only queries 50 records rather than 50 million.

 

Boy would SQL Connections in FDO be faster eh?

 

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea  

Autodesk Design & Make Report