Last active
September 29, 2015 18:05
-
-
Save dmitryrck/d1ec42b3d9b23fc17186 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HomeController < ApplicationController | |
def foo | |
render layout: false | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= Ticket.all.to_a[50000000] %> | |
<%= Ticket.all.to_a[50000000] %> | |
<%= Ticket.all.to_a[50000000] %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Started GET "/foo" for 127.0.0.1 at 2015-09-29 15:01:13 -0300 | |
Processing by HomeController#foo as */* | |
Ticket Load (27.4ms) SELECT "tickets".* FROM "tickets" | |
CACHE (0.0ms) SELECT "tickets".* FROM "tickets" | |
CACHE (0.0ms) SELECT "tickets".* FROM "tickets" | |
Rendered home/foo.html.erb (6840.3ms) | |
Completed 200 OK in 6847ms (Views: 6814.6ms | ActiveRecord: 32.4ms) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> ActiveRecord::Base.logger = Logger.new(STDOUT) | |
=> #<Logger:0x0055a6a8330960 @progname=nil, @level=0, @default_formatter=#<Logger::Formatter:0x0055a6a8330938 @datetime_format=nil>, @formatter=nil, @logdev=#<Logger::LogDevice:0x0055a6a83308e8 @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<IO:<STDOUT>>, @mutex=#<Logger::LogDevice::LogDeviceMutex:0x0055a6a83308c0 @mon_owner=nil, | |
@mon_count=0, @mon_mutex=#<Mutex:0x0055a6a8330870>>>> | |
>> ActiveRecord::Base.logger.level = 0 | |
=> 0 | |
>> puts Ticket.all.to_a[50000000] | |
D, [2015-09-29T15:03:10.348655 #14415] DEBUG -- : Ticket Load (12.6ms) SELECT "tickets".* FROM "tickets" | |
=> nil | |
>> puts Ticket.all.to_a[50000000] | |
D, [2015-09-29T15:03:12.765550 #14415] DEBUG -- : Ticket Load (35.0ms) SELECT "tickets".* FROM "tickets" | |
=> nil | |
>> puts Ticket.all.to_a[50000000] | |
D, [2015-09-29T15:03:13.648280 #14415] DEBUG -- : Ticket Load (34.5ms) SELECT "tickets".* FROM "tickets" | |
=> nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment