not_a_commie
2007-06-19 15:28:29 UTC
I am trying to (in the least amount of CPU time possible) determine
the number of unique CPU sockets on the motherboard. I attempted to do
a "select SocketDesignation from Win32_Processor group by
SocketDesignation" but this still returns a row for every CPU core.
Creating instances of each CPU and looping through their properties
and building up my own unique list of ["SocketDesignation"].Value does
work -- but it takes two freakin seconds! Is the Value member not the
same value used in the query? Or is the SocketDesignation data changed
by creating a CPU instance? Why does the group by not work in this
case? All I care about is the number of unique sockets on the
motherboard. O, and yes, the distinct keyword throws an exception for
invalid syntax.
Thanks,
Brannon
the number of unique CPU sockets on the motherboard. I attempted to do
a "select SocketDesignation from Win32_Processor group by
SocketDesignation" but this still returns a row for every CPU core.
Creating instances of each CPU and looping through their properties
and building up my own unique list of ["SocketDesignation"].Value does
work -- but it takes two freakin seconds! Is the Value member not the
same value used in the query? Or is the SocketDesignation data changed
by creating a CPU instance? Why does the group by not work in this
case? All I care about is the number of unique sockets on the
motherboard. O, and yes, the distinct keyword throws an exception for
invalid syntax.
Thanks,
Brannon