Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>32 bit OS means 2 GB</strong> Virtual Address Space for your processes. Standard edition OS mean no AWE extensions either. So your test machine will be severely RAM deprived compared with the production one. Your buffer pool will suffer from premature eviction of the pages, your execution plans will not have the option to choose hash-joins for a lot of queries and so on and so forth. I doubt this explains the entire difference, I'm sure there must be something more at play. You say only 10 CPU usage during the query, is your MAXDOP setting 1 by any chance on the test server? Have you compared the output of <a href="http://msdn.microsoft.com/en-us/library/ms188787.aspx" rel="nofollow noreferrer">sp_configure</a> on the two machines? (make sure you enable 'advanced options' too).</p> <p>Can you run the same problem query on the two machines, from a SSMS query window, with <code>SET STATISTICS IO ON</code> and <code>SET STATISTICS TIME ON</code>? Run it 2-3 times on each and write down the results. Does it show the same number of logical reads but vastly different number of physical reads? This would point to the RAM being insufficient to cache the needed pages. IS the number of logical reads very different? It probably means you get a bad execution plan on test. </p> <p>Is the query write intensive by any chance? If so did you pre-grow the test database or is your execution blocked by log growth and database growth events?</p> <p>There are plenty of places to look at to narrow down the issue, like SQL performance counters, <code>sys.dm_os_wait_stats</code>, check the <code>sys.dm_exec_requests</code> <code>wait_type</code> and <code>wait_resource</code>. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload