Skip to content

Commit

Permalink
Add key transform performance note to docs (rails-api#1753)
Browse files Browse the repository at this point in the history
  • Loading branch information
remear authored and NullVoxPopuli committed May 26, 2016
1 parent 4de8d8c commit f2cb497
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/general/configuration_options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f2cb497

Please sign in to comment.