Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase performance for table_exists? #3867

Merged
merged 1 commit into from
Dec 5, 2011
Merged

Commits on Dec 5, 2011

  1. Speed up table_exists? for databases with a large number of tables

    At New Relic, we have hundreds of thousands of tables, and our migrations took 30 minutes without this similar patch. This cuts it down to a more reasonable amount of time.
    
    The rescue false part is ugly, but necessary as far as I can tell. I don't know of a cross-database statement you can make that will work without trapping errors.
    Jade Rubick committed Dec 5, 2011
    6 Configuration menu
    Copy the full SHA
    73a331c View commit details
    Browse the repository at this point in the history