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 Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
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 Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
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 ♻️ Fix mysql type map for enum and set 2019-01-08 14:56:46 +09:00
schema_cache_test.rb Cache database version in schema cache 2019-04-03 11:10:14 -04:00
type_lookup_test.rb Revert commit 4ec5b0d6b4 in favor of #28379 2018-01-07 10:17:36 +09:00