Using pluck can save a bunch of memory
19-Sep-2018 2023
Active Record models are incredibly flexible and provide a very large amount of functionality. One consequence of providing this large API of methods is that each individual Active Record object takes up a lot of space when loaded into memory.If you only need to use a single field on an Active Record model, for example, the ids, then Rails has your back.
Using pluck can save a bunch of memory #ruby #rubydeveloper #rubyonrails #Using #pluck #bunch #memory https://rubyonrails.ba/link/using-pluck-can-save-a-bunch-of-memory