How can I get the SQL query execution time in rails? I see time in logs, for example:
Posting Load (10.8ms) SELECT "postings".* FROM "postings" ORDER BY "postings"."id" ASC LIMIT 1
But how can I get this value (10.08) programmatically to use it further in my code?
ruby-on-rails activerecord
Eugene korpan
source share