Ktistec::Model::Internal
Class methods
log_query(query, args = nil, &)
Logs query performance.
Times a database call and selectively emits a log message. The severity of the log message is based on the duration of the query. A slow query is any query that takes longer than 50ms. Slow queries include the query plan.