When queries run slowly despite having indexes in place, the problem is rarely the index itself. The most common culprits are parameter sniffing, stale statistics, blocking chains, memory pressure, and poorly written query plans that SQL Server cached under different conditions. To troubleshoot slow queries on an indexed SQL Server, you need to look beyond the execution plan and examine wait statistics, plan cache behaviour, tempdb contention, and server-level resource constraints. Most performance issues are solvable once you know where to look.

Why Do Indexed Queries Still Run Slowly?

Indexes are necessary but not sufficient. A table can have exactly the right indexes and still serve queries in seconds instead of milliseconds. This happens because SQL Server's query optimiser makes decisions based on statistics, available memory, cached plans, and a dozen other factors that shift constantly in a production environment.

The optimiser isn't perfect. It works with estimates, not certainties. When those estimates are wrong, the resulting execution plan can be catastrophically inefficient, even with perfect index coverage. Understanding this is the foundation of any serious attempt to troubleshoot slow queries on an indexed database.

Here's the practical reality: in our experience running sql server performance audits across Australian businesses, the index is the last thing that needs changing in the majority of cases. The problem is almost always upstream.

What Are Wait Statistics and Why Do They Matter?

Wait statistics are SQL Server's built-in diagnostic system. Every time SQL Server can't immediately execute something, it records a wait. Aggregated over time, those waits tell you exactly where your server is struggling.

Run this query to see your top waits since the last restart:

SELECT TOP 10
    wait_type,
    waiting_tasks_count,
    wait_time_ms,
    max_wait_time_ms,
    signal_wait_time_ms
FROM sys.dm_os_wait_stats
WHERE wait_type NOT IN (
    'SLEEP_TASK','BROKER_TO_FLUSH','BROKER_TASK_STOP',
    'CLR_AUTO_EVENT','DISPATCHER_QUEUE_SEMAPHORE',
    'FT_IFTS_SCHEDULER_IDLE_WAIT','HADR_FILESTREAM_IOMGR_IOCOMPLETION',
    'HADR_WORK_QUEUE','LAZYWRITER_SLEEP','LOGMGR_QUEUE',
    'ONDEMAND_TASK_QUEUE','REQUEST_FOR_DEADLOCK_SEARCH',
    'RESOURCE_QUEUE','SERVER_IDLE_CHECK','SLEEP_DBSTARTUP',
    'SLEEP_DBTASK','SLEEP_TEMPDBSTARTUP','SNI_HTTP_ACCEPT',
    'SP_SERVER_DIAGNOSTICS_SLEEP','SQLTRACE_BUFFER_FLUSH',
    'SQLTRACE_INCREMENTAL_FLUSH_SLEEP','WAITFOR',
    'XE_DISPATCHER_WAIT','XE_TIMER_EVENT'
)
ORDER BY wait_time_ms DESC;

The wait types you're looking for fall into clear categories. PAGEIOLATCH waits point to disk I/O problems or buffer pool pressure. LCK waits indicate blocking. CXPACKET and CXCONSUMER waits suggest parallelism issues. SOS_SCHEDULER_YIELD means CPU is saturated. Each category has a different remediation path, and none of them are solved by adding another index.

Paul Randal's wait statistics methodology, widely referenced in the SQL Server community and aligned with Microsoft's own guidance, treats wait stats as the first diagnostic step in any performance investigation. If you're not starting here, you're guessing.

How Does Parameter Sniffing Cause Performance Problems?

Parameter sniffing is one of the most frequently misdiagnosed performance problems in SQL Server. It's also one of the most common reasons a query that runs fine in testing falls apart in production.

Here's what happens. SQL Server compiles a stored procedure or parameterised query the first time it runs, caches that plan, and reuses it for all subsequent executions. If the first execution used a parameter value that returned 10 rows, the cached plan is optimised for 10 rows. When a later execution passes a parameter that returns 10 million rows, SQL Server uses the same plan. The result is a query that's technically using an index but doing so in completely the wrong way.

To identify bad plans in cache, run:

SELECT TOP 20
    qs.execution_count,
    qs.total_elapsed_time / qs.execution_count AS avg_elapsed_time_ms,
    qs.total_logical_reads / qs.execution_count AS avg_logical_reads,
    SUBSTRING(qt.text, (qs.statement_start_offset/2)+1,
        ((CASE qs.statement_end_offset
            WHEN -1 THEN DATALENGTH(qt.text)
            ELSE qs.statement_end_offset
        END - qs.statement_start_offset)/2)+1) AS query_text,
    qp.query_plan
FROM sys.dm_exec_query_stats qs
CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) qt
CROSS APPLY sys.dm_exec_query_plan(qs.plan_handle) qp
ORDER BY avg_elapsed_time_ms DESC;

Look for high average elapsed time combined with high logical reads. If a query is doing 500,000 logical reads to return 20 rows, that's a plan problem, not an index problem.

