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.

Barry Robison's latest activity

Thursday, August 21 2008
717 Production mode makes many unnecessary SHOW TABLES calls was updated in Ruby on Rails
  • Barry Robison
    Barry Robison commented at 11:28 AM

    here's a similar method for not calling SHOW FIELDS every time a table is accessed, also seem to help speed.

    
          def columns(table_name, name = nil)#:nodoc:...
  • Barry Robison
    Barry Robison commented at 11:21 AM

    Sorry I don't really know Ruby, just trying to performance analyze an app. The last statement in the block is the return value right? In the original patch that...

  • Barry Robison
    Barry Robison commented at 10:45 AM

    I believe that should be

       def tables(name = nil) #:nodoc:
         tables = []
    
    •  execute("SHOW TABLES", name).each { |field| tables << field[0] }
      
    •  execute("SH...