This project is archived and is in readonly mode.
rake db:migrate queries the schema_migrations table many times (unnecessarily?)
-
Repository
- State changed from new to resolved
- Tag changed from activerecord, migrations to activerecord, migrations, patch
(from [3d2ac918b987ef0cff34f6a7fdd20926b7a9e5d9]) Cache migrated versions list in Migrator and use it to fetch the latest migrated version name [#845 rake db:migrate queries the schema_migrations table many times (unnecessarily?) state:resolved]
Also optimized Migrator#current_version class method to fetch only the latest version number and not all of them.
With this change no matter how many migrations there are the schema_migrations table is only SELECTed from once.
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...
-
Repository
(from [7d2b72f3ae6f92e61d131349c4580be0d1dd12ca]) Cache migrated versions list in Migrator and use it to fetch the latest migrated version name [#845 rake db:migrate queries the schema_migrations table many times (unnecessarily?) state:resolved]
Also optimized Migrator#current_version class method to fetch only the latest version number and not all of them.
With this change no matter how many migrations there are the schema_migrations table is only SELECTed from once.
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...
