search for: querycach

Displaying 3 results from an estimated 3 matches for "querycach".

Did you mean: querycache
2011 Aug 07
9
How can I disable Rails 3.1's ActiveRecord Query Caching?
...d enlighten me on how to do that, exactly. The first approach I tried was to create an initializer (config/ initializer/active_record.rb) and include this code: ActiveRecord::Base.connection.disable_query_cache! (Documented at http://edgeapi.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/QueryCache.html without comments or examples, unsurprisingly). This doesn''t appear to work as I''m still seeing prepared statement caching going on in my log file: Started GET "/dashboard" for 127.0.0.1 at 2011-08-06 22:43:07 -0600 Processing by DashboardController#index as HTML...
2010 Dec 15
2
Error reverse engineering MySQL with RMRE
...rsion 3.0.3 Middleware ActionDispatch::Static Rack::Lock ActiveSupport::Cache::Strategy::LocalCache Rack::Runtime Rails::Rack::Logger ActionDispatch::ShowExceptions ActionDispatch::RemoteIp Rack::Sendfile ActionDispatch::Callbacks ActiveRecord::ConnectionAdapters::ConnectionManagement ActiveRecord::QueryCache ActionDispatch::Cookies ActionDispatch::Session::CookieStore ActionDispatch::Flash ActionDispatch::ParamsParser Rack::MethodOverride ActionDispatch::Head ActionDispatch::BestStandardsSupport Application root /root/test/app Environment development Database adapter mysql2 Database schema version 0...
2011 Oct 28
3
Is active record 3.1.1 supposed to be threadsafe?
...en using capybara-webkit with rails3.1. We traced the issue down to one thread querying and trying to accessing the cache while another thread cleared the same cache. Assuming active record 3.1.1 is supposed to be threadsafe, then the culprit for the issue would be ActiveRecord::ConnectionAdapters::QueryCache, which doesn''t synchronize access to its @query_cache. See https://github.com/awd-switzerland/rails/commit/22aeda0f0553fdcabca156012b67f2aa2add293c for a possible way to resolve that. However, I''m not sure in which layer the rails team wants to handle synchronization. Also notice...