Fixes for parameter sniffing include OPTION (RECOMPILE) on specific queries, OPTIMIZE FOR hints, or in SQL Server 2022, the Query Store's parameter sensitive plan optimisation feature. Each approach has tradeoffs, and the right choice depends on your workload pattern.

What Role Does Blocking Play in Slow Query Performance?

Blocking is silent and devastating. A query that should complete in 50 milliseconds can sit waiting for minutes because another session holds a lock on the same resource. From the application's perspective, the query is just slow. The index is irrelevant.

Check for current blocking with:

SELECT
    blocking_session_id,
    session_id,
    wait_type,
    wait_time,
    wait_resource,
    status
FROM sys.dm_exec_requests
WHERE blocking_session_id > 0;

If you're seeing persistent blocking chains, the causes are usually long-running transactions, missing indexes on foreign key columns (which causes table scans that hold locks longer), or poorly designed transaction boundaries in application code. Escalating lock granularity can also be a factor, where SQL Server escalates row locks to table locks under pressure, which then blocks everything else.

Chronic blocking is a sign that your sql server health check is overdue. Blocking patterns that develop over months are rarely obvious until they cause an outage.

How Do Statistics and Cardinality Estimates Affect Query Plans?

Statistics are SQL Server's way of understanding data distribution. When statistics are stale, the optimiser makes bad cardinality estimates. Bad estimates produce bad plans. This is one of the most underappreciated causes of slow queries on indexed tables.

By default, SQL Server updates statistics when approximately 20% of a table's rows change. On a table with 100 million rows, that means statistics won't auto-update until 20 million rows have changed. In a busy OLTP environment, that's a significant window where the optimiser is working with outdated information.

Check statistics age with:

SELECT
    OBJECT_NAME(s.object_id) AS table_name,
    s.name AS stat_name,
    sp.last_updated,
    sp.rows,
    sp.rows_sampled,
    sp.modification_counter
FROM sys.stats s
CROSS APPLY sys.dm_db_stats_properties(s.object_id, s.stats_id) sp
WHERE OBJECT_NAME(s.object_id) = 'YourTableName'
ORDER BY sp.last_updated ASC;

A modification_counter in the millions combined with a last_updated timestamp from weeks ago is a clear signal. Update statistics manually with UPDATE STATISTICS [TableName] WITH FULLSCAN for critical tables, and review your maintenance job schedule. Many environments are still running the default SQL Server maintenance plans, which use sampled statistics updates. For large tables, sampled updates can leave the optimiser with inaccurate histograms.

What Else Should You Check During a SQL Server Performance Investigation?

Several other factors consistently surface when we work on sql server performance tuning engagements. None of them involve indexes.

TempDB contention. If multiple sessions are competing for tempdb allocation pages, you'll see PAGELATCH_EX waits on specific pages. The fix is to add tempdb data files, ideally one per logical CPU core up to eight. This is a well-documented Microsoft recommendation and one of the first things we check during a sql server health check service engagement.

Memory pressure. When SQL Server doesn't have enough buffer pool memory, it reads from disk constantly. Check Page Life Expectancy (PLE) with SELECT cntr_value FROM sys.dm_os_performance_counters WHERE counter_name = 'Page life expectancy'. A PLE below 300 seconds is a red flag on most workloads, though on servers with very large buffer pools, the threshold scales proportionally.

Network latency. Occasionally the database is fine and the network is the problem. ASYNC_NETWORK_IO waits indicate SQL Server is waiting for the client to consume results. This points to application-side issues or network congestion, not database configuration.

Implicit conversions. When a query compares columns of different data types, SQL Server can't use an index efficiently because it must convert values before comparison. Look for CONVERT_IMPLICIT in execution plans. This is a schema design issue that requires application-level fixes.

For businesses needing urgent sql server help, these are the areas a skilled DBA will investigate in the first hour. The index is rarely the answer.

Key Takeaways

  • Stale statistics and parameter sniffing cause the majority of slow query problems on indexed tables. Check these before touching indexes.
  • Wait statistics are the fastest way to identify the actual bottleneck. PAGEIOLATCH, LCK, and SOS_SCHEDULER_YIELD waits each point to different root causes.
  • Blocking chains can make fast queries appear slow. Always check sys.dm_exec_requests for blocking_session_id > 0 during an investigation.
  • TempDB contention and memory pressure are server-level problems that affect all queries. They're invisible unless you know to look for them.
  • A structured sql server performance audit will surface these issues systematically, rather than relying on guesswork during an incident.

What to Do Next

If you're regularly dealing with slow queries that indexes haven't fixed, the problem is almost certainly systemic. It won't resolve itself, and adding more indexes often makes it worse by increasing maintenance overhead and slowing writes.

DBA Services provides sql server health check services and on-demand dba services across Australia, with the depth to identify and resolve the performance issues that other approaches miss. Whether you need emergency sql server support during a production incident or a structured performance review before problems escalate, our team has the operational experience to diagnose the real cause quickly.

Contact DBA Services to discuss a SQL Server health check for your environment. Most engagements identify actionable findings within the first session.