I'm trying to perform sort
and uniq
methods on large arrays of Active Record objects in the console - for example, trying to sort 1M records by certain attributes, etc.
I'm finding that it is extremely slow - how can I increase speed here?
Quick example: I have an an array of AR "item" objects (900,000 of them). I want to perform the uniq!
them by 2 attributes - name and brand.
Thanks!