Skip to content
Paul Bunyan Message Logger by Diamond Sierra

PB-2501: Slow database query

Paul Bunyan code PB-2501 (Warning): Slow database query. What it means and what to do.

Updated · By Diamond Sierra

The Codes screen: every PB code found on the site, with counts
On this page

What it means

One query took longer than the slow-query threshold.

What to do

The message names the function and line that ran it. Look for a missing index, a search without limits, or a table that has grown large. A trivial query that is slow points at the database server, not the code.

Details

CodeSeverityGroup
PB-2501WarningDatabase