From f2cb497fe373864d47b8cfb519fbc851d9c4e589 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Thu, 26 May 2016 14:19:19 -0600 Subject: [PATCH] Add key transform performance note to docs (#1753) --- docs/general/configuration_options.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/general/configuration_options.md b/docs/general/configuration_options.md index a8561554..ba7974d9 100644 --- a/docs/general/configuration_options.md +++ b/docs/general/configuration_options.md @@ -52,6 +52,9 @@ Each adapter has a default key transform configured: `config.key_transform` is a global override of the adapter default. Adapters still prefer the render option `:key_transform` over this setting. +*NOTE: Key transforms can be expensive operations. If key transforms are unnecessary for the +application, setting `config.key_transform` to `:unaltered` will provide a performance boost.* + ##### default_includes What relationships to serialize by default. Default: `'*'`, which includes one level of related objects. See [includes](adapters.md#included) for more info.