Module: ActiveRecord::ConnectionAdapters::Trino::SafetyBelts

Defined in:
lib/active_record/connection_adapters/trino/safety_belts.rb

Overview

Behaviors that constrain AR’s typical OLTP-shaped query patterns so they don’t accidentally hammer a Trino warehouse. Currently:

- `find_each` / `find_in_batches` raise: Trino's pagination model does
  not fit AR's batching cursor.

Timeouts and slow-query notifications live in DatabaseStatements; they apply regardless of caller pattern.

Constant Summary collapse

BATCH_METHODS =
%i[find_each find_in_batches in_batches].freeze