This project is archived and is in readonly mode.
Storing query cache in Thread.current breaks when multiple DBs are used
-
sds
- Title changed from Storing query cache in Thread.current breaks when multiple DBs are used to [patch] Storing query cache in Thread.current breaks when multiple DBs are used
- Tag changed from 2.2.rc1, activerecord, cache, query to 2.2.rc1, activerecord, cache, patch, query
I attach a patch that fixes this along the lines of the above, but slightly improved.
-
Pratik
- Milestone cleared.
- Title changed from [patch] Storing query cache in Thread.current breaks when multiple DBs are used to Storing query cache in Thread.current breaks when multiple DBs are used
- Tag changed from 2.2.rc1, activerecord, cache, patch, query to activerecord, cache, patch, query
- Assigned user set to josh
I think the correct fix is to move query cache to connection object.
@Josh : Wanna take a stab at this ?
-
Repository
- State changed from new to resolved
(from [0c84b6f9eda20c30b66d8fb99fba637edc1bc37a]) Use database name in query cache thread local key [#1283 Storing query cache in Thread.current breaks when multiple DBs are used state:resolved] http://github.com/rails/rails/co...
