Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

Luke Ludwig's latest activity

Monday, March 16 2009
2245 Patch to fix broken test for caching of columns was created in Ruby on Rails
  • Luke Ludwig
    Luke Ludwig created the ticket at 2:35 AM

    This patch fixes the test_caching_of_columns in has_and_belongs_to_many_associations_test.rb, which was previously rendered useless since it was failing for pos...

Tuesday, January 20 2009
1738 connection.columns doesn't get cached was updated in Ruby on Rails
  • Luke Ludwig
    Luke Ludwig commented at 4:25 AM

    Attached is a patch that fixes test_caching_of_columns to work for all database adapters. I did an alias_method_chain on connection.columns to count the number ...

Saturday, January 17 2009
1738 connection.columns doesn't get cached was updated in Ruby on Rails
  • Luke Ludwig
    Luke Ludwig commented at 6:11 PM

    The caching works the same for all adapters, so this is just a test issue. The caching of the habtm columns is very similar in regards to the caching of columns...

  • Luke Ludwig
    Luke Ludwig commented at 4:06 PM

    Looks like the sqlite adapter doesn't make any queries when calling connection.columns, at least from the perspective of assert_queries, which causes the test_c...

Friday, January 16 2009
1738 connection.columns doesn't get cached was updated in Ruby on Rails
  • Luke Ludwig
    Luke Ludwig commented at 10:26 PM

    Good point. New patch attached.

  • Luke Ludwig
    Luke Ludwig commented at 7:15 PM

    Here is the patch file. The columns are now cached within the reflection instance. You can now call columns and reset_column_information on the the habtm associ...

  • Luke Ludwig
    Luke Ludwig commented at 3:34 AM

    Matt - Doesn't the query_cache only persist for the life of the request? We want the habtm columns to be cached for the life of the process, (or until reset_col...

Monday, January 12 2009
1738 Caching columns for has_and_belongs_to_many was created in Ruby on Rails
  • Luke Ludwig
    Luke Ludwig created the ticket at 3:50 PM

    This patch caches columns for has_and_belongs_to_many associations. The cache is stored in a hash (with table name as the key) within one of the owners of the h...