- 05 12月, 2011 8 次提交
-
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
This commit vastly reduces the impact of auto explain logging when enabled, while keeping a negligible cost when disabled. The first implementation was based on the idea of subscribing to "sql.active_record" when needed, and unsubscribing once done. This is the idea behind AR::Relation#explain. Subscribe, collect, unsubscribe. But with the current implementation of notifications unsubscribing is costly, because it wipes an internal cache and that puts a penalty on the next event. So we are switching to an approach where a long-running subscriber is listening. Instead of collecting the queries with a closure in a dedicated subscriber, now we setup a thread local. If the feature is disabled by setting the threshold to nil, the subscriber will call a method that does nothing. That's totally cheap.
-
由 José Valim 提交于
form_for with :as option uses "action_as" as css class and id
-
由 Aaron Patterson 提交于
Add tests for the return value of require
-
由 Vasiliy Ermolovich 提交于
-
由 Vijay Dev 提交于
-
- 04 12月, 2011 32 次提交
-
-
由 José Valim 提交于
Refactor readonly attributes conditional
-
由 Carlos Antonio da Silva 提交于
-
由 Vijay Dev 提交于
-
由 Xavier Noria 提交于
SQlite3 Bump
-
由 Arun Agrawal 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-
由 Jason Noble 提交于
-