basex

Activity Graph

Page 1 of 1

2016-07-07

[00:39:54] basex: Quit: basex
[10:34:02] basex: has joined #ruby
[10:34:02] basex: has joined #RubyOnRails
[13:07:46] basex: Quit: basex

2016-07-06

[00:48:30] basex: Quit: basex
[23:55:19] basex: has joined #ruby
[23:55:19] basex: has joined #RubyOnRails

2016-07-05

[15:52:00] basex: has joined #ruby
[15:52:31] basex: has joined #RubyOnRails
[15:54:16] basex: I have a question: I’m using activerecord in a sinatra app and with the upgrade to activerecord 5 I’m unable to load ActiveRecord::QueryCache as a middleware. Any idea how to load this now?
[15:56:52] basex: my configuration was similar to this https://gist.github.com/robhurring/712114
[18:22:24] basex: Ping timeout: 276 seconds
[21:46:58] basex: has joined #ruby
[21:46:58] basex: has joined #RubyOnRails
[21:52:57] basex: I’m using activerecord in a sinatra app and with the upgrade to activerecord 5 I’m unable to load ActiveRecord::QueryCache as a middleware. Any idea how to load this now? my configuration is similar to this https://gist.github.com/robhurring/712114
[21:55:17] basex: I just do: ActiveRecord::QueryCache.install_executor_hooks; ActiveRecord::Base.connection.enable_query_cache! and then: use ActiveSupport::Executor ?
[21:58:38] basex: no problem: use ActiveSupport::Executor, ActiveRecord::QueryCache ?
[21:59:14] basex: I will make a test here
[22:16:59] basex: matthewd: sorry
[22:17:22] basex: https://github.com/rails/rails/blob/master/actionpack/lib/action_dispatch/middleware/executor.rb calls run!
[22:17:28] basex: but the query cache class only have “run” https://github.com/rails/rails/blob/master/activerecord/lib/active_record/query_cache.rb
[22:20:04] basex: ok I will probably make a middleware, was just trying to see if there was a more standard way
[22:23:44] basex: the documentation here needs an update http://guides.rubyonrails.org/rails_on_rack.html
[22:23:51] basex: shows ActiveRecord::QueryCache as a middleware
[22:36:54] basex: matthewd: on the documentation http://guides.rubyonrails.org/rails_on_rack.html shows: “use ActionDispatch::Executor”, if I try this I get “wrong number of arguments (given 1, expected 2)”, needs an executor on the second argument
[22:37:26] basex: just trying to make sense of this executor system
[22:39:54] basex: worked like a charm
[22:39:58] basex: :) finally
[22:40:56] basex: in case some needs: ActiveSupport.on_load(:active_record) { ActiveRecord::QueryCache.install_executor_hooks }
[22:40:59] basex: and then ActiveRecord::Base.connection.enable_query_cache!
[22:41:09] basex: for the middleware: use ActionDispatch::Executor, ActiveSupport::Executor
[22:43:29] basex: thanks for the help, that last part of the argument of the ActionDispatch::Executor was the part missing for me
[22:45:14] basex: Quit: basex
[22:55:07] basex: has joined #RubyOnRails
[22:55:08] basex: has joined #ruby
[23:33:37] basex: Quit: basex
[23:52:35] basex: has joined #ruby
[23:52:35] basex: has joined #RubyOnRails

2015-12-19

[01:14:51] basex: has joined #ruby
[04:04:21] basex: Quit: basex
[11:21:42] basex: has joined #ruby
[11:30:40] basex: Quit: basex
[13:37:49] basex: has joined #ruby
[14:13:24] basex: Quit: basex
[14:14:14] basex: has joined #ruby
[14:20:14] basex: Quit: basex
[14:22:52] basex: has joined #ruby
[14:25:36] basex: Client Quit
[14:26:36] basex: has joined #ruby
[14:30:08] basex: Client Quit
[14:32:17] basex: has joined #ruby
[14:34:10] basex: Client Quit
[14:35:29] basex: has joined #ruby
[14:38:07] basex: Client Quit
[14:39:09] basex: has joined #ruby
[14:43:33] basex: Client Quit
[14:44:26] basex: has joined #ruby
[14:46:41] basex: Client Quit
[14:57:06] basex: has joined #ruby
[21:35:09] basex: Quit: basex

2015-12-18

[12:12:05] basex: has joined #ruby
[13:25:30] basex: Quit: basex
[14:29:10] basex: has joined #ruby
[19:50:50] basex: Ping timeout: 256 seconds

2015-11-18

[11:56:13] basex: has joined #ruby
[15:25:45] basex: Quit: basex

2015-05-26

[04:25:15] basex: has joined #RubyOnRails
[04:36:02] basex: has left #RubyOnRails: ()

2015-05-25

[01:00:29] basex: has joined #RubyOnRails
[03:51:25] basex: Remote host closed the connection

2015-05-24

[07:58:11] basex: has joined #RubyOnRails
[09:24:41] basex: Remote host closed the connection
[09:25:35] basex: has joined #RubyOnRails
[09:43:37] basex: Ping timeout: 264 seconds