I am writing a Rails application that does a lot of calculations on imported pay-per-click advertising data. Imported logs containing impressions, clicks, conversions, etc. are stored in one massive log table, which then needs to be combined with a conversion table to calculate the cost-per-conversion, conversion rate for each campaign. Execution in MySQL seems fast enough (400 ms), but is there a reason for this in the application, and not at the database level?
Thanks!
source share