1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record
Abhay Nikam 85b5cd344b Disable colorize logging of SQL and reduce unnecessary invokation of sql_color matching
When the `colorize_logging` is disabled,
logs do not colorize the SQL queries.
But the `sql_color` method is always
invoked which due to regex matching results
in slow queries.

This PR fixes #38685 and removes
unnecessary invokation of `sql_color`
method when `colorize_logging` is disabled
2020-03-11 11:06:08 +05:30
..
associations Use index_by and index_with wherever possible 2020-03-05 01:24:14 +00:00
attribute_methods [ci skip] Fix typo, will_save_change_to_attribute -> will_save_change_to_attribute? 2019-12-11 23:02:38 +09:00
coders
connection_adapters Refactor schema migration on connection 2020-03-09 09:59:36 -04:00
database_configurations Fix error in deprecation 2020-02-28 17:00:45 -05:00
fixture_set Extract internal ActiveSupport::ConfigurationFile object 2020-02-10 02:50:12 +01:00
locale
locking Don't parse DB specific locking docs as code 2019-11-12 16:04:58 +01:00
middleware Allow updating the database selector context with the response 2020-01-16 19:25:22 +01:00
migration Invertable methods should have compatible method signature 2020-01-20 06:57:16 +09:00
railties Revert "Merge pull request #38658 from eileencodes/refactor-for-each-databases-code" 2020-03-05 18:15:47 -05:00
relation Use index_by and index_with wherever possible 2020-03-05 01:24:14 +00:00
scoping Expose klass.default_scoped as public API 2020-01-27 10:01:05 +09:00
tasks Revert "Merge pull request #38658 from eileencodes/refactor-for-each-databases-code" 2020-03-05 18:15:47 -05:00
type
type_caster
validations Add scale support to ActiveRecord::Validations::NumericalityValidator 2020-01-13 11:00:22 -05:00
advisory_lock_base.rb Move advisory lock to it's own connection 2020-01-23 14:36:32 -05:00
aggregations.rb
association_relation.rb Refactor association.scoping not to rely on klass.all 2019-10-22 00:06:31 +09:00
associations.rb Support strict_loading on association declarations 2020-02-21 13:11:24 -05:00
attribute_assignment.rb More less and lazy allocation for assign_attributes and _assign_attributes 2020-02-25 16:58:00 +09:00
attribute_decorators.rb
attribute_methods.rb Use index_by and index_with wherever possible 2020-03-05 01:24:14 +00:00
attributes.rb Use the model's adapter for the attribute type lookup 2020-01-16 21:26:08 -05:00
autosave_association.rb Remove comment 2020-01-06 16:18:32 -05:00
base.rb Remove unused requires 2019-10-29 21:52:27 -04:00
callbacks.rb Fix a doc regression [ci skip] 2020-02-25 00:48:18 +09:00
connection_adapters.rb Remove Resolver autoload 2019-11-13 15:28:50 -08:00
connection_handling.rb Remove owner_name 2020-03-07 09:00:43 -05:00
core.rb Use index_by and index_with wherever possible 2020-03-05 01:24:14 +00:00
counter_cache.rb
database_configurations.rb Remove owner_name 2020-03-07 09:00:43 -05:00
define_callbacks.rb
dynamic_matchers.rb
enum.rb Allow AR::Enum definitions with boolean values 2019-12-24 07:05:42 -10:00
errors.rb Update some references to finder options [ci skip] 2020-02-24 00:03:53 +00:00
explain.rb
explain_registry.rb
explain_subscriber.rb
fixtures.rb remove reference to global rails command and replace with bin/rails 2019-12-27 19:32:37 +00:00
gem_version.rb
inheritance.rb Add methods to the public API of ActiveRecord::Inheritance 2019-10-17 16:56:07 -04:00
insert_all.rb Use index_by and index_with wherever possible 2020-03-05 01:24:14 +00:00
integration.rb
internal_metadata.rb
legacy_yaml_adapter.rb
log_subscriber.rb Disable colorize logging of SQL and reduce unnecessary invokation of sql_color matching 2020-03-11 11:06:08 +05:30
migration.rb Update examples Migration versions to 6.0 [ci skip] 2020-02-16 15:38:51 -05:00
model_schema.rb Update examples Migration versions to 6.0 [ci skip] 2020-02-16 15:38:51 -05:00
nested_attributes.rb Fix: on accessing the parent record before creation with has_many_inversing adds two records to association 2020-02-20 09:26:47 +01:00
no_touching.rb
null_relation.rb
persistence.rb Add two cross links to methods in docs [skip ci] 2019-10-15 22:31:24 +10:00
query_cache.rb
querying.rb Add strict_loading mode to prevent lazy loading 2020-02-20 08:32:48 -05:00
railtie.rb Deprecate spec_name and use name for configurations 2020-02-24 13:27:07 -05:00
readonly_attributes.rb
reflection.rb Support strict_loading on association declarations 2020-02-21 13:11:24 -05:00
relation.rb Add strict_loading mode to prevent lazy loading 2020-02-20 08:32:48 -05:00
result.rb Only use a template when no duplicate columns 2019-10-31 11:45:21 -07:00
runtime_registry.rb
sanitization.rb [ci skip] switch eg. to proper e.g. 2019-10-07 02:18:36 +02:00
schema.rb
schema_dumper.rb remove reference to global rails command and replace with bin/rails 2019-12-27 19:32:37 +00:00
schema_migration.rb
scoping.rb
secure_token.rb
serialization.rb
statement_cache.rb
store.rb [ci skip] switch eg. to proper e.g. 2019-10-07 02:18:36 +02:00
suppressor.rb
table_metadata.rb Registered predicate handler should be used for association queries 2020-02-12 17:09:20 +09:00
test_databases.rb Restore previous behavior of parallel test databases 2020-01-07 16:03:00 -05:00
test_fixtures.rb Use index_by and index_with wherever possible 2020-03-05 01:24:14 +00:00
timestamp.rb
touch_later.rb
transactions.rb Clear callback triggers when transaction completes 2019-12-27 01:33:22 +00:00
translation.rb
type.rb Use the model's adapter for the attribute type lookup 2020-01-16 21:26:08 -05:00
type_caster.rb
validations.rb Add ActiveRecord::Validations::NumericalityValidator 2020-01-06 19:01:29 -05:00
version.rb