Sometimes I have to query a large amount of data in a database for data processing.
For example, I have a table: Activity, I want to find all the users who create activity in the last month,
Iβm only concerned about data arrays, and I donβt want to create many action models,
Can I do this?
like this code:
Activity.where('created_at > ?', Time.now - 1.month).get_data(:user_id, :created_at) => [[1, 2012-02-01] .... ]
source share