Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

CPU time higher but elapsed time lower when columnstored index used. Wondering why?

$
0
0

I am exploring ColumnStore indexing and comparing with traditional row store.  I wrote two sets of queries doing the same thing - one using columnstore index and the other with primary key clustered and non clustered index. The first one ran three times faster but taking twice cpu time compared to the second one. Wondering why? All the examples I have seen on MSDN show reduced cpu time as well as elapsed time. any explation would be appreciated...

1st query statistics (columnstore index)

SQL Server Execution Times:

   CPU time = 55108 ms,  elapsed time = 9082 ms.

2nd Query statistics

SQL Server Execution Times:

   CPU time = 29468 ms,  elapsed time = 31902 ms.



Viewing all articles
Browse latest Browse all 15889

Trending Articles



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