Exception: HTM::QueryTimeoutError

Inherits:
DatabaseError show all
Defined in:
lib/htm/errors.rb

Overview

Raised when a database query exceeds the configured timeout

Default timeout is 30 seconds. Configure via db_query_timeout parameter when initializing HTM.

Examples:

Handling timeout

begin
  htm.recall("complex query", strategy: :hybrid)
rescue HTM::QueryTimeoutError
  # Retry with simpler query or smaller limit
end