I have 2 sets of data as following:
default_products - A set of active record objects retrieved from memcached owned_products - A set of active record objects retrieved from the database
Retrieving the data is fast and i get around 30-40 req/s when just returning either one of the arrays yet as soon as i do the following to return both:
all_products = default_products + owned_products
Performance plummets to around 3-4 req/s. Why is this operation so slow? Is there another way to do this to speed things up?
The 'products' use STI to have subclasses such as 'Furniture' and 'Clothing' could this cause any performance problem?
Thanks