This file contains hidden or 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
| # = MONKEY PATCH: Memoize Mysql2 Columns | |
| # | |
| # Reduces SHOW FIELDS selects in production to essentially 0 calls. | |
| # | |
| # == Reason: | |
| # | |
| # * We have some pages that are (with rails 3.0.12) generating nearly 1200 SHOW | |
| # FIELDS sql statements. | |
| # * These come from ActiveRecord::Associations during complex join semantics. | |
| # * Esentially, through some relations, Arel::Table instances don't have |