Created
December 26, 2019 18:34
-
-
Save tameem92/d219ccc9745d4bd11a7f7da9f8d743f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Benchmark both methods because in some cases pluck | |
# is faster than a select & map. | |
Category.select(:type) | |
Category.pluck(:type) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment