<div dir="ltr"><div>Spatial Indexing is huge,  as was mentioned.<br>I know it makes no sense, but I found a layer once that had to many Varchar(max) fields converting that one layer to the appropriate varchar lengths made a difference.</div><div>Making sure that your layers are the same coordinate system as the map helps.</div><div>Make sure you have a primary key.</div><div>If you are theming a layer make an index on the column you are theming as well.</div><div>I've also notice tables with too many indexes seem to suffer as well.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 25, 2016 at 5:43 PM, RenoSun <span dir="ltr"><<a href="mailto:renolionheart@gmail.com" target="_blank">renolionheart@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Abbasali,<br>
<br>
Did set up the spatial indexes for your mssql tables?<br>
<br>
Please see the following link to figure out the best spatial index setting<br>
for your data tables:<br>
<br>
The Black Art Of Spatial Index Tuning In SQL Server<br>
<<a href="http://boomphisto.blogspot.ca/2011/04/black-art-of-spatial-index-tuning-in.html" rel="noreferrer" target="_blank">http://boomphisto.blogspot.ca/2011/04/black-art-of-spatial-index-tuning-in.html</a>><br>
<br>
Your data tables are huge, and normally the performance of using mssql with<br>
mapguide is worse than using SQLite/SDF files.<br>
<br>
You may want to try to convert your mssql tables into SQLites spatial to see<br>
if mapguide will be able to load faster.<br>
<br>
Generalize the coordinates of your geometries will help too, but it will<br>
scarify a little bit accuracy. Like make your each coordinates to only 3<br>
decimal places. If you are using LL84, please keep at least 6-7 decimal for<br>
each coordinates.<br>
<br>
Don't join your mssql tables on mapguide or AIMS with other spatial tables,<br>
because it usually will make it slower or very slow.<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/mapguide-and-mssql-low-performance-problem-tp5276761p5278082.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/mapguide-and-mssql-low-performance-problem-tp5276761p5278082.html</a><br>
Sent from the MapGuide Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><b style="color:rgb(136,136,136);font-family:Calibri,sans-serif;font-size:14.6666660308838px"><span style="font-size:10pt;font-family:Tahoma,sans-serif;color:rgb(0,0,139)">Scott Hameister | <a href="http://www.mpowerinnovations.com/" style="color:rgb(17,85,204)" target="_blank"><span style="color:blue">www.mpowerinnovations.com</span></a><br>________________________________________<br></span></b><b style="color:rgb(136,136,136);font-family:Calibri,sans-serif;font-size:14.6666660308838px"><span style="font-size:10pt;font-family:Tahoma,sans-serif;color:gray">mPower Innovations</span></b><span style="font-size:9pt;font-family:Tahoma,sans-serif;color:gray"><br>1051 N Lynndale Drive, Suite 2A, Appleton, WI 54914<br></span><span style="font-size:10pt;font-family:Tahoma,sans-serif;color:gray">Main: <a href="tel:%28877%29%20269-6971%20x%20207" value="+18772696971" style="color:rgb(17,85,204)" target="_blank">(877) 269-6971 x 204</a> | Mobile: <a href="tel:%28920%29%20470-0292" value="+19204700292" style="color:rgb(17,85,204)" target="_blank">(920) 419-6250</a></span><span style="font-size:9pt;font-family:Tahoma,sans-serif;color:gray"></span></div></div>
</div>