module
   Ktistec::Model::Internal
  
  Defined in:
framework/model.crClass Method Summary
- 
        .log_query(query, args = nil, &)
        
          
Logs query performance.
 - 
        .to_sentence(type)
        
          
Transforms a type, in particular a union type, into a sentence.
 
Class Method Detail
        
        def self.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.