rails/rails — comment on commit 73a331c2acfce971aa2dda8e72af5edc6867e344
File:  line 0
By pixeltrix:

@josevalim because it had hundreds of thousands of tables in it maybe? The `tables` method gets all the tables from the database. You may want to question the wisdom of having hundreds of thousands of tables in a database but I guess they know what they’re doing.

The queries are coming from `AR::Base#inspect` which does a check to see whether the table exists when building the output. We also probably want to cache the query in the `tables` method for the request life-cycle and eternally in production as well.