Using pluck can save a bunch of memory

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 https://rubyonrails.ba/single/using-pluck-can-save-a-bunch-of-memory

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles