1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases/connection_adapters
Ali Ibrahim 1c6e508ade Cache database version in schema cache
* The database version will get cached in the schema cache file during the
    schema cache dump. When the database version check happens, the version will
    be pulled from the schema cache and thus avoid querying the database for
    the version.
  * If the schema cache file doesn't exist, we'll query the database for the
    version and cache it on the schema cache object.
  * To facilitate this change, all connection adapters now implement
    #get_database_version and #database_version. #database_version returns the
    value from the schema cache.
  * To take advantage of the cached database version, the database version check
    will now happen after the schema cache is set on the connection in the
    connection pool.
2019-04-03 11:10:14 -04:00
..
adapter_leasing_test.rb
connection_handler_test.rb Add ability to change the names of the default handlers 2019-02-01 14:11:35 -05:00
connection_handlers_multi_db_test.rb Add ability to change the names of the default handlers 2019-02-01 14:11:35 -05:00
connection_specification_test.rb
merge_and_resolve_default_url_config_test.rb Fix database configurations building when DATABASE_URL present 2019-02-12 17:00:17 -05:00
mysql_type_lookup_test.rb
schema_cache_test.rb Cache database version in schema cache 2019-04-03 11:10:14 -04:00
type_lookup_test.rb