Ok guys, heres something I came across today which I have an idea of what I could do, but im sure theres an easier way..
I have an ActiveRecord class called Releases and one called Albums, im merging to two tables together to a)save space and b)speed up sql called because theres no joins. Here a show of the releases table (postgres if your interested) showing all with the album_id 46. http://arbarlow.s3.amazonaws.com/nwrug.png I have an Album that has an id 46 and i want to now add the country_id, label_id and realease_date to it, but since theres more than one release row, i need to find a way to condense the array the find the most common values and then save that to the Album table. Does this seem like a good idea or am I thinking to hard here? Cheers, Alex --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "NWRUG" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nwrug-members?hl=en -~----------~----~----~----~------~----~------~--~---
