Hi,
Assuming we have a table with below structure :
RoadLinkId - Name - Code - Location
The table contains information of an huge road network. Let’s say it has around 2 million records. I use MsSql2008FeatureLayer to display roads on the map. The code column specifies road type. Using style, we display different specific road types in different zoom levels, however WpfMap fetches all records from database.
What do you suggest to improve performance for scenarios like mine? I was thinking if it’s possible to use different MsSql2008FeatureLayers for different zoom levels? If it is possible then I would be able to use different views to just load necessary records from database.
Another way would be passing different where clauses for different zoom levels to MsSql2008FeatureLayer, that makes application to just load required records for different zoom levels.
ZoomLevel1 to 5 => CustomView1 => Select * from table where code = some value
…
I already saw this topic which has same problem as mine, but the proposed solutions are not practical in my scenario since I don’t want to display different road types in separate layers.
Thank you,
Shahin
MsSql2008FeatureLayer Perfromance
Hi Shaahin,
Since you have submit a ticket for this issue, let’s mainly focus on the ticket.
But in case others have the same issue, I also attached a sample for this case.
Hope it helps,
Troy
WPFDisplayASimpleMap.zip (29.4 KB)