Quantcast
Channel: Microsoft Dynamics GP
Viewing all articles
Browse latest Browse all 38722

Forum Post: RE: Management Reporter - High CPU on SQL Server when running large reports

$
0
0
This is the query that bogs down the server: SELECT filters.Row, dc.Id , dc.Dimension2Id, dc.Dimension1Id, dc.Dimension3Id, dc.Dimension4Id, dc.Dimension5Id, dc.Dimension6Id into #dimComboRow from [Datamart].DimensionCombination dc INNER JOIN #AccountFilter filters on ((filters.Dimension1Id is null OR (isNull(dc.Dimension1Id, -1) = filters.Dimension1Id) OR (filters.Dimension1Id = -2 AND dc.Dimension1Id is not null)) AND (filters.Dimension2Id is null OR (isNull(dc.Dimension2Id, -1) = filters.Dimension2Id) OR (filters.Dimension2Id = -2 AND dc.Dimension2Id is not null)) ) where OrganizationId = 1 The DimensionCombination table has 111861 rows. I'm still analyzing how the #AccountFilter table gets populated. Green line is the # of packets/sec. sent through the network card. My analysis of that is once the CPU goes down (query completes), it sends the results to MR. Yes, all MR databases are on the same SQL Server instance as GP DBs. MR2012: 16GB, DM roughly 1.5GB

Viewing all articles
Browse latest Browse all 38722

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>