Error code

DB_QUERY_TIMEOUT

Database query timed out

  • HTTP status504
  • Classinfrastructure
  • Severitywarning
  • Retryableyes

Database query timed out

A query exceeded the per-statement timeout. Usually a missing index or a runaway scan.

Common causes

  • Missing index on a hot WHERE column.
  • Large dataset filtered without LIMIT.
  • Stats out of date — wrong execution plan.

What to do

Add the missing index, paginate the read, or run ANALYZE TABLE. Don’t bump the timeout as a fix.

שאילתת DB נכנסה ל־timeout

שאילתה חרגה מ־timeout לפקודה. בדרך כלל אינדקס חסר או סריקה לא חסומה.

סיבות נפוצות

  • אינדקס חסר על עמודת WHERE חמה.
  • מערך גדול מסונן ללא LIMIT.
  • סטטיסטיקות מיושנות — תוכנית ביצוע שגויה.

פעולה מומלצת

הוסיפו אינדקס, חלקו לעמודים, או הריצו ANALYZE TABLE. אל תעלו timeout כתחליף לתיקון.