implemented cache (still needs to be tuned) - reportable - Fork of reportable required by WarVox, from hdm/reportable.
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) commit a771a4edd3299e55fa571e6645a589c64df25e8c
 (DIR) parent 220be9e1582998c21541fd6dd0bcf96234458d67
 (HTM) Author: marcoow <marco.otte-witte@simplabs.com>
       Date:   Thu,  4 Dec 2008 00:00:00 +0800
       
       implemented cache (still needs to be tuned)
       
       Signed-off-by: Marco Otte-Witte <marco.otte-witte@simplabs.com>
       Diffstat:
         M generators/reports_as_sparkline_mi… |      77 ++++++++-----------------------
         M lib/kvlr/reports_as_sparkline/grou… |      38 ++++++++++++++++++++++---------
         M lib/kvlr/reports_as_sparkline/repo… |      36 ++++++++++++++++++++++++-------
         M spec/db/schema.rb                   |      11 ++++++++++-
         M spec/log/spec.log                   |   14297 +++++++++++++++++++++++++++++++
         M spec/models/report_method_spec.rb   |       4 ----
         M spec/other/grouping_spec.rb         |      20 ++++++++++----------
         M spec/other/report_cache_spec.rb     |      14 +++++++-------
         M spec/other/report_spec.rb           |       4 ++--
       
       9 files changed, 14400 insertions(+), 101 deletions(-)
       ---
 (DIR) diff --git a/generators/reports_as_sparkline_migration/templates/migration.erb b/generators/reports_as_sparkline_migration/templates/migration.erb
       @@ -1,71 +1,32 @@
        class <%= class_name %> < ActiveRecord::Migration
        
          def self.up
       -    create_table :containers, :force => true do |t|
       -      t.string     :name, :null => false, :limit => 250
       -      t.timestamps
       -    end
       -    add_index :containers, :name, :unique => true
       +    create_table :report_caches, :force => true do |t|
       +      t.string   :model_name,       :null => false
       +      t.string   :report_name,      :null => false
       +      t.string   :report_grouping,  :null => false
       +      t.float    :value,            :null => false, :default => 0
       +      t.datetime :reporting_period, :null => false
        
       -    create_table :contents, :force => true do |t|
       -      t.string     :name,        :null => false, :limit => 250
       -      t.string     :title,                       :limit => 250
       -      t.string     :slug,                        :limit => 250
       -      t.integer    :parent_id
       -      t.integer    :container_id
       -      t.timestamps
       -    end
       -    add_index :contents, :container_id
       -    add_index :contents, :name
       -    add_index :contents, :slug
       -    add_index :contents, [:container_id, :slug], :unique => true
       -    
       -    create_table :sections, :force => true do |t|
       -      t.string     :name,       :null => false, :limit => 250
       -      t.text       :body
       -      t.integer    :content_id, :null => false
              t.timestamps
            end
       -    add_index :sections, :content_id
       -    add_index :sections, :name
       -    add_index :sections, [:content_id, :name], :unique => true
       -    
       -    create_table :tags, :force => true do |t|
       -      t.string     :name, :null => false, :limit => 100
       -      t.string     :slug, :null => false, :limit => 100
       -      t.timestamps
       -    end
       -    add_index :tags, :name
       -    add_index :tags, :slug
       -    
       -    create_table :contents_tags, :force => true, :id => false do |t|
       -      t.integer :content_id, :null => false
       -      t.integer :tag_id,     :null => false
       -    end
       -    add_index :contents_tags, :content_id
       -    add_index :contents_tags, :tag_id
       -    add_index :contents_tags, [:tag_id, :content_id]
       +    add_index :report_caches, [
       +      :model_name,
       +      :report_name,
       +      :report_grouping
       +    ], :name => 'name_klass_grouping'
       +    add_index :report_caches, [
       +      :model_name, :report_name,
       +      :report_grouping,
       +      :reporting_period
       +    ], :unique => true, :name => 'report_caches_name_klass_grouping_period'
          end
        
          def self.down
       -    remove_index :containers,    :name
       -    remove_index :contents,      :container_id
       -    remove_index :contents,      :name
       -    remove_index :contents,      :slug
       -    remove_index :contents,      [:container_id, :slug]
       -    remove_index :sections,      :content_id
       -    remove_index :sections,      :name
       -    remove_index :tags,          :name
       -    remove_index :tags,          :slug
       -    remove_index :contents_tags, :content_id
       -    remove_index :contents_tags, :tag_id
       -    remove_index :contents_tags, :tag_id, :content_id
       +    remove_index :report_caches, :name_klass_grouping
       +    remove_index :report_caches, :report_caches_name_klass_grouping_period
        
       -    drop_table :containers
       -    drop_table :contents
       -    drop_table :sections
       -    drop_table :tags
       -    drop_table :contents_tags
       +    drop_table :report_caches
          end
        
        end
 (DIR) diff --git a/lib/kvlr/reports_as_sparkline/grouping.rb b/lib/kvlr/reports_as_sparkline/grouping.rb
       @@ -4,17 +4,19 @@ module Kvlr #:nodoc:
        
            class Grouping
        
       -      attr_reader :identifier
       -
              @@allowed_groupings = [:month, :week, :day, :hour]
        
              def initialize(grouping)
                raise ArgumentError.new("Argument grouping must be one of #{@@allowed_groupings.map(&:to_s).join(', ')}") unless @@allowed_groupings.include?(grouping)
       -        @grouping = grouping
       +        @identifier = grouping
       +      end
       +
       +      def identifier
       +        @identifier.to_s
              end
        
              def to_reporting_period(date_time)
       -        return case @grouping
       +        return case @identifier
                  when :day
                    date_time.to_date
                  when :week
       @@ -27,24 +29,38 @@ module Kvlr #:nodoc:
                  end
              end
        
       -      def previous_reporting_period(period)
       -        return case @grouping
       +      def next_reporting_period(period)
       +        return case @identifier
                  when :day
       -            period - 1.day
       +            period + 1.day
                  when :week
       -            period - 1.week
       +            period + 1.week
                  when :month
       -            period -= 1.month
       +            period += 1.month
                    Date.new(period.year, period.month, 1)
                  when :hour
       -            period - 1.hour
       +            period + 1.hour
       +          end
       +      end
       +
       +      def first_reporting_period(limit)
       +        return case @identifier
       +          when :day
       +            to_reporting_period(Time.now - limit.days)
       +          when :week
       +            to_reporting_period(Time.now - limit.weeks)
       +          when :month
       +            date = Time.now - limit.months
       +            Date.new(date.year, date.month, 1)
       +          when :hour
       +            to_reporting_period(Time.now - limit.hours)
                  end
              end
        
              def to_sql(date_column_name)
                #TODO: DATE_FORMAT's format string is different on different RDBMs => custom format string for all supported RDBMs needed!
                # => this can be implemented using ActiveRecord::Base.connection.class
       -        return case @grouping
       +        return case @identifier
                  when :day
                    "DATE_FORMAT(#{date_column_name}, '%Y/%m/%d')"
                  when :week
 (DIR) diff --git a/lib/kvlr/reports_as_sparkline/report_cache.rb b/lib/kvlr/reports_as_sparkline/report_cache.rb
       @@ -13,23 +13,43 @@ module Kvlr #:nodoc:
                    :limit => limit,
                    :order => "#{date_column_name.to_s} DESC"
                  )
       -          last_reporting_period_to_read = get_last_reporting_period(cached_data, grouping)
       +          last_reporting_period_to_read = get_last_reporting_period(cached_data, grouping, grouping.first_reporting_period(limit))
                  new_data = yield(last_reporting_period_to_read)
       -          #TODO: write new data
       +          write_to_cache(new_data, report, grouping)
       +          return cached_data + new_data
                end
       -        #TODO: combine data read from cache and newly read data and return
              end
        
              private
        
       -        def self.get_last_reporting_period(cached_data, grouping, acc = nil)
       -          acc ||= grouping.to_reporting_period(Time.now)
       +        def self.get_last_reporting_period(cached_data, grouping, acc)
                  return acc if cached_data.empty?
       -          acc = grouping.previous_reporting_period(acc)
       -          if cached_data.any? { |cache| cache.reporting_period == acc }
       +          if cached_data.any? { |cache| cache.reporting_period == acc } && !cached_data.any? { |cache| cache.reporting_period == grouping.next_reporting_period(acc) }
                    return acc
                  else
       -            self.get_last_reporting_period(cached_data, grouping, acc)
       +            self.get_last_reporting_period(cached_data, grouping, grouping.next_reporting_period(acc))
       +          end
       +        end
       +
       +        def self.write_to_cache(data, report, grouping)
       +          for row in data
       +            cached = self.find(:first, :conditions => {
       +              :model_name       => report.klass.to_s,
       +              :report_name      => report.name.to_s,
       +              :report_grouping  => grouping.identifier.to_s,
       +              :reporting_period => grouping.to_reporting_period(DateTime.parse(row[0]))
       +            })
       +            if cached
       +              cached.update_attributes!(:value => row[1])
       +            else
       +              self.create!(
       +                :model_name       => report.klass.to_s,
       +                :report_name      => report.name.to_s,
       +                :report_grouping  => grouping.identifier.to_s,
       +                :reporting_period => grouping.to_reporting_period(DateTime.parse(row[0])),
       +                :value            => row[1]
       +              )
       +            end
                  end
                end
        
 (DIR) diff --git a/spec/db/schema.rb b/spec/db/schema.rb
       @@ -16,6 +16,15 @@ ActiveRecord::Schema.define(:version => 1) do
        
            t.timestamps
          end
       -  add_index :report_caches, [:model_name, :report_name, :report_grouping], :unique => true, :name => "report_caches_uk"
       +  add_index :report_caches, [
       +    :model_name,
       +    :report_name,
       +    :report_grouping
       +  ], :name => 'report_caches_name_klass_grouping'
       +  add_index :report_caches, [
       +    :model_name, :report_name,
       +    :report_grouping,
       +    :reporting_period
       +  ], :unique => true, :name => 'report_caches_name_klass_grouping_period'
        
        end
 (DIR) diff --git a/spec/log/spec.log b/spec/log/spec.log
       @@ -21136,3 +21136,14300 @@
         WHERE `id` = 21
        
          SQL (0.000692)   COMMIT
       +  SQL (0.036155)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.027039)   SHOW TABLES
       +  SQL (0.002418)   DROP TABLE `users`
       +  SQL (0.095170)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000713)   SHOW TABLES
       +  SQL (0.017966)   DROP TABLE `report_caches`
       +  SQL (0.186745)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.124797)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.000844)   SHOW TABLES
       +  SQL (0.001846)   SELECT version FROM `schema_migrations`
       +  SQL (0.000169)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000865)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = '' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.002281)   SHOW FIELDS FROM `users`
       +  SQL (0.000652)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000153)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000361)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = '' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000390)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000161)   COMMIT
       +  SQL (0.000124)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000358)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = '' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000349)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000254)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000267)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:11:01', 'test 1', '2008-11-26 10:11:01')
       +  SQL (0.000797)   COMMIT
       +  SQL (0.000163)   BEGIN
       +  User Create (0.000292)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:11:01', 'test 2', '2008-11-19 10:11:01')
       +  SQL (0.000649)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000237)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:11:01', 'test 3', '2008-11-19 10:11:01')
       +  SQL (0.000695)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000422)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = '' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000443)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000169)   COMMIT
       +  User Load (0.000249)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000252)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000766)   COMMIT
       +  SQL (0.000217)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000845)   COMMIT
       +  SQL (0.000210)   BEGIN
       +  User Destroy (0.000219)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000604)   COMMIT
       +  SQL (0.000171)   BEGIN
       +  User Create (0.000285)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:11:01', 'test 1', '2008-11-26 10:11:01')
       +  SQL (0.000736)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  User Create (0.000237)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:11:01', 'test 2', '2008-11-19 10:11:01')
       +  SQL (0.000686)   COMMIT
       +  SQL (0.000145)   BEGIN
       +  User Create (0.000256)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:11:01', 'test 3', '2008-11-19 10:11:01')
       +  SQL (0.000697)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000405)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = '' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000369)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000135)   COMMIT
       +  User Load (0.000235)   SELECT * FROM `users` 
       +  SQL (0.000133)   BEGIN
       +  User Destroy (0.000221)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000700)   COMMIT
       +  SQL (0.000185)   BEGIN
       +  User Destroy (0.000306)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000676)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000673)   COMMIT
       +  SQL (0.000136)   BEGIN
       +  User Create (0.000341)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:11:01', 'test 1', '2008-11-26 10:11:01')
       +  SQL (0.000617)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000243)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:11:01', 'test 2', '2008-11-19 10:11:01')
       +  SQL (0.000731)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  User Create (0.000231)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:11:01', 'test 3', '2008-11-19 10:11:01')
       +  SQL (0.000720)   COMMIT
       +  SQL (0.000221)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000384)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = '' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000506)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000149)   COMMIT
       +  User Load (0.000267)   SELECT * FROM `users` 
       +  SQL (0.000123)   BEGIN
       +  User Destroy (0.000267)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000666)   COMMIT
       +  SQL (0.000121)   BEGIN
       +  User Destroy (0.000227)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000605)   COMMIT
       +  SQL (0.000168)   BEGIN
       +  User Destroy (0.000286)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000675)   COMMIT
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.001760)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.001011)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000296)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = '' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000072)   COMMIT
       +  SQL (0.002857)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000287)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = '' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000105)   COMMIT
       +  SQL (0.000133)   BEGIN
       +  User Create (0.000205)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:11:01', 'test 1', '2008-11-26 10:11:01')
       +  SQL (0.000797)   COMMIT
       +  SQL (0.000262)   BEGIN
       +  User Create (0.000221)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:11:01', 'test 2', '2008-11-19 10:11:01')
       +  SQL (0.000626)   COMMIT
       +  SQL (0.000145)   BEGIN
       +  User Create (0.000252)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:11:01', 'test 3', '2008-11-19 10:11:01')
       +  SQL (0.000699)   COMMIT
       +  SQL (0.000223)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000392)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = '' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000430)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000199)   COMMIT
       +  User Load (0.000384)   SELECT * FROM `users` 
       +  SQL (0.000151)   BEGIN
       +  User Destroy (0.000293)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000683)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000671)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000682)   COMMIT
       +  SQL (0.000177)   BEGIN
       +  User Create (0.000259)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:11:01', 'test 1', '2008-11-26 10:11:01')
       +  SQL (0.000756)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  User Create (0.000288)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:11:01', 'test 2', '2008-11-19 10:11:01')
       +  SQL (0.000733)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Create (0.000273)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:11:01', 'test 3', '2008-11-19 10:11:01')
       +  SQL (0.001151)   COMMIT
       +  SQL (0.000187)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000400)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = '' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000468)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000170)   COMMIT
       +  User Load (0.000292)   SELECT * FROM `users` 
       +  SQL (0.000095)   BEGIN
       +  User Destroy (0.000214)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000586)   COMMIT
       +  SQL (0.000134)   BEGIN
       +  User Destroy (0.000209)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000457)   COMMIT
       +  SQL (0.000085)   BEGIN
       +  User Destroy (0.000178)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000679)   COMMIT
       +  SQL (0.000171)   BEGIN
       +  User Create (0.000274)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:11:01', 'test 1', '2008-11-26 10:11:01')
       +  SQL (0.000796)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  User Create (0.000241)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:11:01', 'test 2', '2008-11-19 10:11:01')
       +  SQL (0.000716)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Create (0.000252)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:11:01', 'test 3', '2008-11-19 10:11:01')
       +  SQL (0.000718)   COMMIT
       +  SQL (0.000210)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000384)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = '' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000491)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000132)   COMMIT
       +  User Load (0.000271)   SELECT * FROM `users` 
       +  SQL (0.000166)   BEGIN
       +  User Destroy (0.000275)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000767)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000753)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  User Destroy (0.000375)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000699)   COMMIT
       +  SQL (0.000168)   BEGIN
       +  User Create (0.000265)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:11:01', 'test 1', '2008-11-26 10:11:01')
       +  SQL (0.000797)   COMMIT
       +  SQL (0.000231)   BEGIN
       +  User Create (0.000242)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:11:01', 'test 2', '2008-11-19 10:11:01')
       +  SQL (0.000711)   COMMIT
       +  SQL (0.000316)   BEGIN
       +  User Create (0.000230)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:11:01', 'test 3', '2008-11-19 10:11:01')
       +  SQL (0.000611)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000371)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = '' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000510)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000631)   COMMIT
       +  User Load (0.000336)   SELECT * FROM `users` 
       +  SQL (0.000126)   BEGIN
       +  User Destroy (0.000448)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000741)   COMMIT
       +  SQL (0.000114)   BEGIN
       +  User Destroy (0.000278)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000534)   COMMIT
       +  SQL (0.000104)   BEGIN
       +  User Destroy (0.000196)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000524)   COMMIT
       +  SQL (0.000277)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000725)   SHOW TABLES
       +  SQL (0.002367)   DROP TABLE `users`
       +  SQL (0.101914)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000856)   SHOW TABLES
       +  SQL (0.001828)   DROP TABLE `report_caches`
       +  SQL (0.208538)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.124477)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.000748)   SHOW TABLES
       +  SQL (0.000306)   SELECT version FROM `schema_migrations`
       +  SQL (0.000295)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000618)   SHOW TABLES
       +  SQL (0.001999)   DROP TABLE `users`
       +  SQL (0.096246)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000651)   SHOW TABLES
       +  SQL (0.001677)   DROP TABLE `report_caches`
       +  SQL (0.229237)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.138442)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001031)   SHOW TABLES
       +  SQL (0.000367)   SELECT version FROM `schema_migrations`
       +  SQL (0.000150)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000619)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.002984)   SHOW FIELDS FROM `users`
       +  SQL (0.000392)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000138)   COMMIT
       +  SQL (0.000118)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000345)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000320)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000135)   COMMIT
       +  SQL (0.000135)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000295)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000299)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000133)   COMMIT
       +  SQL (0.001033)   BEGIN
       +  User Create (0.000522)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:25:46', 'test 1', '2008-11-26 10:25:46')
       +  SQL (0.002148)   COMMIT
       +  SQL (0.000127)   BEGIN
       +  User Create (0.000252)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:25:46', 'test 2', '2008-11-19 10:25:46')
       +  SQL (0.000587)   COMMIT
       +  SQL (0.000127)   BEGIN
       +  User Create (0.000255)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:25:46', 'test 3', '2008-11-19 10:25:46')
       +  SQL (0.000738)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000392)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000437)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000114)   COMMIT
       +  User Load (0.000256)   SELECT * FROM `users` 
       +  SQL (0.000238)   BEGIN
       +  User Destroy (0.000265)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000767)   COMMIT
       +  SQL (0.000210)   BEGIN
       +  User Destroy (0.000245)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000659)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  User Destroy (0.000226)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000694)   COMMIT
       +  SQL (0.000174)   BEGIN
       +  User Create (0.000288)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:25:46', 'test 1', '2008-11-26 10:25:46')
       +  SQL (0.000732)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:25:46', 'test 2', '2008-11-19 10:25:46')
       +  SQL (0.000686)   COMMIT
       +  SQL (0.000187)   BEGIN
       +  User Create (0.000224)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:25:46', 'test 3', '2008-11-19 10:25:46')
       +  SQL (0.000692)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000525)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000397)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000242)   COMMIT
       +  User Load (0.000254)   SELECT * FROM `users` 
       +  SQL (0.000113)   BEGIN
       +  User Destroy (0.000234)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000840)   COMMIT
       +  SQL (0.000227)   BEGIN
       +  User Destroy (0.000305)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000644)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000227)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000658)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000260)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:25:46', 'test 1', '2008-11-26 10:25:46')
       +  SQL (0.000610)   COMMIT
       +  SQL (0.000156)   BEGIN
       +  User Create (0.000237)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:25:46', 'test 2', '2008-11-19 10:25:46')
       +  SQL (0.000723)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000233)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:25:46', 'test 3', '2008-11-19 10:25:46')
       +  SQL (0.000585)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000373)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000483)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000152)   COMMIT
       +  User Load (0.001089)   SELECT * FROM `users` 
       +  SQL (0.000149)   BEGIN
       +  User Destroy (0.000283)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000732)   COMMIT
       +  SQL (0.000114)   BEGIN
       +  User Destroy (0.000332)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000611)   COMMIT
       +  SQL (0.000109)   BEGIN
       +  User Destroy (0.000278)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000542)   COMMIT
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.003223)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000403)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.002113)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000171)   ROLLBACK
       +  SQL (0.000152)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000351)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000146)   ROLLBACK
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000257)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:25:46', 'test 1', '2008-11-26 10:25:46')
       +  SQL (0.000750)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000248)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:25:46', 'test 2', '2008-11-19 10:25:46')
       +  SQL (0.000823)   COMMIT
       +  SQL (0.000137)   BEGIN
       +  User Create (0.000228)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:25:46', 'test 3', '2008-11-19 10:25:46')
       +  SQL (0.000579)   COMMIT
       +  SQL (0.000110)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000376)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000400)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000137)   COMMIT
       +  User Load (0.000241)   SELECT * FROM `users` 
       +  SQL (0.000152)   BEGIN
       +  User Destroy (0.000271)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000756)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Destroy (0.000257)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000549)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Destroy (0.000355)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000644)   COMMIT
       +  SQL (0.000141)   BEGIN
       +  User Create (0.000742)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:25:46', 'test 1', '2008-11-26 10:25:46')
       +  SQL (0.000880)   COMMIT
       +  SQL (0.000250)   BEGIN
       +  User Create (0.000256)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:25:46', 'test 2', '2008-11-19 10:25:46')
       +  SQL (0.000580)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Create (0.000216)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:25:46', 'test 3', '2008-11-19 10:25:46')
       +  SQL (0.000664)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000552)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000976)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000157)   COMMIT
       +  User Load (0.000248)   SELECT * FROM `users` 
       +  SQL (0.000140)   BEGIN
       +  User Destroy (0.000255)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000733)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000652)   COMMIT
       +  SQL (0.000194)   BEGIN
       +  User Destroy (0.000225)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000682)   COMMIT
       +  SQL (0.000146)   BEGIN
       +  User Create (0.000249)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:25:46', 'test 1', '2008-11-26 10:25:46')
       +  SQL (0.000584)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:25:46', 'test 2', '2008-11-19 10:25:46')
       +  SQL (0.000590)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:25:46', 'test 3', '2008-11-19 10:25:46')
       +  SQL (0.000664)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000371)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000398)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000148)   COMMIT
       +  User Load (0.000261)   SELECT * FROM `users` 
       +  SQL (0.000142)   BEGIN
       +  User Destroy (0.000282)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000761)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000566)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Destroy (0.000408)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000723)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Create (0.000316)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:25:46', 'test 1', '2008-11-26 10:25:46')
       +  SQL (0.000773)   COMMIT
       +  SQL (0.000117)   BEGIN
       +  User Create (0.000221)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:25:46', 'test 2', '2008-11-19 10:25:46')
       +  SQL (0.000671)   COMMIT
       +  SQL (0.000116)   BEGIN
       +  User Create (0.000263)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:25:46', 'test 3', '2008-11-19 10:25:46')
       +  SQL (0.000667)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000410)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000566)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000120)   COMMIT
       +  User Load (0.000272)   SELECT * FROM `users` 
       +  SQL (0.000132)   BEGIN
       +  User Destroy (0.000256)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000773)   COMMIT
       +  SQL (0.000215)   BEGIN
       +  User Destroy (0.000232)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000772)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  User Destroy (0.000227)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000637)   COMMIT
       +  SQL (0.000265)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000594)   SHOW TABLES
       +  SQL (0.001870)   DROP TABLE `users`
       +  SQL (0.097073)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000442)   SHOW TABLES
       +  SQL (0.001658)   DROP TABLE `report_caches`
       +  SQL (0.172488)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.299938)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001333)   SHOW TABLES
       +  SQL (0.001066)   SELECT version FROM `schema_migrations`
       +  SQL (0.000120)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000448)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000117)   ROLLBACK
       +  SQL (0.000104)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000235)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000112)   ROLLBACK
       +  User Columns (0.001749)   SHOW FIELDS FROM `users`
       +  SQL (0.000123)   BEGIN
       +  User Create (0.000212)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:55:07', 'test 1', '2008-11-26 10:55:07')
       +  SQL (0.000585)   COMMIT
       +  SQL (0.000103)   BEGIN
       +  User Create (0.000155)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:55:07', 'test 2', '2008-11-19 10:55:07')
       +  SQL (0.000572)   COMMIT
       +  SQL (0.000211)   BEGIN
       +  User Create (0.000224)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:55:07', 'test 3', '2008-11-19 10:55:07')
       +  SQL (0.000581)   COMMIT
       +  SQL (0.000142)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000344)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000377)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000113)   COMMIT
       +  User Load (0.000786)   SELECT * FROM `users` 
       +  SQL (0.000116)   BEGIN
       +  User Destroy (0.000232)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000640)   COMMIT
       +  SQL (0.000097)   BEGIN
       +  User Destroy (0.000169)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000436)   COMMIT
       +  SQL (0.000141)   BEGIN
       +  User Destroy (0.000168)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000768)   COMMIT
       +  SQL (0.000266)   BEGIN
       +  User Create (0.000285)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:55:07', 'test 1', '2008-11-26 10:55:07')
       +  SQL (0.000651)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Create (0.000240)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:55:07', 'test 2', '2008-11-19 10:55:07')
       +  SQL (0.000623)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000248)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:55:07', 'test 3', '2008-11-19 10:55:07')
       +  SQL (0.000602)   COMMIT
       +  SQL (0.000217)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000826)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000409)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000115)   COMMIT
       +  User Load (0.000779)   SELECT * FROM `users` 
       +  SQL (0.000117)   BEGIN
       +  User Destroy (0.000233)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000742)   COMMIT
       +  SQL (0.000133)   BEGIN
       +  User Destroy (0.000452)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000790)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  User Destroy (0.000302)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000585)   COMMIT
       +  SQL (0.000217)   BEGIN
       +  User Create (0.000297)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:55:07', 'test 1', '2008-11-26 10:55:07')
       +  SQL (0.000756)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  User Create (0.000266)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:55:07', 'test 2', '2008-11-19 10:55:07')
       +  SQL (0.000678)   COMMIT
       +  SQL (0.000137)   BEGIN
       +  User Create (0.000238)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:55:07', 'test 3', '2008-11-19 10:55:07')
       +  SQL (0.000658)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000551)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000385)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000111)   COMMIT
       +  User Load (0.000961)   SELECT * FROM `users` 
       +  SQL (0.000114)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000816)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Destroy (0.000486)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.001315)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  User Destroy (0.000763)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000731)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Create (0.000272)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:55:07', 'test 1', '2008-11-26 10:55:07')
       +  SQL (0.000725)   COMMIT
       +  SQL (0.000170)   BEGIN
       +  User Create (0.000223)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:55:07', 'test 2', '2008-11-19 10:55:07')
       +  SQL (0.000610)   COMMIT
       +  SQL (0.000113)   BEGIN
       +  User Create (0.000241)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:55:07', 'test 3', '2008-11-19 10:55:07')
       +  SQL (0.000713)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000401)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000477)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000130)   COMMIT
       +  User Load (0.000545)   SELECT * FROM `users` 
       +  SQL (0.000781)   BEGIN
       +  User Destroy (0.000344)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000749)   COMMIT
       +  SQL (0.000243)   BEGIN
       +  User Destroy (0.000204)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000706)   COMMIT
       +  SQL (0.000069)   BEGIN
       +  User Destroy (0.000182)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000700)   COMMIT
       +  SQL (0.000265)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000547)   SHOW TABLES
       +  SQL (0.002235)   DROP TABLE `users`
       +  SQL (0.090823)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.002457)   SHOW TABLES
       +  SQL (0.002160)   DROP TABLE `report_caches`
       +  SQL (0.208121)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.125996)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001374)   SHOW TABLES
       +  SQL (0.000335)   SELECT version FROM `schema_migrations`
       +  SQL (0.000118)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000500)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000126)   ROLLBACK
       +  SQL (0.000112)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000235)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000109)   ROLLBACK
       +  User Columns (0.002985)   SHOW FIELDS FROM `users`
       +  SQL (0.000159)   BEGIN
       +  User Create (0.000326)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:55:28', 'test 1', '2008-11-26 10:55:28')
       +  SQL (0.000811)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000289)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:55:28', 'test 2', '2008-11-19 10:55:28')
       +  SQL (0.000744)   COMMIT
       +  SQL (0.000191)   BEGIN
       +  User Create (0.000250)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:55:28', 'test 3', '2008-11-19 10:55:28')
       +  SQL (0.000681)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000428)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000397)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000137)   COMMIT
       +  User Load (0.000293)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000258)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000736)   COMMIT
       +  SQL (0.000100)   BEGIN
       +  User Destroy (0.000147)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000575)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  User Destroy (0.000361)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.001365)   COMMIT
       +  SQL (0.000183)   BEGIN
       +  User Create (0.000312)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:55:28', 'test 1', '2008-11-26 10:55:28')
       +  SQL (0.000641)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:55:28', 'test 2', '2008-11-19 10:55:28')
       +  SQL (0.000846)   COMMIT
       +  SQL (0.000249)   BEGIN
       +  User Create (0.000244)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:55:28', 'test 3', '2008-11-19 10:55:28')
       +  SQL (0.000704)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000393)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000588)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000134)   COMMIT
       +  User Load (0.000284)   SELECT * FROM `users` 
       +  SQL (0.000121)   BEGIN
       +  User Destroy (0.000241)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000662)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000233)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000699)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  User Destroy (0.000238)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000671)   COMMIT
       +  SQL (0.000141)   BEGIN
       +  User Create (0.000304)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:55:28', 'test 1', '2008-11-26 10:55:28')
       +  SQL (0.000603)   COMMIT
       +  SQL (0.000121)   BEGIN
       +  User Create (0.000293)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:55:28', 'test 2', '2008-11-19 10:55:28')
       +  SQL (0.000713)   COMMIT
       +  SQL (0.000176)   BEGIN
       +  User Create (0.000263)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:55:28', 'test 3', '2008-11-19 10:55:28')
       +  SQL (0.000621)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000381)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000418)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000150)   COMMIT
       +  User Load (0.000262)   SELECT * FROM `users` 
       +  SQL (0.000146)   BEGIN
       +  User Destroy (0.000261)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000869)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  User Destroy (0.000247)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000687)   COMMIT
       +  SQL (0.000224)   BEGIN
       +  User Destroy (0.000752)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000685)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000279)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:55:28', 'test 1', '2008-11-26 10:55:28')
       +  SQL (0.000780)   COMMIT
       +  SQL (0.000249)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:55:28', 'test 2', '2008-11-19 10:55:28')
       +  SQL (0.000684)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Create (0.000248)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:55:28', 'test 3', '2008-11-19 10:55:28')
       +  SQL (0.000644)   COMMIT
       +  SQL (0.000145)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000431)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000438)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000234)   COMMIT
       +  User Load (0.000245)   SELECT * FROM `users` 
       +  SQL (0.000104)   BEGIN
       +  User Destroy (0.000212)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000762)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Destroy (0.000238)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000673)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000228)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000688)   COMMIT
       +  SQL (0.000278)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000584)   SHOW TABLES
       +  SQL (0.002522)   DROP TABLE `users`
       +  SQL (0.083748)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000828)   SHOW TABLES
       +  SQL (0.001700)   DROP TABLE `report_caches`
       +  SQL (0.138660)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.125769)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001587)   SHOW TABLES
       +  SQL (0.002190)   SELECT version FROM `schema_migrations`
       +  SQL (0.000107)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000532)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000103)   ROLLBACK
       +  SQL (0.000111)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000247)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000110)   ROLLBACK
       +  User Columns (0.002823)   SHOW FIELDS FROM `users`
       +  SQL (0.000163)   BEGIN
       +  User Create (0.000259)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:55:42', 'test 1', '2008-11-26 10:55:42')
       +  SQL (0.000888)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Create (0.000266)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:55:42', 'test 2', '2008-11-19 10:55:42')
       +  SQL (0.000728)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000239)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:55:42', 'test 3', '2008-11-19 10:55:42')
       +  SQL (0.000530)   COMMIT
       +  SQL (0.000108)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000329)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000409)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000137)   COMMIT
       +  User Load (0.000232)   SELECT * FROM `users` 
       +  SQL (0.000139)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000693)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000692)   COMMIT
       +  SQL (0.000194)   BEGIN
       +  User Destroy (0.000222)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000586)   COMMIT
       +  SQL (0.000187)   BEGIN
       +  User Create (0.000232)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:55:42', 'test 1', '2008-11-26 10:55:42')
       +  SQL (0.000560)   COMMIT
       +  SQL (0.000142)   BEGIN
       +  User Create (0.000211)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:55:42', 'test 2', '2008-11-19 10:55:42')
       +  SQL (0.000690)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Create (0.000221)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:55:42', 'test 3', '2008-11-19 10:55:42')
       +  SQL (0.000650)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000378)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000503)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000159)   COMMIT
       +  User Load (0.000255)   SELECT * FROM `users` 
       +  SQL (0.000155)   BEGIN
       +  User Destroy (0.000240)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000753)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000233)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000708)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Destroy (0.000252)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000686)   COMMIT
       +  SQL (0.000140)   BEGIN
       +  User Create (0.000218)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:55:42', 'test 1', '2008-11-26 10:55:42')
       +  SQL (0.000697)   COMMIT
       +  SQL (0.000238)   BEGIN
       +  User Create (0.000240)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:55:42', 'test 2', '2008-11-19 10:55:42')
       +  SQL (0.000691)   COMMIT
       +  SQL (0.000228)   BEGIN
       +  User Create (0.000258)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:55:42', 'test 3', '2008-11-19 10:55:42')
       +  SQL (0.000766)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000381)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000402)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000149)   COMMIT
       +  User Load (0.000261)   SELECT * FROM `users` 
       +  SQL (0.000145)   BEGIN
       +  User Destroy (0.000247)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000810)   COMMIT
       +  SQL (0.000175)   BEGIN
       +  User Destroy (0.000240)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000697)   COMMIT
       +  SQL (0.000179)   BEGIN
       +  User Destroy (0.000357)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000580)   COMMIT
       +  SQL (0.000120)   BEGIN
       +  User Create (0.000250)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:55:42', 'test 1', '2008-11-26 10:55:42')
       +  SQL (0.000692)   COMMIT
       +  SQL (0.000169)   BEGIN
       +  User Create (0.000228)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:55:42', 'test 2', '2008-11-19 10:55:42')
       +  SQL (0.000605)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Create (0.000227)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:55:42', 'test 3', '2008-11-19 10:55:42')
       +  SQL (0.000658)   COMMIT
       +  SQL (0.000120)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000365)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000379)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000135)   COMMIT
       +  User Load (0.000248)   SELECT * FROM `users` 
       +  SQL (0.000132)   BEGIN
       +  User Destroy (0.000174)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000630)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000593)   COMMIT
       +  SQL (0.000119)   BEGIN
       +  User Destroy (0.000236)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000735)   COMMIT
       +  SQL (0.000308)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000521)   SHOW TABLES
       +  SQL (0.002080)   DROP TABLE `users`
       +  SQL (0.088037)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000660)   SHOW TABLES
       +  SQL (0.027230)   DROP TABLE `report_caches`
       +  SQL (0.299311)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.124371)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001346)   SHOW TABLES
       +  SQL (0.001025)   SELECT version FROM `schema_migrations`
       +  SQL (0.000253)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000514)   SHOW TABLES
       +  SQL (0.002000)   DROP TABLE `users`
       +  SQL (0.073623)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001338)   SHOW TABLES
       +  SQL (0.002575)   DROP TABLE `report_caches`
       +  SQL (0.145453)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.137711)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001917)   SHOW TABLES
       +  SQL (0.000297)   SELECT version FROM `schema_migrations`
       +  SQL (0.000121)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000446)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000153)   ROLLBACK
       +  SQL (0.000106)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000226)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000110)   ROLLBACK
       +  User Columns (0.002492)   SHOW FIELDS FROM `users`
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000270)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:56:33', 'test 1', '2008-11-26 10:56:33')
       +  SQL (0.000720)   COMMIT
       +  SQL (0.000136)   BEGIN
       +  User Create (0.000779)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:56:33', 'test 2', '2008-11-19 10:56:33')
       +  SQL (0.000616)   COMMIT
       +  SQL (0.000190)   BEGIN
       +  User Create (0.000255)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:56:33', 'test 3', '2008-11-19 10:56:33')
       +  SQL (0.000577)   COMMIT
       +  SQL (0.000136)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000407)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000507)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000163)   COMMIT
       +  User Load (0.000359)   SELECT * FROM `users` 
       +  SQL (0.000123)   BEGIN
       +  User Destroy (0.000313)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.001026)   COMMIT
       +  SQL (0.000124)   BEGIN
       +  User Destroy (0.000253)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000685)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000643)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Create (0.000234)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:56:33', 'test 1', '2008-11-26 10:56:33')
       +  SQL (0.000662)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000237)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:56:33', 'test 2', '2008-11-19 10:56:33')
       +  SQL (0.000711)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  User Create (0.000213)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:56:33', 'test 3', '2008-11-19 10:56:33')
       +  SQL (0.000550)   COMMIT
       +  SQL (0.000106)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000353)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000360)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000137)   COMMIT
       +  User Load (0.000230)   SELECT * FROM `users` 
       +  SQL (0.000159)   BEGIN
       +  User Destroy (0.001901)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000726)   COMMIT
       +  SQL (0.000214)   BEGIN
       +  User Destroy (0.000282)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.001279)   COMMIT
       +  SQL (0.000245)   BEGIN
       +  User Destroy (0.000268)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000668)   COMMIT
       +  SQL (0.000261)   BEGIN
       +  User Create (0.000278)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:56:33', 'test 1', '2008-11-26 10:56:33')
       +  SQL (0.000744)   COMMIT
       +  SQL (0.000221)   BEGIN
       +  User Create (0.000239)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:56:33', 'test 2', '2008-11-19 10:56:33')
       +  SQL (0.000669)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000226)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:56:33', 'test 3', '2008-11-19 10:56:33')
       +  SQL (0.000661)   COMMIT
       +  SQL (0.000211)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000404)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000422)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000151)   COMMIT
       +  User Load (0.000544)   SELECT * FROM `users` 
       +  SQL (0.000124)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000619)   COMMIT
       +  SQL (0.000111)   BEGIN
       +  User Destroy (0.000243)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000708)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Destroy (0.000423)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000596)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000263)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:56:33', 'test 1', '2008-11-26 10:56:33')
       +  SQL (0.000732)   COMMIT
       +  SQL (0.000194)   BEGIN
       +  User Create (0.000258)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:56:33', 'test 2', '2008-11-19 10:56:33')
       +  SQL (0.000635)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Create (0.000236)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:56:33', 'test 3', '2008-11-19 10:56:33')
       +  SQL (0.000663)   COMMIT
       +  SQL (0.000185)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000384)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000395)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000112)   COMMIT
       +  User Load (0.000353)   SELECT * FROM `users` 
       +  SQL (0.000263)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000744)   COMMIT
       +  SQL (0.000194)   BEGIN
       +  User Destroy (0.000311)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000775)   COMMIT
       +  SQL (0.000127)   BEGIN
       +  User Destroy (0.000188)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000692)   COMMIT
       +  SQL (0.000265)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000550)   SHOW TABLES
       +  SQL (0.002124)   DROP TABLE `users`
       +  SQL (0.107729)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000720)   SHOW TABLES
       +  SQL (0.002689)   DROP TABLE `report_caches`
       +  SQL (0.150151)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.125307)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001216)   SHOW TABLES
       +  SQL (0.000235)   SELECT version FROM `schema_migrations`
       +  SQL (0.000120)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000449)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000116)   ROLLBACK
       +  SQL (0.000105)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000253)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000080)   ROLLBACK
       +  User Columns (0.002446)   SHOW FIELDS FROM `users`
       +  SQL (0.000148)   BEGIN
       +  User Create (0.000265)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:56:50', 'test 1', '2008-11-26 10:56:50')
       +  SQL (0.000747)   COMMIT
       +  SQL (0.000178)   BEGIN
       +  User Create (0.000243)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:56:50', 'test 2', '2008-11-19 10:56:50')
       +  SQL (0.000663)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000263)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:56:50', 'test 3', '2008-11-19 10:56:50')
       +  SQL (0.000655)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000393)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000555)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000160)   COMMIT
       +  User Load (0.000269)   SELECT * FROM `users` 
       +  SQL (0.000144)   BEGIN
       +  User Destroy (0.000256)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000630)   COMMIT
       +  SQL (0.000123)   BEGIN
       +  User Destroy (0.000243)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000998)   COMMIT
       +  SQL (0.000121)   BEGIN
       +  User Destroy (0.000677)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000647)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000264)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:56:50', 'test 1', '2008-11-26 10:56:50')
       +  SQL (0.000729)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Create (0.000219)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:56:50', 'test 2', '2008-11-19 10:56:50')
       +  SQL (0.000702)   COMMIT
       +  SQL (0.000236)   BEGIN
       +  User Create (0.000230)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:56:50', 'test 3', '2008-11-19 10:56:50')
       +  SQL (0.000638)   COMMIT
       +  SQL (0.000122)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000393)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000406)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000148)   COMMIT
       +  User Load (0.000261)   SELECT * FROM `users` 
       +  SQL (0.000146)   BEGIN
       +  User Destroy (0.000245)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000660)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000224)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000488)   COMMIT
       +  SQL (0.000272)   BEGIN
       +  User Destroy (0.000284)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000595)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Create (0.000316)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:56:50', 'test 1', '2008-11-26 10:56:50')
       +  SQL (0.000657)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  User Create (0.000259)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:56:50', 'test 2', '2008-11-19 10:56:50')
       +  SQL (0.000661)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Create (0.000238)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:56:50', 'test 3', '2008-11-19 10:56:50')
       +  SQL (0.000724)   COMMIT
       +  SQL (0.000922)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000392)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000406)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000149)   COMMIT
       +  User Load (0.000556)   SELECT * FROM `users` 
       +  SQL (0.000149)   BEGIN
       +  User Destroy (0.000256)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000692)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Destroy (0.000232)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000579)   COMMIT
       +  SQL (0.000173)   BEGIN
       +  User Destroy (0.000364)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000662)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Create (0.000235)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:56:50', 'test 1', '2008-11-26 10:56:50')
       +  SQL (0.000681)   COMMIT
       +  SQL (0.000191)   BEGIN
       +  User Create (0.000304)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:56:50', 'test 2', '2008-11-19 10:56:50')
       +  SQL (0.000559)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000227)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:56:50', 'test 3', '2008-11-19 10:56:50')
       +  SQL (0.000567)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000376)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000414)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000134)   COMMIT
       +  User Load (0.000232)   SELECT * FROM `users` 
       +  SQL (0.000135)   BEGIN
       +  User Destroy (0.000244)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000719)   COMMIT
       +  SQL (0.000071)   BEGIN
       +  User Destroy (0.000142)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000577)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Destroy (0.000153)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000589)   COMMIT
       +  SQL (0.000265)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000570)   SHOW TABLES
       +  SQL (0.001893)   DROP TABLE `users`
       +  SQL (0.067402)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001234)   SHOW TABLES
       +  SQL (0.001995)   DROP TABLE `report_caches`
       +  SQL (0.158293)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.136779)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.003070)   SHOW TABLES
       +  SQL (0.000813)   SELECT version FROM `schema_migrations`
       +  SQL (0.000121)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000445)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000089)   ROLLBACK
       +  SQL (0.000160)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000492)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.001034)   ROLLBACK
       +  User Columns (0.002501)   SHOW FIELDS FROM `users`
       +  SQL (0.000157)   BEGIN
       +  User Create (0.000277)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:57:23', 'test 1', '2008-11-26 10:57:23')
       +  SQL (0.000774)   COMMIT
       +  SQL (0.000104)   BEGIN
       +  User Create (0.000165)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:57:23', 'test 2', '2008-11-19 10:57:23')
       +  SQL (0.000756)   COMMIT
       +  SQL (0.000379)   BEGIN
       +  User Create (0.000262)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:57:23', 'test 3', '2008-11-19 10:57:23')
       +  SQL (0.000754)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000394)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000433)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000161)   ROLLBACK
       +  User Load (0.000475)   SELECT * FROM `users` 
       +  SQL (0.000109)   BEGIN
       +  User Destroy (0.000716)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000854)   COMMIT
       +  SQL (0.000138)   BEGIN
       +  User Destroy (0.000255)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000635)   COMMIT
       +  SQL (0.000179)   BEGIN
       +  User Destroy (0.000333)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000680)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Create (0.000265)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:57:23', 'test 1', '2008-11-26 10:57:23')
       +  SQL (0.000636)   COMMIT
       +  SQL (0.000079)   BEGIN
       +  User Create (0.000243)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:57:23', 'test 2', '2008-11-19 10:57:23')
       +  SQL (0.000567)   COMMIT
       +  SQL (0.000109)   BEGIN
       +  User Create (0.000183)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:57:23', 'test 3', '2008-11-19 10:57:23')
       +  SQL (0.000605)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000399)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000408)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000114)   ROLLBACK
       +  User Load (0.000268)   SELECT * FROM `users` 
       +  SQL (0.000092)   BEGIN
       +  User Destroy (0.000201)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000727)   COMMIT
       +  SQL (0.000097)   BEGIN
       +  User Destroy (0.000219)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000660)   COMMIT
       +  SQL (0.000126)   BEGIN
       +  User Destroy (0.000181)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000638)   COMMIT
       +  SQL (0.000145)   BEGIN
       +  User Create (0.000196)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:57:23', 'test 1', '2008-11-26 10:57:23')
       +  SQL (0.000584)   COMMIT
       +  SQL (0.000099)   BEGIN
       +  User Create (0.000147)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:57:23', 'test 2', '2008-11-19 10:57:23')
       +  SQL (0.000664)   COMMIT
       +  SQL (0.000097)   BEGIN
       +  User Create (0.000141)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:57:23', 'test 3', '2008-11-19 10:57:23')
       +  SQL (0.000638)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000375)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000403)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000274)   ROLLBACK
       +  User Load (0.000261)   SELECT * FROM `users` 
       +  SQL (0.000105)   BEGIN
       +  User Destroy (0.000216)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.001987)   COMMIT
       +  SQL (0.000115)   BEGIN
       +  User Destroy (0.000242)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000501)   COMMIT
       +  SQL (0.000139)   BEGIN
       +  User Destroy (0.000252)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000599)   COMMIT
       +  SQL (0.000175)   BEGIN
       +  User Create (0.000326)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:57:23', 'test 1', '2008-11-26 10:57:23')
       +  SQL (0.000682)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000244)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:57:23', 'test 2', '2008-11-19 10:57:23')
       +  SQL (0.000705)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000266)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:57:23', 'test 3', '2008-11-19 10:57:23')
       +  SQL (0.018500)   COMMIT
       +  SQL (0.000327)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000503)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000418)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000129)   ROLLBACK
       +  User Load (0.000263)   SELECT * FROM `users` 
       +  SQL (0.000261)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000728)   COMMIT
       +  SQL (0.000076)   BEGIN
       +  User Destroy (0.000185)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000694)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000739)   COMMIT
       +  SQL (0.000268)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000576)   SHOW TABLES
       +  SQL (0.002113)   DROP TABLE `users`
       +  SQL (0.072124)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000969)   SHOW TABLES
       +  SQL (0.001674)   DROP TABLE `report_caches`
       +  SQL (0.138668)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.135054)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001739)   SHOW TABLES
       +  SQL (0.001221)   SELECT version FROM `schema_migrations`
       +  SQL (0.000120)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000600)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000124)   ROLLBACK
       +  SQL (0.000111)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000248)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000115)   ROLLBACK
       +  User Columns (0.002343)   SHOW FIELDS FROM `users`
       +  SQL (0.000163)   BEGIN
       +  User Create (0.000283)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:57:37', 'test 1', '2008-11-26 10:57:37')
       +  SQL (0.000716)   COMMIT
       +  SQL (0.000221)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:57:37', 'test 2', '2008-11-19 10:57:37')
       +  SQL (0.000621)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Create (0.000238)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:57:37', 'test 3', '2008-11-19 10:57:37')
       +  SQL (0.000667)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000587)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000541)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000131)   COMMIT
       +  User Load (0.000570)   SELECT * FROM `users` 
       +  SQL (0.000133)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000652)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000276)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000607)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000297)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000605)   COMMIT
       +  SQL (0.000264)   BEGIN
       +  User Create (0.000275)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:57:37', 'test 1', '2008-11-26 10:57:37')
       +  SQL (0.000649)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Create (0.000231)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:57:37', 'test 2', '2008-11-19 10:57:37')
       +  SQL (0.000572)   COMMIT
       +  SQL (0.000146)   BEGIN
       +  User Create (0.000321)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:57:37', 'test 3', '2008-11-19 10:57:37')
       +  SQL (0.000587)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000377)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000398)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000128)   COMMIT
       +  User Load (0.000287)   SELECT * FROM `users` 
       +  SQL (0.000146)   BEGIN
       +  User Destroy (0.000250)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000690)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000634)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  User Destroy (0.000242)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000597)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Create (0.000283)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:57:37', 'test 1', '2008-11-26 10:57:37')
       +  SQL (0.000605)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Create (0.000260)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:57:37', 'test 2', '2008-11-19 10:57:37')
       +  SQL (0.000645)   COMMIT
       +  SQL (0.000118)   BEGIN
       +  User Create (0.000210)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:57:37', 'test 3', '2008-11-19 10:57:37')
       +  SQL (0.000605)   COMMIT
       +  SQL (0.000133)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000243)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000255)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000102)   COMMIT
       +  User Load (0.000175)   SELECT * FROM `users` 
       +  SQL (0.000098)   BEGIN
       +  User Destroy (0.000183)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.001147)   COMMIT
       +  SQL (0.000125)   BEGIN
       +  User Destroy (0.000396)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000610)   COMMIT
       +  SQL (0.000608)   BEGIN
       +  User Destroy (0.000256)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000603)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  User Create (0.000242)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:57:37', 'test 1', '2008-11-26 10:57:37')
       +  SQL (0.000771)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:57:37', 'test 2', '2008-11-19 10:57:37')
       +  SQL (0.000781)   COMMIT
       +  SQL (0.000233)   BEGIN
       +  User Create (0.000240)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:57:37', 'test 3', '2008-11-19 10:57:37')
       +  SQL (0.000727)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000398)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000412)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000232)   COMMIT
       +  User Load (0.000245)   SELECT * FROM `users` 
       +  SQL (0.000130)   BEGIN
       +  User Destroy (0.000219)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000768)   COMMIT
       +  SQL (0.000304)   BEGIN
       +  User Destroy (0.000366)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000579)   COMMIT
       +  SQL (0.000120)   BEGIN
       +  User Destroy (0.000261)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000687)   COMMIT
       +  SQL (0.000268)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000519)   SHOW TABLES
       +  SQL (0.002196)   DROP TABLE `users`
       +  SQL (0.092051)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000669)   SHOW TABLES
       +  SQL (0.004804)   DROP TABLE `report_caches`
       +  SQL (0.132867)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.124594)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001898)   SHOW TABLES
       +  SQL (0.002923)   SELECT version FROM `schema_migrations`
       +  SQL (0.000122)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000457)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000107)   COMMIT
       +  SQL (0.000102)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000221)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000101)   COMMIT
       +  User Columns (0.001781)   SHOW FIELDS FROM `users`
       +  SQL (0.000126)   BEGIN
       +  User Create (0.000210)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:58:26', 'test 1', '2008-11-26 10:58:26')
       +  SQL (0.000770)   COMMIT
       +  SQL (0.000161)   BEGIN
       +  User Create (0.000302)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:58:26', 'test 2', '2008-11-19 10:58:26')
       +  SQL (0.000681)   COMMIT
       +  SQL (0.000268)   BEGIN
       +  User Create (0.000238)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:58:26', 'test 3', '2008-11-19 10:58:26')
       +  SQL (0.000538)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000363)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000406)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000137)   COMMIT
       +  User Load (0.000230)   SELECT * FROM `users` 
       +  SQL (0.000137)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.001326)   COMMIT
       +  SQL (0.000130)   BEGIN
       +  User Destroy (0.000178)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000761)   COMMIT
       +  SQL (0.000194)   BEGIN
       +  User Destroy (0.000285)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000632)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  User Create (0.000233)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:58:26', 'test 1', '2008-11-26 10:58:26')
       +  SQL (0.000694)   COMMIT
       +  SQL (0.000310)   BEGIN
       +  User Create (0.000378)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:58:26', 'test 2', '2008-11-19 10:58:26')
       +  SQL (0.000648)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Create (0.000192)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:58:26', 'test 3', '2008-11-19 10:58:26')
       +  SQL (0.000603)   COMMIT
       +  SQL (0.000258)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000409)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000373)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000149)   COMMIT
       +  User Load (0.000241)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000221)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000760)   COMMIT
       +  SQL (0.000123)   BEGIN
       +  User Destroy (0.000259)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000828)   COMMIT
       +  SQL (0.000219)   BEGIN
       +  User Destroy (0.000263)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000667)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Create (0.000259)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:58:26', 'test 1', '2008-11-26 10:58:26')
       +  SQL (0.000637)   COMMIT
       +  SQL (0.000233)   BEGIN
       +  User Create (0.000239)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:58:26', 'test 2', '2008-11-19 10:58:26')
       +  SQL (0.000726)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000233)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:58:26', 'test 3', '2008-11-19 10:58:26')
       +  SQL (0.000719)   COMMIT
       +  SQL (0.000214)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000395)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000408)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000149)   COMMIT
       +  User Load (0.000263)   SELECT * FROM `users` 
       +  SQL (0.000146)   BEGIN
       +  User Destroy (0.000246)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000698)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  User Destroy (0.000228)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000624)   COMMIT
       +  SQL (0.000124)   BEGIN
       +  User Destroy (0.000292)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000621)   COMMIT
       +  SQL (0.000414)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:58:26', 'test 1', '2008-11-26 10:58:26')
       +  SQL (0.000704)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000245)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:58:26', 'test 2', '2008-11-19 10:58:26')
       +  SQL (0.000573)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  User Create (0.000286)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:58:26', 'test 3', '2008-11-19 10:58:26')
       +  SQL (0.000679)   COMMIT
       +  SQL (0.000692)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000408)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000438)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000149)   COMMIT
       +  User Load (0.000789)   SELECT * FROM `users` 
       +  SQL (0.000174)   BEGIN
       +  User Destroy (0.000263)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000661)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000234)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000551)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  User Destroy (0.000279)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000610)   COMMIT
       +  SQL (0.000340)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000527)   SHOW TABLES
       +  SQL (0.158112)   DROP TABLE `users`
       +  SQL (0.119014)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000828)   SHOW TABLES
       +  SQL (0.004723)   DROP TABLE `report_caches`
       +  SQL (0.114000)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.149904)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001217)   SHOW TABLES
       +  SQL (0.000246)   SELECT version FROM `schema_migrations`
       +  SQL (0.000120)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000491)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000107)   COMMIT
       +  SQL (0.000103)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000263)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000075)   COMMIT
       +  User Columns (0.002690)   SHOW FIELDS FROM `users`
       +  SQL (0.000155)   BEGIN
       +  User Create (0.000268)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:59:07', 'test 1', '2008-11-26 10:59:07')
       +  SQL (0.000778)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Create (0.000294)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:59:07', 'test 2', '2008-11-19 10:59:07')
       +  SQL (0.000695)   COMMIT
       +  SQL (0.000170)   BEGIN
       +  User Create (0.000269)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:59:07', 'test 3', '2008-11-19 10:59:07')
       +  SQL (0.000718)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000385)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000401)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000170)   COMMIT
       +  User Load (0.000238)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000224)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000658)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000671)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000223)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000761)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  User Create (0.000268)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:59:07', 'test 1', '2008-11-26 10:59:07')
       +  SQL (0.000707)   COMMIT
       +  SQL (0.000214)   BEGIN
       +  User Create (0.000234)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:59:07', 'test 2', '2008-11-19 10:59:07')
       +  SQL (0.000676)   COMMIT
       +  SQL (0.000181)   BEGIN
       +  User Create (0.000241)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:59:07', 'test 3', '2008-11-19 10:59:07')
       +  SQL (0.000748)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000371)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000616)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000147)   COMMIT
       +  User Load (0.000242)   SELECT * FROM `users` 
       +  SQL (0.000133)   BEGIN
       +  User Destroy (0.000246)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000681)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000586)   COMMIT
       +  SQL (0.000141)   BEGIN
       +  User Destroy (0.000224)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000586)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Create (0.000243)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:59:07', 'test 1', '2008-11-26 10:59:07')
       +  SQL (0.000850)   COMMIT
       +  SQL (0.000138)   BEGIN
       +  User Create (0.000215)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:59:07', 'test 2', '2008-11-19 10:59:07')
       +  SQL (0.000681)   COMMIT
       +  SQL (0.000218)   BEGIN
       +  User Create (0.000233)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:59:07', 'test 3', '2008-11-19 10:59:07')
       +  SQL (0.000685)   COMMIT
       +  SQL (0.000221)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000385)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000418)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000129)   COMMIT
       +  User Load (0.000264)   SELECT * FROM `users` 
       +  SQL (0.000132)   BEGIN
       +  User Destroy (0.000220)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000811)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000700)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Destroy (0.000270)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.001067)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000243)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 10:59:07', 'test 1', '2008-11-26 10:59:07')
       +  SQL (0.000589)   COMMIT
       +  SQL (0.000118)   BEGIN
       +  User Create (0.000245)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 10:59:07', 'test 2', '2008-11-19 10:59:07')
       +  SQL (0.001266)   COMMIT
       +  SQL (0.000179)   BEGIN
       +  User Create (0.000287)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 10:59:07', 'test 3', '2008-11-19 10:59:07')
       +  SQL (0.000671)   COMMIT
       +  SQL (0.000214)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000592)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000683)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000296)   COMMIT
       +  User Load (0.000341)   SELECT * FROM `users` 
       +  SQL (0.000125)   BEGIN
       +  User Destroy (0.000262)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000781)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000574)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Destroy (0.000225)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000649)   COMMIT
       +  SQL (0.000263)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000606)   SHOW TABLES
       +  SQL (0.002334)   DROP TABLE `users`
       +  SQL (0.112075)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000902)   SHOW TABLES
       +  SQL (0.001521)   DROP TABLE `report_caches`
       +  SQL (0.174315)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.178966)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.002751)   SHOW TABLES
       +  SQL (0.000515)   SELECT version FROM `schema_migrations`
       +  SQL (0.000121)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000448)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000078)   COMMIT
       +  SQL (0.000103)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000216)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000101)   COMMIT
       +  User Columns (0.002339)   SHOW FIELDS FROM `users`
       +  SQL (0.000120)   BEGIN
       +  User Create (0.000213)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:31:19', 'test 1', '2008-11-26 11:31:19')
       +  SQL (0.000712)   COMMIT
       +  SQL (0.000139)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:31:19', 'test 2', '2008-11-19 11:31:19')
       +  SQL (0.000619)   COMMIT
       +  SQL (0.000542)   BEGIN
       +  User Create (0.000315)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:31:19', 'test 3', '2008-11-19 11:31:19')
       +  SQL (0.000679)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000398)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000452)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000192)   COMMIT
       +  User Load (0.000277)   SELECT * FROM `users` 
       +  SQL (0.000145)   BEGIN
       +  User Destroy (0.000253)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000729)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000744)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000673)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Create (0.000273)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:31:19', 'test 1', '2008-11-26 11:31:19')
       +  SQL (0.000756)   COMMIT
       +  SQL (0.000120)   BEGIN
       +  User Create (0.000233)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:31:19', 'test 2', '2008-11-19 11:31:19')
       +  SQL (0.000717)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Create (0.000251)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:31:19', 'test 3', '2008-11-19 11:31:19')
       +  SQL (0.000688)   COMMIT
       +  SQL (0.000210)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000390)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000406)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000149)   COMMIT
       +  User Load (0.000271)   SELECT * FROM `users` 
       +  SQL (0.000158)   BEGIN
       +  User Destroy (0.000257)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000740)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000725)   COMMIT
       +  SQL (0.000201)   BEGIN
       +  User Destroy (0.000225)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000703)   COMMIT
       +  SQL (0.000241)   BEGIN
       +  User Create (0.000264)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:31:19', 'test 1', '2008-11-26 11:31:19')
       +  SQL (0.000689)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Create (0.000253)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:31:19', 'test 2', '2008-11-19 11:31:19')
       +  SQL (0.001334)   COMMIT
       +  SQL (0.000247)   BEGIN
       +  User Create (0.000292)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:31:19', 'test 3', '2008-11-19 11:31:19')
       +  SQL (0.000817)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000384)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000413)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000148)   COMMIT
       +  User Load (0.000261)   SELECT * FROM `users` 
       +  SQL (0.000162)   BEGIN
       +  User Destroy (0.000256)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000739)   COMMIT
       +  SQL (0.000177)   BEGIN
       +  User Destroy (0.000293)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000737)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000284)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000714)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000268)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:31:19', 'test 1', '2008-11-26 11:31:19')
       +  SQL (0.000630)   COMMIT
       +  SQL (0.000146)   BEGIN
       +  User Create (0.000251)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:31:19', 'test 2', '2008-11-19 11:31:19')
       +  SQL (0.000603)   COMMIT
       +  SQL (0.000135)   BEGIN
       +  User Create (0.000255)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:31:19', 'test 3', '2008-11-19 11:31:19')
       +  SQL (0.000735)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000396)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000456)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000129)   COMMIT
       +  User Load (0.000301)   SELECT * FROM `users` 
       +  SQL (0.000107)   BEGIN
       +  User Destroy (0.000299)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000733)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000234)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000667)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Destroy (0.000226)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000549)   COMMIT
       +  SQL (0.000270)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000537)   SHOW TABLES
       +  SQL (0.001868)   DROP TABLE `users`
       +  SQL (0.117989)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001554)   SHOW TABLES
       +  SQL (0.001450)   DROP TABLE `report_caches`
       +  SQL (0.167738)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.148695)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001816)   SHOW TABLES
       +  SQL (0.002440)   SELECT version FROM `schema_migrations`
       +  SQL (0.000121)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000475)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000094)   ROLLBACK
       +  SQL (0.000152)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000302)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000098)   ROLLBACK
       +  User Columns (0.002541)   SHOW FIELDS FROM `users`
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000274)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:31:46', 'test 1', '2008-11-26 11:31:46')
       +  SQL (0.000660)   COMMIT
       +  SQL (0.000115)   BEGIN
       +  User Create (0.000193)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:31:46', 'test 2', '2008-11-19 11:31:46')
       +  SQL (0.000622)   COMMIT
       +  SQL (0.000269)   BEGIN
       +  User Create (0.000216)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:31:46', 'test 3', '2008-11-19 11:31:46')
       +  SQL (0.000628)   COMMIT
       +  SQL (0.000105)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000266)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000289)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000087)   ROLLBACK
       +  User Load (0.000376)   SELECT * FROM `users` 
       +  SQL (0.000439)   BEGIN
       +  User Destroy (0.000820)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.001159)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  User Destroy (0.000192)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000554)   COMMIT
       +  SQL (0.000224)   BEGIN
       +  User Destroy (0.000167)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000693)   COMMIT
       +  SQL (0.000088)   BEGIN
       +  User Create (0.000201)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:31:46', 'test 1', '2008-11-26 11:31:46')
       +  SQL (0.000803)   COMMIT
       +  SQL (0.000172)   BEGIN
       +  User Create (0.000275)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:31:46', 'test 2', '2008-11-19 11:31:46')
       +  SQL (0.000621)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Create (0.000234)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:31:46', 'test 3', '2008-11-19 11:31:46')
       +  SQL (0.000702)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000547)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000429)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000131)   ROLLBACK
       +  User Load (0.000264)   SELECT * FROM `users` 
       +  SQL (0.000106)   BEGIN
       +  User Destroy (0.000220)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000843)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Destroy (0.000258)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000675)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  User Destroy (0.000240)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000779)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Create (0.000275)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:31:46', 'test 1', '2008-11-26 11:31:46')
       +  SQL (0.000720)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Create (0.000252)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:31:46', 'test 2', '2008-11-19 11:31:46')
       +  SQL (0.000743)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Create (0.000239)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:31:46', 'test 3', '2008-11-19 11:31:46')
       +  SQL (0.000776)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000390)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000410)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000660)   ROLLBACK
       +  User Load (0.000422)   SELECT * FROM `users` 
       +  SQL (0.000112)   BEGIN
       +  User Destroy (0.000228)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.001181)   COMMIT
       +  SQL (0.000461)   BEGIN
       +  User Destroy (0.000251)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000583)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Destroy (0.000284)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000689)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Create (0.000246)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:31:46', 'test 1', '2008-11-26 11:31:46')
       +  SQL (0.000642)   COMMIT
       +  SQL (0.000163)   BEGIN
       +  User Create (0.000262)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:31:46', 'test 2', '2008-11-19 11:31:46')
       +  SQL (0.000814)   COMMIT
       +  SQL (0.000127)   BEGIN
       +  User Create (0.000258)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:31:46', 'test 3', '2008-11-19 11:31:46')
       +  SQL (0.000674)   COMMIT
       +  SQL (0.000221)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000539)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000432)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000128)   ROLLBACK
       +  User Load (0.000236)   SELECT * FROM `users` 
       +  SQL (0.000108)   BEGIN
       +  User Destroy (0.000221)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000494)   COMMIT
       +  SQL (0.000114)   BEGIN
       +  User Destroy (0.000267)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000654)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  User Destroy (0.000245)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000548)   COMMIT
       +  SQL (0.000265)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.001045)   SHOW TABLES
       +  SQL (0.002677)   DROP TABLE `users`
       +  SQL (0.100442)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000731)   SHOW TABLES
       +  SQL (0.031258)   DROP TABLE `report_caches`
       +  SQL (0.162396)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.127187)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001423)   SHOW TABLES
       +  SQL (0.003074)   SELECT version FROM `schema_migrations`
       +  SQL (0.000122)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000458)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000079)   COMMIT
       +  SQL (0.000138)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000259)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.001107)   COMMIT
       +  User Columns (0.002569)   SHOW FIELDS FROM `users`
       +  SQL (0.000158)   BEGIN
       +  User Create (0.000299)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:32:40', 'test 1', '2008-11-26 11:32:40')
       +  SQL (0.001067)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  User Create (0.000755)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:32:40', 'test 2', '2008-11-19 11:32:40')
       +  SQL (0.000626)   COMMIT
       +  SQL (0.000163)   BEGIN
       +  User Create (0.000263)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:32:40', 'test 3', '2008-11-19 11:32:40')
       +  SQL (0.000548)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000521)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000439)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000134)   COMMIT
       +  User Load (0.000267)   SELECT * FROM `users` 
       +  SQL (0.000114)   BEGIN
       +  User Destroy (0.000236)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000595)   COMMIT
       +  SQL (0.000107)   BEGIN
       +  User Destroy (0.000358)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000573)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Destroy (0.000234)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000577)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  User Create (0.000282)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:32:40', 'test 1', '2008-11-26 11:32:40')
       +  SQL (0.000659)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000240)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:32:40', 'test 2', '2008-11-19 11:32:40')
       +  SQL (0.000646)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Create (0.000261)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:32:40', 'test 3', '2008-11-19 11:32:40')
       +  SQL (0.000754)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000389)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000407)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000130)   COMMIT
       +  User Load (0.000852)   SELECT * FROM `users` 
       +  SQL (0.000113)   BEGIN
       +  User Destroy (0.001933)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000807)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  User Destroy (0.000287)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000619)   COMMIT
       +  SQL (0.000138)   BEGIN
       +  User Destroy (0.000277)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000579)   COMMIT
       +  SQL (0.000226)   BEGIN
       +  User Create (0.000279)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:32:40', 'test 1', '2008-11-26 11:32:40')
       +  SQL (0.000572)   COMMIT
       +  SQL (0.000140)   BEGIN
       +  User Create (0.000170)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:32:40', 'test 2', '2008-11-19 11:32:40')
       +  SQL (0.000584)   COMMIT
       +  SQL (0.000078)   BEGIN
       +  User Create (0.000183)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:32:40', 'test 3', '2008-11-19 11:32:40')
       +  SQL (0.000635)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000387)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000432)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000147)   COMMIT
       +  User Load (0.000279)   SELECT * FROM `users` 
       +  SQL (0.000109)   BEGIN
       +  User Destroy (0.000219)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000695)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Destroy (0.000268)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000798)   COMMIT
       +  SQL (0.000228)   BEGIN
       +  User Destroy (0.000800)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000587)   COMMIT
       +  SQL (0.000174)   BEGIN
       +  User Create (0.000257)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:32:40', 'test 1', '2008-11-26 11:32:40')
       +  SQL (0.000672)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  User Create (0.000280)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:32:40', 'test 2', '2008-11-19 11:32:40')
       +  SQL (0.000657)   COMMIT
       +  SQL (0.000107)   BEGIN
       +  User Create (0.000197)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:32:40', 'test 3', '2008-11-19 11:32:40')
       +  SQL (0.000704)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000391)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000441)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000131)   COMMIT
       +  User Load (0.000572)   SELECT * FROM `users` 
       +  SQL (0.000111)   BEGIN
       +  User Destroy (0.000321)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.001694)   COMMIT
       +  SQL (0.000119)   BEGIN
       +  User Destroy (0.000319)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.001299)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Destroy (0.000387)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000534)   COMMIT
       +  SQL (0.000260)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000509)   SHOW TABLES
       +  SQL (0.002152)   DROP TABLE `users`
       +  SQL (0.087190)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001226)   SHOW TABLES
       +  SQL (0.030643)   DROP TABLE `report_caches`
       +  SQL (0.173481)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.126336)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001014)   SHOW TABLES
       +  SQL (0.000246)   SELECT version FROM `schema_migrations`
       +  SQL (0.000120)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000550)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000111)   COMMIT
       +  SQL (0.000090)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000237)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000087)   COMMIT
       +  User Columns (0.001923)   SHOW FIELDS FROM `users`
       +  SQL (0.000125)   BEGIN
       +  User Create (0.000320)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:33:39', 'test 1', '2008-11-26 11:33:39')
       +  SQL (0.000884)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  User Create (0.000269)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:33:39', 'test 2', '2008-11-19 11:33:39')
       +  SQL (0.000677)   COMMIT
       +  SQL (0.000139)   BEGIN
       +  User Create (0.000242)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:33:39', 'test 3', '2008-11-19 11:33:39')
       +  SQL (0.000698)   COMMIT
       +  SQL (0.000299)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000405)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000494)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000147)   COMMIT
       +  User Load (0.001374)   SELECT * FROM `users` 
       +  SQL (0.000172)   BEGIN
       +  User Destroy (0.000334)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000577)   COMMIT
       +  SQL (0.000114)   BEGIN
       +  User Destroy (0.000251)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000606)   COMMIT
       +  SQL (0.000182)   BEGIN
       +  User Destroy (0.000330)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000680)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000267)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:33:39', 'test 1', '2008-11-26 11:33:39')
       +  SQL (0.000649)   COMMIT
       +  SQL (0.000224)   BEGIN
       +  User Create (0.000248)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:33:39', 'test 2', '2008-11-19 11:33:39')
       +  SQL (0.000719)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Create (0.000248)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:33:39', 'test 3', '2008-11-19 11:33:39')
       +  SQL (0.000733)   COMMIT
       +  SQL (0.000221)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000385)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000422)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000150)   COMMIT
       +  User Load (0.000951)   SELECT * FROM `users` 
       +  SQL (0.000110)   BEGIN
       +  User Destroy (0.000234)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000665)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Destroy (0.000265)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000654)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000671)   COMMIT
       +  SQL (0.000170)   BEGIN
       +  User Create (0.000269)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:33:39', 'test 1', '2008-11-26 11:33:39')
       +  SQL (0.001234)   COMMIT
       +  SQL (0.000170)   BEGIN
       +  User Create (0.000282)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:33:39', 'test 2', '2008-11-19 11:33:39')
       +  SQL (0.000686)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Create (0.000255)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:33:39', 'test 3', '2008-11-19 11:33:39')
       +  SQL (0.000679)   COMMIT
       +  SQL (0.000123)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000910)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000389)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000138)   COMMIT
       +  User Load (0.000430)   SELECT * FROM `users` 
       +  SQL (0.000115)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000628)   COMMIT
       +  SQL (0.000117)   BEGIN
       +  User Destroy (0.000232)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000679)   COMMIT
       +  SQL (0.000217)   BEGIN
       +  User Destroy (0.000294)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000660)   COMMIT
       +  SQL (0.000169)   BEGIN
       +  User Create (0.000267)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:33:39', 'test 1', '2008-11-26 11:33:39')
       +  SQL (0.000615)   COMMIT
       +  SQL (0.000131)   BEGIN
       +  User Create (0.000239)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:33:39', 'test 2', '2008-11-19 11:33:39')
       +  SQL (0.000657)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Create (0.000228)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:33:39', 'test 3', '2008-11-19 11:33:39')
       +  SQL (0.000757)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000385)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000497)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000131)   COMMIT
       +  User Load (0.000252)   SELECT * FROM `users` 
       +  SQL (0.000234)   BEGIN
       +  User Destroy (0.000669)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000684)   COMMIT
       +  SQL (0.000115)   BEGIN
       +  User Destroy (0.000234)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000767)   COMMIT
       +  SQL (0.000218)   BEGIN
       +  User Destroy (0.000180)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000781)   COMMIT
       +  SQL (0.000265)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000541)   SHOW TABLES
       +  SQL (0.002032)   DROP TABLE `users`
       +  SQL (0.053312)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000765)   SHOW TABLES
       +  SQL (0.001767)   DROP TABLE `report_caches`
       +  SQL (0.136337)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.138039)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001329)   SHOW TABLES
       +  SQL (0.002873)   SELECT version FROM `schema_migrations`
       +  SQL (0.000121)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000471)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000112)   COMMIT
       +  SQL (0.000087)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000241)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000091)   COMMIT
       +  User Columns (0.002813)   SHOW FIELDS FROM `users`
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000271)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:33:51', 'test 1', '2008-11-26 11:33:51')
       +  SQL (0.000845)   COMMIT
       +  SQL (0.000279)   BEGIN
       +  User Create (0.000249)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:33:51', 'test 2', '2008-11-19 11:33:51')
       +  SQL (0.000736)   COMMIT
       +  SQL (0.000222)   BEGIN
       +  User Create (0.000240)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:33:51', 'test 3', '2008-11-19 11:33:51')
       +  SQL (0.000694)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000370)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000896)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000129)   COMMIT
       +  User Load (0.000466)   SELECT * FROM `users` 
       +  SQL (0.000120)   BEGIN
       +  User Destroy (0.000243)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000609)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  User Destroy (0.000242)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000832)   COMMIT
       +  SQL (0.000093)   BEGIN
       +  User Destroy (0.000151)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.001338)   COMMIT
       +  SQL (0.000113)   BEGIN
       +  User Create (0.000226)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:33:51', 'test 1', '2008-11-26 11:33:51')
       +  SQL (0.000710)   COMMIT
       +  SQL (0.000106)   BEGIN
       +  User Create (0.000207)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:33:51', 'test 2', '2008-11-19 11:33:51')
       +  SQL (0.000709)   COMMIT
       +  SQL (0.000289)   BEGIN
       +  User Create (0.000215)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:33:51', 'test 3', '2008-11-19 11:33:51')
       +  SQL (0.000597)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000384)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000407)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000149)   COMMIT
       +  User Load (0.000421)   SELECT * FROM `users` 
       +  SQL (0.000135)   BEGIN
       +  User Destroy (0.000226)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000602)   COMMIT
       +  SQL (0.000129)   BEGIN
       +  User Destroy (0.000266)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000858)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  User Destroy (0.000245)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000673)   COMMIT
       +  SQL (0.000169)   BEGIN
       +  User Create (0.000268)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:33:51', 'test 1', '2008-11-26 11:33:51')
       +  SQL (0.000738)   COMMIT
       +  SQL (0.000339)   BEGIN
       +  User Create (0.000246)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:33:51', 'test 2', '2008-11-19 11:33:51')
       +  SQL (0.000658)   COMMIT
       +  SQL (0.000215)   BEGIN
       +  User Create (0.000448)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:33:51', 'test 3', '2008-11-19 11:33:51')
       +  SQL (0.000639)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000398)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000401)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000111)   COMMIT
       +  User Load (0.000998)   SELECT * FROM `users` 
       +  SQL (0.000112)   BEGIN
       +  User Destroy (0.000222)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000687)   COMMIT
       +  SQL (0.000109)   BEGIN
       +  User Destroy (0.000220)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000668)   COMMIT
       +  SQL (0.000110)   BEGIN
       +  User Destroy (0.000512)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000603)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000272)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:33:51', 'test 1', '2008-11-26 11:33:51')
       +  SQL (0.000785)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  User Create (0.000228)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:33:51', 'test 2', '2008-11-19 11:33:51')
       +  SQL (0.000762)   COMMIT
       +  SQL (0.000201)   BEGIN
       +  User Create (0.000312)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:33:51', 'test 3', '2008-11-19 11:33:51')
       +  SQL (0.000651)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000383)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000402)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000136)   COMMIT
       +  User Load (0.000472)   SELECT * FROM `users` 
       +  SQL (0.000112)   BEGIN
       +  User Destroy (0.000223)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000598)   COMMIT
       +  SQL (0.000194)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000737)   COMMIT
       +  SQL (0.000301)   BEGIN
       +  User Destroy (0.000228)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000589)   COMMIT
       +  SQL (0.000265)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000541)   SHOW TABLES
       +  SQL (0.024951)   DROP TABLE `users`
       +  SQL (0.062942)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000884)   SHOW TABLES
       +  SQL (0.001669)   DROP TABLE `report_caches`
       +  SQL (0.150541)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.147423)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001483)   SHOW TABLES
       +  SQL (0.002737)   SELECT version FROM `schema_migrations`
       +  SQL (0.000120)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000445)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000126)   COMMIT
       +  SQL (0.000089)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000244)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000084)   COMMIT
       +  User Columns (0.003009)   SHOW FIELDS FROM `users`
       +  SQL (0.000160)   BEGIN
       +  User Create (0.000273)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:34:03', 'test 1', '2008-11-26 11:34:03')
       +  SQL (0.001032)   COMMIT
       +  SQL (0.000113)   BEGIN
       +  User Create (0.000322)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:34:03', 'test 2', '2008-11-19 11:34:03')
       +  SQL (0.000617)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Create (0.000243)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:34:03', 'test 3', '2008-11-19 11:34:03')
       +  SQL (0.000725)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000400)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000441)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000130)   COMMIT
       +  User Load (0.002427)   SELECT * FROM `users` 
       +  SQL (0.000127)   BEGIN
       +  User Destroy (0.000603)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000789)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Destroy (0.000245)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000824)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000227)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000715)   COMMIT
       +  SQL (0.000161)   BEGIN
       +  User Create (0.000263)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:34:03', 'test 1', '2008-11-26 11:34:03')
       +  SQL (0.000642)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:34:03', 'test 2', '2008-11-19 11:34:03')
       +  SQL (0.000671)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  User Create (0.000331)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:34:03', 'test 3', '2008-11-19 11:34:03')
       +  SQL (0.000780)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000387)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000411)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000149)   COMMIT
       +  User Load (0.000925)   SELECT * FROM `users` 
       +  SQL (0.000113)   BEGIN
       +  User Destroy (0.000667)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000652)   COMMIT
       +  SQL (0.000118)   BEGIN
       +  User Destroy (0.000287)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000728)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000695)   COMMIT
       +  SQL (0.000161)   BEGIN
       +  User Create (0.000276)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:34:03', 'test 1', '2008-11-26 11:34:03')
       +  SQL (0.000680)   COMMIT
       +  SQL (0.000243)   BEGIN
       +  User Create (0.000233)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:34:03', 'test 2', '2008-11-19 11:34:03')
       +  SQL (0.001015)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Create (0.000259)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:34:03', 'test 3', '2008-11-19 11:34:03')
       +  SQL (0.000644)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000385)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000433)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000151)   COMMIT
       +  User Load (0.000582)   SELECT * FROM `users` 
       +  SQL (0.000114)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000646)   COMMIT
       +  SQL (0.000112)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000739)   COMMIT
       +  SQL (0.000182)   BEGIN
       +  User Destroy (0.000385)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000688)   COMMIT
       +  SQL (0.000194)   BEGIN
       +  User Create (0.000248)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:34:03', 'test 1', '2008-11-26 11:34:03')
       +  SQL (0.000668)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  User Create (0.000622)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:34:03', 'test 2', '2008-11-19 11:34:03')
       +  SQL (0.000632)   COMMIT
       +  SQL (0.000116)   BEGIN
       +  User Create (0.000243)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:34:03', 'test 3', '2008-11-19 11:34:03')
       +  SQL (0.000528)   COMMIT
       +  SQL (0.000072)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000267)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000283)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-12-03') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000103)   COMMIT
       +  User Load (0.000300)   SELECT * FROM `users` 
       +  SQL (0.000078)   BEGIN
       +  User Destroy (0.000161)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000507)   COMMIT
       +  SQL (0.000074)   BEGIN
       +  User Destroy (0.000173)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.001024)   COMMIT
       +  SQL (0.000076)   BEGIN
       +  User Destroy (0.000172)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000627)   COMMIT
       +  SQL (0.000268)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000561)   SHOW TABLES
       +  SQL (0.002120)   DROP TABLE `users`
       +  SQL (0.095596)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000878)   SHOW TABLES
       +  SQL (0.034459)   DROP TABLE `report_caches`
       +  SQL (0.185470)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.159197)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.002315)   SHOW TABLES
       +  SQL (0.001545)   SELECT version FROM `schema_migrations`
       +  SQL (0.000120)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000458)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000127)   ROLLBACK
       +  SQL (0.000425)   SHOW TABLES
       +  User Columns (0.002424)   SHOW FIELDS FROM `users`
       +  SQL (0.000143)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000383)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000154)   ROLLBACK
       +  SQL (0.000548)   SHOW TABLES
       +  SQL (0.000170)   BEGIN
       +  User Create (0.000259)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:40:10', 'test 1', '2008-11-26 11:40:10')
       +  SQL (0.000561)   COMMIT
       +  SQL (0.000105)   BEGIN
       +  User Create (0.000163)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:40:10', 'test 2', '2008-11-19 11:40:10')
       +  SQL (0.000590)   COMMIT
       +  SQL (0.000131)   BEGIN
       +  User Create (0.000254)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:40:10', 'test 3', '2008-11-19 11:40:10')
       +  SQL (0.000698)   COMMIT
       +  SQL (0.000214)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000397)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000167)   ROLLBACK
       +  User Load (0.000290)   SELECT * FROM `users` 
       +  SQL (0.000144)   BEGIN
       +  User Destroy (0.000252)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000650)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000253)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000594)   COMMIT
       +  SQL (0.000117)   BEGIN
       +  User Destroy (0.000312)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000759)   COMMIT
       +  SQL (0.000161)   BEGIN
       +  User Create (0.000275)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:40:10', 'test 1', '2008-11-26 11:40:10')
       +  SQL (0.000684)   COMMIT
       +  SQL (0.000176)   BEGIN
       +  User Create (0.000234)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:40:10', 'test 2', '2008-11-19 11:40:10')
       +  SQL (0.000668)   COMMIT
       +  SQL (0.000175)   BEGIN
       +  User Create (0.000248)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:40:10', 'test 3', '2008-11-19 11:40:10')
       +  SQL (0.000699)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000373)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000166)   ROLLBACK
       +  User Load (0.000276)   SELECT * FROM `users` 
       +  SQL (0.000144)   BEGIN
       +  User Destroy (0.000455)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000831)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000596)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Destroy (0.000220)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000660)   COMMIT
       +  SQL (0.000168)   BEGIN
       +  User Create (0.000275)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:40:10', 'test 1', '2008-11-26 11:40:10')
       +  SQL (0.000789)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  User Create (0.000253)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:40:10', 'test 2', '2008-11-19 11:40:10')
       +  SQL (0.000517)   COMMIT
       +  SQL (0.000156)   BEGIN
       +  User Create (0.000241)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:40:10', 'test 3', '2008-11-19 11:40:10')
       +  SQL (0.000693)   COMMIT
       +  SQL (0.000264)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000451)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000175)   ROLLBACK
       +  User Load (0.000280)   SELECT * FROM `users` 
       +  SQL (0.000183)   BEGIN
       +  User Destroy (0.000335)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.001347)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Destroy (0.000292)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000939)   COMMIT
       +  SQL (0.000194)   BEGIN
       +  User Destroy (0.000444)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000656)   COMMIT
       +  SQL (0.000176)   BEGIN
       +  User Create (0.000267)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:40:10', 'test 1', '2008-11-26 11:40:10')
       +  SQL (0.000747)   COMMIT
       +  SQL (0.000177)   BEGIN
       +  User Create (0.000244)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:40:10', 'test 2', '2008-11-19 11:40:10')
       +  SQL (0.000685)   COMMIT
       +  SQL (0.000127)   BEGIN
       +  User Create (0.000289)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:40:10', 'test 3', '2008-11-19 11:40:10')
       +  SQL (0.000649)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000403)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000168)   ROLLBACK
       +  User Load (0.000286)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000305)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000802)   COMMIT
       +  SQL (0.000201)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000700)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Destroy (0.000226)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000660)   COMMIT
       +  SQL (0.001024)   SHOW TABLES
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.004213)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.003690)   SHOW TABLES
       +  SQL (0.006409)   SHOW TABLES
       +  SQL (0.000561)   SHOW TABLES
       +  SQL (0.000371)   SHOW TABLES
       +  SQL (0.002695)   SHOW TABLES
       +  SQL (0.000321)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000524)   SHOW TABLES
       +  SQL (0.001894)   DROP TABLE `users`
       +  SQL (0.096385)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000764)   SHOW TABLES
       +  SQL (0.001755)   DROP TABLE `report_caches`
       +  SQL (0.247306)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.137133)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.000748)   SHOW TABLES
       +  SQL (0.001763)   SELECT version FROM `schema_migrations`
       +  SQL (0.000119)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000460)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000112)   COMMIT
       +  SQL (0.000103)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000220)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000101)   COMMIT
       +  User Columns (0.002830)   SHOW FIELDS FROM `users`
       +  SQL (0.000144)   BEGIN
       +  User Create (0.000294)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:40:22', 'test 1', '2008-11-26 11:40:22')
       +  SQL (0.000764)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Create (0.000542)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:40:22', 'test 2', '2008-11-19 11:40:22')
       +  SQL (0.000597)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  User Create (0.000235)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:40:22', 'test 3', '2008-11-19 11:40:22')
       +  SQL (0.000577)   COMMIT
       +  SQL (0.000118)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000476)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000377)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000125)   COMMIT
       +  User Load (0.000163)   SELECT * FROM `users` 
       +  SQL (0.000190)   BEGIN
       +  User Destroy (0.000203)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000652)   COMMIT
       +  SQL (0.000179)   BEGIN
       +  User Destroy (0.000372)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000879)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.001352)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  User Create (0.000279)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:40:22', 'test 1', '2008-11-26 11:40:22')
       +  SQL (0.000562)   COMMIT
       +  SQL (0.000114)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:40:22', 'test 2', '2008-11-19 11:40:22')
       +  SQL (0.000673)   COMMIT
       +  SQL (0.000269)   BEGIN
       +  User Create (0.000374)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:40:22', 'test 3', '2008-11-19 11:40:22')
       +  SQL (0.001006)   COMMIT
       +  SQL (0.000210)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000387)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000510)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002859)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000163)   ROLLBACK
       +  User Load (0.000217)   SELECT * FROM `users` 
       +  SQL (0.000100)   BEGIN
       +  User Destroy (0.000180)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000573)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000712)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  User Destroy (0.000326)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000527)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Create (0.000236)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:40:22', 'test 1', '2008-11-26 11:40:22')
       +  SQL (0.000713)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Create (0.000232)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:40:22', 'test 2', '2008-11-19 11:40:22')
       +  SQL (0.000590)   COMMIT
       +  SQL (0.000133)   BEGIN
       +  User Create (0.000238)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:40:22', 'test 3', '2008-11-19 11:40:22')
       +  SQL (0.000599)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000399)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000815)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000203)   ROLLBACK
       +  User Load (0.000345)   SELECT * FROM `users` 
       +  SQL (0.000105)   BEGIN
       +  User Destroy (0.000251)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000893)   COMMIT
       +  SQL (0.000095)   BEGIN
       +  User Destroy (0.000159)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000655)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  User Destroy (0.000322)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000729)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Create (0.000274)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:40:22', 'test 1', '2008-11-26 11:40:22')
       +  SQL (0.000731)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Create (0.000231)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:40:22', 'test 2', '2008-11-19 11:40:22')
       +  SQL (0.000683)   COMMIT
       +  SQL (0.000192)   BEGIN
       +  User Create (0.000402)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:40:22', 'test 3', '2008-11-19 11:40:22')
       +  SQL (0.000698)   COMMIT
       +  SQL (0.000201)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000388)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000465)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000159)   ROLLBACK
       +  User Load (0.000318)   SELECT * FROM `users` 
       +  SQL (0.000111)   BEGIN
       +  User Destroy (0.000263)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000800)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000243)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000672)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Destroy (0.000257)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000715)   COMMIT
       +  SQL (0.000264)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000546)   SHOW TABLES
       +  SQL (0.032184)   DROP TABLE `users`
       +  SQL (0.097864)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000778)   SHOW TABLES
       +  SQL (0.002569)   DROP TABLE `report_caches`
       +  SQL (0.273278)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.330051)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.002371)   SHOW TABLES
       +  SQL (0.000417)   SELECT version FROM `schema_migrations`
       +  SQL (0.000124)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000446)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000109)   COMMIT
       +  SQL (0.000103)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000231)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000104)   COMMIT
       +  User Columns (0.002947)   SHOW FIELDS FROM `users`
       +  SQL (0.000163)   BEGIN
       +  User Create (0.000281)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:41:07', 'test 1', '2008-11-26 11:41:07')
       +  SQL (0.000731)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  User Create (0.000381)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:41:07', 'test 2', '2008-11-19 11:41:07')
       +  SQL (0.000662)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  User Create (0.000258)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:41:07', 'test 3', '2008-11-19 11:41:07')
       +  SQL (0.000783)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000393)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000447)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000138)   COMMIT
       +  User Load (0.000232)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000226)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000671)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  User Destroy (0.000243)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000644)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  User Destroy (0.000234)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000631)   COMMIT
       +  SQL (0.000133)   BEGIN
       +  User Create (0.000249)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:41:07', 'test 1', '2008-11-26 11:41:07')
       +  SQL (0.000663)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Create (0.000232)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:41:07', 'test 2', '2008-11-19 11:41:07')
       +  SQL (0.000626)   COMMIT
       +  SQL (0.000219)   BEGIN
       +  User Create (0.000236)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:41:07', 'test 3', '2008-11-19 11:41:07')
       +  SQL (0.000738)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000394)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000411)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000130)   COMMIT
       +  User Load (0.000213)   SELECT * FROM `users` 
       +  SQL (0.000105)   BEGIN
       +  User Destroy (0.000161)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000631)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000227)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000704)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000646)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000272)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:41:07', 'test 1', '2008-11-26 11:41:07')
       +  SQL (0.000685)   COMMIT
       +  SQL (0.000177)   BEGIN
       +  User Create (0.000248)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:41:07', 'test 2', '2008-11-19 11:41:07')
       +  SQL (0.000646)   COMMIT
       +  SQL (0.000219)   BEGIN
       +  User Create (0.000235)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:41:07', 'test 3', '2008-11-19 11:41:07')
       +  SQL (0.000961)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000377)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000442)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000137)   COMMIT
       +  User Load (0.000188)   SELECT * FROM `users` 
       +  SQL (0.000180)   BEGIN
       +  User Destroy (0.000205)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000616)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Destroy (0.000236)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000661)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Destroy (0.000527)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000676)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Create (0.000237)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:41:07', 'test 1', '2008-11-26 11:41:07')
       +  SQL (0.000741)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  User Create (0.000237)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:41:07', 'test 2', '2008-11-19 11:41:07')
       +  SQL (0.000643)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Create (0.000224)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:41:07', 'test 3', '2008-11-19 11:41:07')
       +  SQL (0.000658)   COMMIT
       +  SQL (0.000182)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000397)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000456)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000137)   COMMIT
       +  User Load (0.000233)   SELECT * FROM `users` 
       +  SQL (0.000130)   BEGIN
       +  User Destroy (0.000224)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000731)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000265)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000568)   COMMIT
       +  SQL (0.000125)   BEGIN
       +  User Destroy (0.000435)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000679)   COMMIT
       +  SQL (0.000244)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000523)   SHOW TABLES
       +  SQL (0.002447)   DROP TABLE `users`
       +  SQL (0.094352)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000734)   SHOW TABLES
       +  SQL (0.028034)   DROP TABLE `report_caches`
       +  SQL (0.215712)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.137971)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.000836)   SHOW TABLES
       +  SQL (0.000525)   SELECT version FROM `schema_migrations`
       +  SQL (0.000091)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000609)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.002843)   SHOW FIELDS FROM `users`
       +  SQL (0.000468)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000156)   COMMIT
       +  SQL (0.000132)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000362)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000389)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000152)   COMMIT
       +  SQL (0.000123)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000357)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000353)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000111)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Create (0.000226)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:41:15', 'test 1', '2008-11-26 11:41:15')
       +  SQL (0.000787)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Create (0.000335)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:41:15', 'test 2', '2008-11-19 11:41:15')
       +  SQL (0.000773)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Create (0.000273)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:41:15', 'test 3', '2008-11-19 11:41:15')
       +  SQL (0.000549)   COMMIT
       +  SQL (0.000105)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000422)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000733)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000242)   COMMIT
       +  User Load (0.000243)   SELECT * FROM `users` 
       +  SQL (0.000120)   BEGIN
       +  User Destroy (0.000209)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000743)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  User Destroy (0.000302)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000654)   COMMIT
       +  SQL (0.000182)   BEGIN
       +  User Destroy (0.000332)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000590)   COMMIT
       +  SQL (0.000130)   BEGIN
       +  User Create (0.000283)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:41:15', 'test 1', '2008-11-26 11:41:15')
       +  SQL (0.000844)   COMMIT
       +  SQL (0.000161)   BEGIN
       +  User Create (0.000265)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:41:15', 'test 2', '2008-11-19 11:41:15')
       +  SQL (0.000712)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Create (0.000215)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:41:15', 'test 3', '2008-11-19 11:41:15')
       +  SQL (0.000650)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000393)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000456)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000138)   COMMIT
       +  User Load (0.000237)   SELECT * FROM `users` 
       +  SQL (0.000138)   BEGIN
       +  User Destroy (0.000226)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000687)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000232)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000675)   COMMIT
       +  SQL (0.000179)   BEGIN
       +  User Destroy (0.000327)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000710)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  User Create (0.000270)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:41:15', 'test 1', '2008-11-26 11:41:15')
       +  SQL (0.000697)   COMMIT
       +  SQL (0.000174)   BEGIN
       +  User Create (0.000244)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:41:15', 'test 2', '2008-11-19 11:41:15')
       +  SQL (0.000779)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Create (0.000221)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:41:15', 'test 3', '2008-11-19 11:41:15')
       +  SQL (0.000676)   COMMIT
       +  SQL (0.000273)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000373)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000450)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000113)   COMMIT
       +  User Load (0.000398)   SELECT * FROM `users` 
       +  SQL (0.000224)   BEGIN
       +  User Destroy (0.000311)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000701)   COMMIT
       +  SQL (0.000115)   BEGIN
       +  User Destroy (0.000248)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000539)   COMMIT
       +  SQL (0.000248)   BEGIN
       +  User Destroy (0.000253)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000486)   COMMIT
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.001933)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000139)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.001738)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000614)   COMMIT
       +  SQL (0.000083)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000359)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000081)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Create (0.000210)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:41:15', 'test 1', '2008-11-26 11:41:15')
       +  SQL (0.001156)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Create (0.000263)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:41:15', 'test 2', '2008-11-19 11:41:15')
       +  SQL (0.000729)   COMMIT
       +  SQL (0.000211)   BEGIN
       +  User Create (0.000245)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:41:15', 'test 3', '2008-11-19 11:41:15')
       +  SQL (0.000726)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000393)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000389)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000136)   COMMIT
       +  User Load (0.000233)   SELECT * FROM `users` 
       +  SQL (0.000130)   BEGIN
       +  User Destroy (0.000223)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000643)   COMMIT
       +  SQL (0.000082)   BEGIN
       +  User Destroy (0.000128)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000650)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000853)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Create (0.000270)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:41:15', 'test 1', '2008-11-26 11:41:15')
       +  SQL (0.000729)   COMMIT
       +  SQL (0.000170)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:41:15', 'test 2', '2008-11-19 11:41:15')
       +  SQL (0.000687)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Create (0.000225)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:41:15', 'test 3', '2008-11-19 11:41:15')
       +  SQL (0.000547)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.001536)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000613)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000781)   COMMIT
       +  User Load (0.000264)   SELECT * FROM `users` 
       +  SQL (0.000105)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000551)   COMMIT
       +  SQL (0.000102)   BEGIN
       +  User Destroy (0.000201)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000643)   COMMIT
       +  SQL (0.000141)   BEGIN
       +  User Destroy (0.000306)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000572)   COMMIT
       +  SQL (0.000111)   BEGIN
       +  User Create (0.000185)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:41:15', 'test 1', '2008-11-26 11:41:15')
       +  SQL (0.000626)   COMMIT
       +  SQL (0.000070)   BEGIN
       +  User Create (0.000140)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:41:15', 'test 2', '2008-11-19 11:41:15')
       +  SQL (0.000543)   COMMIT
       +  SQL (0.000101)   BEGIN
       +  User Create (0.000153)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:41:15', 'test 3', '2008-11-19 11:41:15')
       +  SQL (0.000549)   COMMIT
       +  SQL (0.000099)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000242)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000341)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000103)   COMMIT
       +  User Load (0.000163)   SELECT * FROM `users` 
       +  SQL (0.000068)   BEGIN
       +  User Destroy (0.000164)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000775)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Destroy (0.000259)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000627)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000303)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000619)   COMMIT
       +  SQL (0.000145)   BEGIN
       +  User Create (0.000309)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:41:15', 'test 1', '2008-11-26 11:41:15')
       +  SQL (0.000708)   COMMIT
       +  SQL (0.000194)   BEGIN
       +  User Create (0.000234)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:41:15', 'test 2', '2008-11-19 11:41:15')
       +  SQL (0.000733)   COMMIT
       +  SQL (0.000156)   BEGIN
       +  User Create (0.000325)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:41:15', 'test 3', '2008-11-19 11:41:15')
       +  SQL (0.000552)   COMMIT
       +  SQL (0.000106)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000335)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000500)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000139)   COMMIT
       +  User Load (0.000236)   SELECT * FROM `users` 
       +  SQL (0.000129)   BEGIN
       +  User Destroy (0.000260)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000671)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000234)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000706)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Destroy (0.000232)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000737)   COMMIT
       +  SQL (0.000256)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000711)   SHOW TABLES
       +  SQL (0.002525)   DROP TABLE `users`
       +  SQL (0.105714)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000781)   SHOW TABLES
       +  SQL (0.027029)   DROP TABLE `report_caches`
       +  SQL (0.205058)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.137302)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001058)   SHOW TABLES
       +  SQL (0.001608)   SELECT version FROM `schema_migrations`
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002036)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000259)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000518)   SHOW TABLES
       +  SQL (0.002014)   DROP TABLE `users`
       +  SQL (0.066181)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001277)   SHOW TABLES
       +  SQL (0.002340)   DROP TABLE `report_caches`
       +  SQL (0.173545)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.109574)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001149)   SHOW TABLES
       +  SQL (0.001501)   SELECT version FROM `schema_migrations`
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002711)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000257)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000598)   SHOW TABLES
       +  SQL (0.002417)   DROP TABLE `users`
       +  SQL (0.059355)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001190)   SHOW TABLES
       +  SQL (0.001977)   DROP TABLE `report_caches`
       +  SQL (0.169708)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.135102)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001010)   SHOW TABLES
       +  SQL (0.000884)   SELECT version FROM `schema_migrations`
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002987)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000241)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000561)   SHOW TABLES
       +  SQL (0.001923)   DROP TABLE `users`
       +  SQL (0.082806)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000647)   SHOW TABLES
       +  SQL (0.025255)   DROP TABLE `report_caches`
       +  SQL (0.136895)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.125914)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.000850)   SHOW TABLES
       +  SQL (0.000279)   SELECT version FROM `schema_migrations`
       +  SQL (0.000102)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000620)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.004245)   SHOW FIELDS FROM `users`
       +  SQL (0.000331)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000078)   COMMIT
       +  SQL (0.000105)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000246)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000247)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000102)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Create (0.000224)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:44:17', 'test 1', '2008-11-26 11:44:17')
       +  SQL (0.000793)   COMMIT
       +  SQL (0.000176)   BEGIN
       +  User Create (0.000270)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:44:17', 'test 2', '2008-11-19 11:44:17')
       +  SQL (0.000623)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:44:17', 'test 3', '2008-11-19 11:44:17')
       +  SQL (0.000587)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000390)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000449)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000137)   COMMIT
       +  User Load (0.000230)   SELECT * FROM `users` 
       +  SQL (0.000130)   BEGIN
       +  User Destroy (0.000267)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000708)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000617)   COMMIT
       +  SQL (0.001450)   BEGIN
       +  User Destroy (0.000355)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000566)   COMMIT
       +  SQL (0.005855)   BEGIN
       +  User Create (0.000259)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:44:17', 'test 1', '2008-11-26 11:44:17')
       +  SQL (0.000554)   COMMIT
       +  SQL (0.000161)   BEGIN
       +  User Create (0.000249)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:44:17', 'test 2', '2008-11-19 11:44:17')
       +  SQL (0.000656)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Create (0.000260)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:44:17', 'test 3', '2008-11-19 11:44:17')
       +  SQL (0.000576)   COMMIT
       +  SQL (0.000104)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000383)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000527)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000146)   COMMIT
       +  User Load (0.000237)   SELECT * FROM `users` 
       +  SQL (0.000130)   BEGIN
       +  User Destroy (0.000217)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000685)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000666)   COMMIT
       +  SQL (0.000180)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000727)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000263)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:44:17', 'test 1', '2008-11-26 11:44:17')
       +  SQL (0.000632)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Create (0.000234)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:44:17', 'test 2', '2008-11-19 11:44:17')
       +  SQL (0.000725)   COMMIT
       +  SQL (0.000180)   BEGIN
       +  User Create (0.000292)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:44:17', 'test 3', '2008-11-19 11:44:17')
       +  SQL (0.000698)   COMMIT
       +  SQL (0.000824)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000491)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000447)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000115)   COMMIT
       +  User Load (0.000222)   SELECT * FROM `users` 
       +  SQL (0.000138)   BEGIN
       +  User Destroy (0.000225)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000651)   COMMIT
       +  SQL (0.001481)   BEGIN
       +  User Destroy (0.000377)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000658)   COMMIT
       +  SQL (0.000221)   BEGIN
       +  User Destroy (0.000335)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000654)   COMMIT
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.003122)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000152)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000306)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000108)   COMMIT
       +  SQL (0.000109)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000244)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000103)   COMMIT
       +  SQL (0.000132)   BEGIN
       +  User Create (0.000185)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:44:18', 'test 1', '2008-11-26 11:44:18')
       +  SQL (0.001110)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Create (0.000240)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:44:18', 'test 2', '2008-11-19 11:44:18')
       +  SQL (0.000731)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Create (0.000230)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:44:18', 'test 3', '2008-11-19 11:44:18')
       +  SQL (0.000584)   COMMIT
       +  SQL (0.000146)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000403)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000472)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000139)   COMMIT
       +  User Load (0.000327)   SELECT * FROM `users` 
       +  SQL (0.000143)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.001136)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Destroy (0.000274)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000724)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000609)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  User Create (0.000245)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:44:18', 'test 1', '2008-11-26 11:44:18')
       +  SQL (0.000568)   COMMIT
       +  SQL (0.000192)   BEGIN
       +  User Create (0.000756)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:44:18', 'test 2', '2008-11-19 11:44:18')
       +  SQL (0.000633)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000280)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:44:18', 'test 3', '2008-11-19 11:44:18')
       +  SQL (0.000587)   COMMIT
       +  SQL (0.000288)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000402)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000631)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000153)   COMMIT
       +  User Load (0.000249)   SELECT * FROM `users` 
       +  SQL (0.000133)   BEGIN
       +  User Destroy (0.000232)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000788)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000241)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000554)   COMMIT
       +  SQL (0.000124)   BEGIN
       +  User Destroy (0.000242)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000706)   COMMIT
       +  SQL (0.000873)   BEGIN
       +  User Create (0.000293)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:44:18', 'test 1', '2008-11-26 11:44:18')
       +  SQL (0.000646)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  User Create (0.000242)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:44:18', 'test 2', '2008-11-19 11:44:18')
       +  SQL (0.000781)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  User Create (0.000259)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:44:18', 'test 3', '2008-11-19 11:44:18')
       +  SQL (0.000714)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000408)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000455)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000139)   COMMIT
       +  User Load (0.000255)   SELECT * FROM `users` 
       +  SQL (0.000138)   BEGIN
       +  User Destroy (0.000226)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000704)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Destroy (0.000233)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000821)   COMMIT
       +  SQL (0.000218)   BEGIN
       +  User Destroy (0.000298)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000693)   COMMIT
       +  SQL (0.000173)   BEGIN
       +  User Create (0.000271)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:44:18', 'test 1', '2008-11-26 11:44:18')
       +  SQL (0.000659)   COMMIT
       +  SQL (0.000217)   BEGIN
       +  User Create (0.000237)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:44:18', 'test 2', '2008-11-19 11:44:18')
       +  SQL (0.000762)   COMMIT
       +  SQL (0.000173)   BEGIN
       +  User Create (0.000225)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:44:18', 'test 3', '2008-11-19 11:44:18')
       +  SQL (0.000697)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000441)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000468)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000130)   COMMIT
       +  User Load (0.000400)   SELECT * FROM `users` 
       +  SQL (0.000124)   BEGIN
       +  User Destroy (0.000271)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000671)   COMMIT
       +  SQL (0.000121)   BEGIN
       +  User Destroy (0.000257)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000639)   COMMIT
       +  SQL (0.000103)   BEGIN
       +  User Destroy (0.000200)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000501)   COMMIT
       +  SQL (0.000264)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000809)   SHOW TABLES
       +  SQL (0.022848)   DROP TABLE `users`
       +  SQL (0.072274)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000615)   SHOW TABLES
       +  SQL (0.003354)   DROP TABLE `report_caches`
       +  SQL (0.136370)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.137507)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.002102)   SHOW TABLES
       +  SQL (0.002578)   SELECT version FROM `schema_migrations`
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002906)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000237)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000582)   SHOW TABLES
       +  SQL (0.002183)   DROP TABLE `users`
       +  SQL (0.118628)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000736)   SHOW TABLES
       +  SQL (0.002279)   DROP TABLE `report_caches`
       +  SQL (0.154086)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.125711)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.000951)   SHOW TABLES
       +  SQL (0.000388)   SELECT version FROM `schema_migrations`
       +  SQL (0.000857)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000652)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.002983)   SHOW FIELDS FROM `users`
       +  SQL (0.000862)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000160)   COMMIT
       +  SQL (0.000107)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000242)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000233)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000106)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Create (0.000223)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:49:56', 'test 1', '2008-11-26 11:49:56')
       +  SQL (0.000759)   COMMIT
       +  SQL (0.000103)   BEGIN
       +  User Create (0.000166)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:49:56', 'test 2', '2008-11-19 11:49:56')
       +  SQL (0.000627)   COMMIT
       +  SQL (0.000223)   BEGIN
       +  User Create (0.000235)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:49:56', 'test 3', '2008-11-19 11:49:56')
       +  SQL (0.000623)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000387)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000472)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000138)   COMMIT
       +  User Load (0.000233)   SELECT * FROM `users` 
       +  SQL (0.000129)   BEGIN
       +  User Destroy (0.000224)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000713)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000628)   COMMIT
       +  SQL (0.000247)   BEGIN
       +  User Destroy (0.000307)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000667)   COMMIT
       +  SQL (0.000319)   BEGIN
       +  User Create (0.000307)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:49:56', 'test 1', '2008-11-26 11:49:56')
       +  SQL (0.002347)   COMMIT
       +  SQL (0.000181)   BEGIN
       +  User Create (0.000287)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:49:56', 'test 2', '2008-11-19 11:49:56')
       +  SQL (0.000556)   COMMIT
       +  SQL (0.000117)   BEGIN
       +  User Create (0.000196)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:49:56', 'test 3', '2008-11-19 11:49:56')
       +  SQL (0.000493)   COMMIT
       +  SQL (0.000092)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000333)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000464)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000126)   COMMIT
       +  User Load (0.000209)   SELECT * FROM `users` 
       +  SQL (0.000105)   BEGIN
       +  User Destroy (0.000203)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000635)   COMMIT
       +  SQL (0.000073)   BEGIN
       +  User Destroy (0.000180)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000706)   COMMIT
       +  SQL (0.000119)   BEGIN
       +  User Destroy (0.000243)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000969)   COMMIT
       +  SQL (0.000133)   BEGIN
       +  User Create (0.000223)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:49:56', 'test 1', '2008-11-26 11:49:56')
       +  SQL (0.000921)   COMMIT
       +  SQL (0.000131)   BEGIN
       +  User Create (0.000200)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:49:56', 'test 2', '2008-11-19 11:49:56')
       +  SQL (0.000647)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Create (0.000241)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:49:56', 'test 3', '2008-11-19 11:49:56')
       +  SQL (0.000752)   COMMIT
       +  SQL (0.000216)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000388)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000464)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000136)   COMMIT
       +  User Load (0.000249)   SELECT * FROM `users` 
       +  SQL (0.000141)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000577)   COMMIT
       +  SQL (0.000142)   BEGIN
       +  User Destroy (0.000149)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000608)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Destroy (0.000273)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000688)   COMMIT
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.001988)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000220)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000288)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000131)   COMMIT
       +  SQL (0.000085)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000250)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000093)   COMMIT
       +  SQL (0.000118)   BEGIN
       +  User Create (0.000192)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:49:56', 'test 1', '2008-11-26 11:49:56')
       +  SQL (0.000752)   COMMIT
       +  SQL (0.000140)   BEGIN
       +  User Create (0.000325)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:49:56', 'test 2', '2008-11-19 11:49:56')
       +  SQL (0.000680)   COMMIT
       +  SQL (0.000174)   BEGIN
       +  User Create (0.000307)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:49:56', 'test 3', '2008-11-19 11:49:56')
       +  SQL (0.000557)   COMMIT
       +  SQL (0.000110)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000355)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000404)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000101)   COMMIT
       +  User Load (0.000283)   SELECT * FROM `users` 
       +  SQL (0.000132)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000738)   COMMIT
       +  SQL (0.000224)   BEGIN
       +  User Destroy (0.000313)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000752)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000228)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000729)   COMMIT
       +  SQL (0.000182)   BEGIN
       +  User Create (0.000284)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:49:56', 'test 1', '2008-11-26 11:49:56')
       +  SQL (0.000784)   COMMIT
       +  SQL (0.000168)   BEGIN
       +  User Create (0.000251)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:49:56', 'test 2', '2008-11-19 11:49:56')
       +  SQL (0.000620)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000231)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:49:56', 'test 3', '2008-11-19 11:49:56')
       +  SQL (0.000696)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000504)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000455)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000142)   COMMIT
       +  User Load (0.000237)   SELECT * FROM `users` 
       +  SQL (0.000130)   BEGIN
       +  User Destroy (0.000215)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000604)   COMMIT
       +  SQL (0.000124)   BEGIN
       +  User Destroy (0.000144)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000562)   COMMIT
       +  SQL (0.000133)   BEGIN
       +  User Destroy (0.000148)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000664)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000275)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:49:56', 'test 1', '2008-11-26 11:49:56')
       +  SQL (0.000675)   COMMIT
       +  SQL (0.000170)   BEGIN
       +  User Create (0.000254)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:49:56', 'test 2', '2008-11-19 11:49:56')
       +  SQL (0.000713)   COMMIT
       +  SQL (0.000273)   BEGIN
       +  User Create (0.000244)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:49:56', 'test 3', '2008-11-19 11:49:56')
       +  SQL (0.000664)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000365)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000436)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000136)   COMMIT
       +  User Load (0.000231)   SELECT * FROM `users` 
       +  SQL (0.000129)   BEGIN
       +  User Destroy (0.000260)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.002605)   COMMIT
       +  SQL (0.000105)   BEGIN
       +  User Destroy (0.000261)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000549)   COMMIT
       +  SQL (0.000069)   BEGIN
       +  User Destroy (0.000193)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000449)   COMMIT
       +  SQL (0.000086)   BEGIN
       +  User Create (0.000276)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 11:49:56', 'test 1', '2008-11-26 11:49:56')
       +  SQL (0.000746)   COMMIT
       +  SQL (0.000194)   BEGIN
       +  User Create (0.000267)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 11:49:56', 'test 2', '2008-11-19 11:49:56')
       +  SQL (0.000840)   COMMIT
       +  SQL (0.000125)   BEGIN
       +  User Create (0.000384)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 11:49:56', 'test 3', '2008-11-19 11:49:56')
       +  SQL (0.000697)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000394)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000468)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000145)   COMMIT
       +  User Load (0.000239)   SELECT * FROM `users` 
       +  SQL (0.000129)   BEGIN
       +  User Destroy (0.000178)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000860)   COMMIT
       +  SQL (0.000072)   BEGIN
       +  User Destroy (0.000156)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000655)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000621)   COMMIT
       +  SQL (0.000245)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000548)   SHOW TABLES
       +  SQL (0.002231)   DROP TABLE `users`
       +  SQL (0.118106)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000846)   SHOW TABLES
       +  SQL (0.001725)   DROP TABLE `report_caches`
       +  SQL (0.141760)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.125869)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001384)   SHOW TABLES
       +  SQL (0.000777)   SELECT version FROM `schema_migrations`
       +  SQL (0.000256)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000510)   SHOW TABLES
       +  SQL (0.001507)   DROP TABLE `users`
       +  SQL (0.106232)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000792)   SHOW TABLES
       +  SQL (0.001749)   DROP TABLE `report_caches`
       +  SQL (0.178448)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.124867)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001456)   SHOW TABLES
       +  SQL (0.001458)   SELECT version FROM `schema_migrations`
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002771)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000265)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000723)   SHOW TABLES
       +  SQL (0.027313)   DROP TABLE `users`
       +  SQL (0.072391)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001084)   SHOW TABLES
       +  SQL (0.002256)   DROP TABLE `report_caches`
       +  SQL (0.125184)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.126273)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.000853)   SHOW TABLES
       +  SQL (0.002789)   SELECT version FROM `schema_migrations`
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.027214)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000261)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000823)   SHOW TABLES
       +  SQL (0.001819)   DROP TABLE `users`
       +  SQL (0.106036)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000655)   SHOW TABLES
       +  SQL (0.002478)   DROP TABLE `report_caches`
       +  SQL (0.162374)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.136290)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001550)   SHOW TABLES
       +  SQL (0.000725)   SELECT version FROM `schema_migrations`
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.003160)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000265)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000720)   SHOW TABLES
       +  SQL (0.002208)   DROP TABLE `users`
       +  SQL (0.083429)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000791)   SHOW TABLES
       +  SQL (0.002370)   DROP TABLE `report_caches`
       +  SQL (0.177365)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.126364)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.000617)   SHOW TABLES
       +  SQL (0.001090)   SELECT version FROM `schema_migrations`
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002662)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000231)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000517)   SHOW TABLES
       +  SQL (0.018286)   DROP TABLE `users`
       +  SQL (0.098007)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000548)   SHOW TABLES
       +  SQL (0.001824)   DROP TABLE `report_caches`
       +  SQL (0.197470)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.146422)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.004391)   SHOW TABLES
       +  SQL (0.000303)   SELECT version FROM `schema_migrations`
       +  SQL (0.000121)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000490)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.021177)   SHOW FIELDS FROM `users`
       +  SQL (0.057938)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000153)   COMMIT
       +  SQL (0.000142)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000433)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000364)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000117)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Create (0.000238)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 14:46:16', 'test 1', '2008-11-26 14:46:16')
       +  SQL (0.078194)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  User Create (0.000236)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 14:46:16', 'test 2', '2008-11-19 14:46:16')
       +  SQL (0.039698)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Create (0.000248)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 14:46:16', 'test 3', '2008-11-19 14:46:16')
       +  SQL (0.055982)   COMMIT
       +  SQL (0.000169)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.001470)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000447)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000108)   COMMIT
       +  User Load (0.000171)   SELECT * FROM `users` 
       +  SQL (0.000097)   BEGIN
       +  User Destroy (0.000178)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.049925)   COMMIT
       +  SQL (0.000140)   BEGIN
       +  User Destroy (0.000879)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.003330)   COMMIT
       +  SQL (0.005254)   BEGIN
       +  User Destroy (0.000302)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.040725)   COMMIT
       +  SQL (0.000169)   BEGIN
       +  User Create (0.000284)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 14:46:16', 'test 1', '2008-11-26 14:46:16')
       +  SQL (0.000737)   COMMIT
       +  SQL (0.000081)   BEGIN
       +  User Create (0.000169)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 14:46:16', 'test 2', '2008-11-19 14:46:16')
       +  SQL (0.000667)   COMMIT
       +  SQL (0.000239)   BEGIN
       +  User Create (0.000240)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 14:46:16', 'test 3', '2008-11-19 14:46:16')
       +  SQL (0.000766)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000518)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000483)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000138)   COMMIT
       +  User Load (0.000233)   SELECT * FROM `users` 
       +  SQL (0.000129)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000773)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000240)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000707)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  User Destroy (0.000282)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000638)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Create (0.000234)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 14:46:16', 'test 1', '2008-11-26 14:46:16')
       +  SQL (0.000660)   COMMIT
       +  SQL (0.000211)   BEGIN
       +  User Create (0.000236)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 14:46:16', 'test 2', '2008-11-19 14:46:16')
       +  SQL (0.000560)   COMMIT
       +  SQL (0.000134)   BEGIN
       +  User Create (0.000802)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 14:46:16', 'test 3', '2008-11-19 14:46:16')
       +  SQL (0.001828)   COMMIT
       +  SQL (0.000329)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000363)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000619)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000119)   COMMIT
       +  User Load (0.000342)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000280)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000731)   COMMIT
       +  SQL (0.000083)   BEGIN
       +  User Destroy (0.000190)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000460)   COMMIT
       +  SQL (0.000069)   BEGIN
       +  User Destroy (0.000167)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000393)   COMMIT
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002982)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000466)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000326)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000084)   COMMIT
       +  SQL (0.000114)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000279)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000095)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Create (0.000222)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 14:46:16', 'test 1', '2008-11-26 14:46:16')
       +  SQL (0.000759)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  User Create (0.000280)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 14:46:16', 'test 2', '2008-11-19 14:46:16')
       +  SQL (0.000803)   COMMIT
       +  SQL (0.000177)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 14:46:16', 'test 3', '2008-11-19 14:46:16')
       +  SQL (0.000664)   COMMIT
       +  SQL (0.000146)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000386)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000399)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000153)   COMMIT
       +  User Load (0.000255)   SELECT * FROM `users` 
       +  SQL (0.000132)   BEGIN
       +  User Destroy (0.000227)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.001076)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000675)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  User Destroy (0.000238)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000593)   COMMIT
       +  SQL (0.000163)   BEGIN
       +  User Create (0.000335)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 14:46:16', 'test 1', '2008-11-26 14:46:16')
       +  SQL (0.000731)   COMMIT
       +  SQL (0.000349)   BEGIN
       +  User Create (0.000282)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 14:46:16', 'test 2', '2008-11-19 14:46:16')
       +  SQL (0.005899)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000283)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 14:46:16', 'test 3', '2008-11-19 14:46:16')
       +  SQL (0.000733)   COMMIT
       +  SQL (0.000113)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000289)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000715)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000110)   COMMIT
       +  User Load (0.000175)   SELECT * FROM `users` 
       +  SQL (0.000099)   BEGIN
       +  User Destroy (0.000172)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000805)   COMMIT
       +  SQL (0.000201)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000660)   COMMIT
       +  SQL (0.000231)   BEGIN
       +  User Destroy (0.000402)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000686)   COMMIT
       +  SQL (0.000135)   BEGIN
       +  User Create (0.001256)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 14:46:16', 'test 1', '2008-11-26 14:46:16')
       +  SQL (0.001208)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Create (0.000486)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 14:46:16', 'test 2', '2008-11-19 14:46:16')
       +  SQL (0.000663)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Create (0.000201)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 14:46:16', 'test 3', '2008-11-19 14:46:16')
       +  SQL (0.000675)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000392)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000594)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000131)   COMMIT
       +  User Load (0.000273)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000773)   COMMIT
       +  SQL (0.000180)   BEGIN
       +  User Destroy (0.000384)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000735)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  User Destroy (0.000289)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000696)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000258)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 14:46:16', 'test 1', '2008-11-26 14:46:16')
       +  SQL (0.000749)   COMMIT
       +  SQL (0.000307)   BEGIN
       +  User Create (0.000376)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 14:46:16', 'test 2', '2008-11-19 14:46:16')
       +  SQL (0.000562)   COMMIT
       +  SQL (0.000105)   BEGIN
       +  User Create (0.000192)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 14:46:16', 'test 3', '2008-11-19 14:46:16')
       +  SQL (0.000743)   COMMIT
       +  SQL (0.001481)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000461)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000845)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000753)   COMMIT
       +  User Load (0.000277)   SELECT * FROM `users` 
       +  SQL (0.000109)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.001001)   COMMIT
       +  SQL (0.000128)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000520)   COMMIT
       +  SQL (0.000091)   BEGIN
       +  User Destroy (0.000768)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.001123)   COMMIT
       +  SQL (0.000304)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000731)   SHOW TABLES
       +  SQL (0.016804)   DROP TABLE `users`
       +  SQL (0.331638)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001329)   SHOW TABLES
       +  SQL (0.029272)   DROP TABLE `report_caches`
       +  SQL (0.318470)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.336442)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001885)   SHOW TABLES
       +  SQL (0.001723)   SELECT version FROM `schema_migrations`
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002320)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000236)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000516)   SHOW TABLES
       +  SQL (0.001844)   DROP TABLE `users`
       +  SQL (0.107501)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000801)   SHOW TABLES
       +  SQL (0.114773)   DROP TABLE `report_caches`
       +  SQL (0.415998)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.124370)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.000803)   SHOW TABLES
       +  SQL (0.000426)   SELECT version FROM `schema_migrations`
       +  SQL (0.000095)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000547)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.048668)   SHOW FIELDS FROM `users`
       +  SQL (0.000450)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000144)   COMMIT
       +  SQL (0.000116)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000339)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000377)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000115)   COMMIT
       +  SQL (0.000163)   BEGIN
       +  User Create (0.000659)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:12:52', 'test 1', '2008-11-26 15:12:52')
       +  SQL (0.000712)   COMMIT
       +  SQL (0.000173)   BEGIN
       +  User Create (0.000251)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:12:52', 'test 2', '2008-11-19 15:12:52')
       +  SQL (0.000608)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000253)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:12:52', 'test 3', '2008-11-19 15:12:52')
       +  SQL (0.000683)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000452)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.001359)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000173)   COMMIT
       +  User Load (0.000331)   SELECT * FROM `users` 
       +  SQL (0.000107)   BEGIN
       +  User Destroy (0.000238)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.001817)   COMMIT
       +  SQL (0.000318)   BEGIN
       +  User Destroy (0.000238)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000517)   COMMIT
       +  SQL (0.000068)   BEGIN
       +  User Destroy (0.000151)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000550)   COMMIT
       +  SQL (0.000110)   BEGIN
       +  User Create (0.000190)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:12:52', 'test 1', '2008-11-26 15:12:52')
       +  SQL (0.000594)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Create (0.000251)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:12:52', 'test 2', '2008-11-19 15:12:52')
       +  SQL (0.000783)   COMMIT
       +  SQL (0.000135)   BEGIN
       +  User Create (0.000399)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:12:52', 'test 3', '2008-11-19 15:12:52')
       +  SQL (0.001329)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000399)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000457)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000137)   COMMIT
       +  User Load (0.000233)   SELECT * FROM `users` 
       +  SQL (0.000129)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000693)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000611)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Destroy (0.000245)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000655)   COMMIT
       +  SQL (0.000140)   BEGIN
       +  User Create (0.000287)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:12:52', 'test 1', '2008-11-26 15:12:52')
       +  SQL (0.000738)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:12:52', 'test 2', '2008-11-19 15:12:52')
       +  SQL (0.000543)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Create (0.000278)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:12:52', 'test 3', '2008-11-19 15:12:52')
       +  SQL (0.000863)   COMMIT
       +  SQL (0.000465)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000514)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000768)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000265)   COMMIT
       +  User Load (0.000389)   SELECT * FROM `users` 
       +  SQL (0.000175)   BEGIN
       +  User Destroy (0.000331)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000993)   COMMIT
       +  SQL (0.000107)   BEGIN
       +  User Destroy (0.000214)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000705)   COMMIT
       +  SQL (0.000097)   BEGIN
       +  User Destroy (0.000648)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000812)   COMMIT
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.001909)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000159)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000303)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000087)   COMMIT
       +  SQL (0.000118)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000242)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000096)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Create (0.000218)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:12:52', 'test 1', '2008-11-26 15:12:52')
       +  SQL (0.000780)   COMMIT
       +  SQL (0.000441)   BEGIN
       +  User Create (0.000266)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:12:52', 'test 2', '2008-11-19 15:12:52')
       +  SQL (0.000663)   COMMIT
       +  SQL (0.000136)   BEGIN
       +  User Create (0.000267)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:12:53', 'test 3', '2008-11-19 15:12:52')
       +  SQL (0.000697)   COMMIT
       +  SQL (0.000226)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000592)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000426)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000183)   COMMIT
       +  User Load (0.000260)   SELECT * FROM `users` 
       +  SQL (0.000132)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000759)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000625)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  User Destroy (0.000222)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000618)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Create (0.000376)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:12:53', 'test 1', '2008-11-26 15:12:53')
       +  SQL (0.000582)   COMMIT
       +  SQL (0.000356)   BEGIN
       +  User Create (0.000832)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:12:53', 'test 2', '2008-11-19 15:12:53')
       +  SQL (0.000691)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  User Create (0.000230)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:12:53', 'test 3', '2008-11-19 15:12:53')
       +  SQL (0.000533)   COMMIT
       +  SQL (0.000097)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000318)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000362)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000104)   COMMIT
       +  User Load (0.000168)   SELECT * FROM `users` 
       +  SQL (0.000098)   BEGIN
       +  User Destroy (0.000213)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000640)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Destroy (0.000238)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000635)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Destroy (0.000226)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000504)   COMMIT
       +  SQL (0.000175)   BEGIN
       +  User Create (0.000278)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:12:53', 'test 1', '2008-11-26 15:12:53')
       +  SQL (0.000700)   COMMIT
       +  SQL (0.000172)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:12:53', 'test 2', '2008-11-19 15:12:53')
       +  SQL (0.000746)   COMMIT
       +  SQL (0.000161)   BEGIN
       +  User Create (0.000246)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:12:53', 'test 3', '2008-11-19 15:12:53')
       +  SQL (0.000650)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000391)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000533)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000184)   COMMIT
       +  User Load (0.000318)   SELECT * FROM `users` 
       +  SQL (0.000115)   BEGIN
       +  User Destroy (0.000238)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000670)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000225)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000646)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  User Destroy (0.000294)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000652)   COMMIT
       +  SQL (0.000186)   BEGIN
       +  User Create (0.000264)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:12:53', 'test 1', '2008-11-26 15:12:53')
       +  SQL (0.000774)   COMMIT
       +  SQL (0.000226)   BEGIN
       +  User Create (0.000248)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:12:53', 'test 2', '2008-11-19 15:12:53')
       +  SQL (0.000988)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Create (0.000230)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:12:53', 'test 3', '2008-11-19 15:12:53')
       +  SQL (0.000632)   COMMIT
       +  SQL (0.000121)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000399)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000870)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000256)   COMMIT
       +  User Load (0.000333)   SELECT * FROM `users` 
       +  SQL (0.000109)   BEGIN
       +  User Destroy (0.000237)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000534)   COMMIT
       +  SQL (0.000103)   BEGIN
       +  User Destroy (0.000207)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000524)   COMMIT
       +  SQL (0.000130)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000719)   COMMIT
       +  SQL (0.000261)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000765)   SHOW TABLES
       +  SQL (0.002195)   DROP TABLE `users`
       +  SQL (0.123114)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001939)   SHOW TABLES
       +  SQL (0.001620)   DROP TABLE `report_caches`
       +  SQL (0.206116)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.147165)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001560)   SHOW TABLES
       +  SQL (0.002359)   SELECT version FROM `schema_migrations`
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.053785)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000371)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.037096)   SHOW TABLES
       +  SQL (0.002539)   DROP TABLE `users`
       +  SQL (0.206123)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000745)   SHOW TABLES
       +  SQL (0.070497)   DROP TABLE `report_caches`
       +  SQL (0.506332)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.265042)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001382)   SHOW TABLES
       +  SQL (0.000254)   SELECT version FROM `schema_migrations`
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002646)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000263)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000864)   SHOW TABLES
       +  SQL (0.024050)   DROP TABLE `users`
       +  SQL (0.086429)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.002686)   SHOW TABLES
       +  SQL (0.001797)   DROP TABLE `report_caches`
       +  SQL (0.171300)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.137470)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.005612)   SHOW TABLES
       +  SQL (0.000281)   SELECT version FROM `schema_migrations`
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.029436)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000251)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000561)   SHOW TABLES
       +  SQL (0.002212)   DROP TABLE `users`
       +  SQL (0.089416)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000789)   SHOW TABLES
       +  SQL (0.018734)   DROP TABLE `report_caches`
       +  SQL (0.242988)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.125828)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001275)   SHOW TABLES
       +  SQL (0.000524)   SELECT version FROM `schema_migrations`
       +  SQL (0.000126)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000506)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.001993)   SHOW FIELDS FROM `users`
       +  SQL (0.000299)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000104)   COMMIT
       +  SQL (0.000075)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000237)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000234)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000102)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Create (0.000205)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:51:30', 'test 1', '2008-11-26 15:51:30')
       +  SQL (0.000683)   COMMIT
       +  SQL (0.000182)   BEGIN
       +  User Create (0.000256)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:51:30', 'test 2', '2008-11-19 15:51:30')
       +  SQL (0.000717)   COMMIT
       +  SQL (0.000226)   BEGIN
       +  User Create (0.000237)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:51:30', 'test 3', '2008-11-19 15:51:30')
       +  SQL (0.000624)   COMMIT
       +  SQL (0.000122)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000415)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.001115)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000138)   COMMIT
       +  User Load (0.000429)   SELECT * FROM `users` 
       +  SQL (0.000138)   BEGIN
       +  User Destroy (0.000280)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000790)   COMMIT
       +  SQL (0.000125)   BEGIN
       +  User Destroy (0.000265)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000525)   COMMIT
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000196)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000533)   COMMIT
       +  SQL (0.000128)   BEGIN
       +  User Create (0.000334)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:51:30', 'test 1', '2008-11-26 15:51:30')
       +  SQL (0.000659)   COMMIT
       +  SQL (0.000222)   BEGIN
       +  User Create (0.000304)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:51:30', 'test 2', '2008-11-19 15:51:30')
       +  SQL (0.000636)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:51:30', 'test 3', '2008-11-19 15:51:30')
       +  SQL (0.000579)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000407)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000473)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000136)   COMMIT
       +  User Load (0.000232)   SELECT * FROM `users` 
       +  SQL (0.000128)   BEGIN
       +  User Destroy (0.000228)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000861)   COMMIT
       +  SQL (0.000103)   BEGIN
       +  User Destroy (0.000155)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000559)   COMMIT
       +  SQL (0.000070)   BEGIN
       +  User Destroy (0.000152)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000466)   COMMIT
       +  SQL (0.000098)   BEGIN
       +  User Create (0.000213)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:51:30', 'test 1', '2008-11-26 15:51:30')
       +  SQL (0.000656)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Create (0.000286)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:51:30', 'test 2', '2008-11-19 15:51:30')
       +  SQL (0.000728)   COMMIT
       +  SQL (0.000176)   BEGIN
       +  User Create (0.000235)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:51:30', 'test 3', '2008-11-19 15:51:30')
       +  SQL (0.001144)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000389)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000481)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000139)   COMMIT
       +  User Load (0.000233)   SELECT * FROM `users` 
       +  SQL (0.000112)   BEGIN
       +  User Destroy (0.000165)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000631)   COMMIT
       +  SQL (0.000193)   BEGIN
       +  User Destroy (0.000371)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000730)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.002660)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.002538)   COMMIT
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.006613)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000249)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000277)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000073)   COMMIT
       +  SQL (0.000068)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000189)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000069)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Create (0.000262)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:51:31', 'test 1', '2008-11-26 15:51:31')
       +  SQL (0.001152)   COMMIT
       +  SQL (0.000138)   BEGIN
       +  User Create (0.000285)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:51:31', 'test 2', '2008-11-19 15:51:31')
       +  SQL (0.000519)   COMMIT
       +  SQL (0.000102)   BEGIN
       +  User Create (0.000215)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:51:31', 'test 3', '2008-11-19 15:51:31')
       +  SQL (0.080900)   COMMIT
       +  SQL (0.000253)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000430)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000404)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000138)   COMMIT
       +  User Load (0.000253)   SELECT * FROM `users` 
       +  SQL (0.000132)   BEGIN
       +  User Destroy (0.000186)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.046761)   COMMIT
       +  SQL (0.000170)   BEGIN
       +  User Destroy (0.000322)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.090800)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Destroy (0.000324)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.093954)   COMMIT
       +  SQL (0.000190)   BEGIN
       +  User Create (0.000304)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:51:31', 'test 1', '2008-11-26 15:51:31')
       +  SQL (0.080412)   COMMIT
       +  SQL (0.000194)   BEGIN
       +  User Create (0.000314)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:51:31', 'test 2', '2008-11-19 15:51:31')
       +  SQL (0.313941)   COMMIT
       +  SQL (0.000301)   BEGIN
       +  User Create (0.000310)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:51:31', 'test 3', '2008-11-19 15:51:31')
       +  SQL (0.000658)   COMMIT
       +  SQL (0.000126)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000408)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000538)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000114)   COMMIT
       +  User Load (0.000277)   SELECT * FROM `users` 
       +  SQL (0.001802)   BEGIN
       +  User Destroy (0.000323)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000570)   COMMIT
       +  SQL (0.000351)   BEGIN
       +  User Destroy (0.000232)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000458)   COMMIT
       +  SQL (0.000075)   BEGIN
       +  User Destroy (0.000186)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000523)   COMMIT
       +  SQL (0.000125)   BEGIN
       +  User Create (0.000235)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:51:31', 'test 1', '2008-11-26 15:51:31')
       +  SQL (0.000576)   COMMIT
       +  SQL (0.000402)   BEGIN
       +  User Create (0.003880)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:51:31', 'test 2', '2008-11-19 15:51:31')
       +  SQL (0.036116)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Create (0.000302)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:51:31', 'test 3', '2008-11-19 15:51:31')
       +  SQL (0.000692)   COMMIT
       +  SQL (0.000210)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000392)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000459)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000136)   COMMIT
       +  User Load (0.000233)   SELECT * FROM `users` 
       +  SQL (0.000181)   BEGIN
       +  User Destroy (0.000149)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000443)   COMMIT
       +  SQL (0.000066)   BEGIN
       +  User Destroy (0.000210)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000700)   COMMIT
       +  SQL (0.000065)   BEGIN
       +  User Destroy (0.000173)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000577)   COMMIT
       +  SQL (0.000085)   BEGIN
       +  User Create (0.000166)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:51:31', 'test 1', '2008-11-26 15:51:31')
       +  SQL (0.000465)   COMMIT
       +  SQL (0.000067)   BEGIN
       +  User Create (0.000135)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:51:31', 'test 2', '2008-11-19 15:51:31')
       +  SQL (0.000419)   COMMIT
       +  SQL (0.000107)   BEGIN
       +  User Create (0.000158)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:51:31', 'test 3', '2008-11-19 15:51:31')
       +  SQL (0.000604)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000392)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000604)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000160)   COMMIT
       +  User Load (0.000272)   SELECT * FROM `users` 
       +  SQL (0.000145)   BEGIN
       +  User Destroy (0.000253)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000644)   COMMIT
       +  SQL (0.000246)   BEGIN
       +  User Destroy (0.000371)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.019716)   COMMIT
       +  SQL (0.000224)   BEGIN
       +  User Destroy (0.001269)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.001164)   COMMIT
       +  SQL (0.000265)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000640)   SHOW TABLES
       +  SQL (0.001842)   DROP TABLE `users`
       +  SQL (0.094114)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.003356)   SHOW TABLES
       +  SQL (0.024645)   DROP TABLE `report_caches`
       +  SQL (0.254909)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.151118)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.000683)   SHOW TABLES
       +  SQL (0.000203)   SELECT version FROM `schema_migrations`
       +  SQL (0.000266)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000572)   SHOW TABLES
       +  SQL (0.002041)   DROP TABLE `users`
       +  SQL (0.091850)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001615)   SHOW TABLES
       +  SQL (0.001849)   DROP TABLE `report_caches`
       +  SQL (0.126974)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.124762)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001258)   SHOW TABLES
       +  SQL (0.000256)   SELECT version FROM `schema_migrations`
       +  SQL (0.000264)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000567)   SHOW TABLES
       +  SQL (0.031365)   DROP TABLE `users`
       +  SQL (0.069380)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001227)   SHOW TABLES
       +  SQL (0.002727)   DROP TABLE `report_caches`
       +  SQL (0.178098)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.137018)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.003355)   SHOW TABLES
       +  SQL (0.001795)   SELECT version FROM `schema_migrations`
       +  SQL (0.000239)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000546)   SHOW TABLES
       +  SQL (0.002218)   DROP TABLE `users`
       +  SQL (0.070278)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000716)   SHOW TABLES
       +  SQL (0.002570)   DROP TABLE `report_caches`
       +  SQL (0.126623)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.151680)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.000930)   SHOW TABLES
       +  SQL (0.000277)   SELECT version FROM `schema_migrations`
       +  SQL (0.000121)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000628)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.002768)   SHOW FIELDS FROM `users`
       +  SQL (0.000326)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000113)   COMMIT
       +  SQL (0.000078)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000241)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000242)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000102)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Create (0.000227)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:52:35', 'test 1', '2008-11-26 15:52:35')
       +  SQL (0.000749)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  User Create (0.000270)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:52:35', 'test 2', '2008-11-19 15:52:35')
       +  SQL (0.000616)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:52:35', 'test 3', '2008-11-19 15:52:35')
       +  SQL (0.000634)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000404)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.001164)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000157)   COMMIT
       +  User Load (0.000490)   SELECT * FROM `users` 
       +  SQL (0.000452)   BEGIN
       +  User Destroy (0.000505)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000652)   COMMIT
       +  SQL (0.000112)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000522)   COMMIT
       +  SQL (0.000102)   BEGIN
       +  User Destroy (0.000191)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000609)   COMMIT
       +  SQL (0.000117)   BEGIN
       +  User Create (0.000220)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:52:35', 'test 1', '2008-11-26 15:52:35')
       +  SQL (0.000721)   COMMIT
       +  SQL (0.000145)   BEGIN
       +  User Create (0.000266)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:52:35', 'test 2', '2008-11-19 15:52:35')
       +  SQL (0.000741)   COMMIT
       +  SQL (0.000172)   BEGIN
       +  User Create (0.000267)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:52:35', 'test 3', '2008-11-19 15:52:35')
       +  SQL (0.000694)   COMMIT
       +  SQL (0.000221)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000483)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000504)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000144)   COMMIT
       +  User Load (0.000233)   SELECT * FROM `users` 
       +  SQL (0.000130)   BEGIN
       +  User Destroy (0.000221)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000642)   COMMIT
       +  SQL (0.000123)   BEGIN
       +  User Destroy (0.000125)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000650)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000226)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000997)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Create (0.000243)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:52:35', 'test 1', '2008-11-26 15:52:35')
       +  SQL (0.000785)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:52:35', 'test 2', '2008-11-19 15:52:35')
       +  SQL (0.000672)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  User Create (0.000317)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:52:35', 'test 3', '2008-11-19 15:52:35')
       +  SQL (0.000686)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.002061)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000443)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000127)   COMMIT
       +  User Load (0.000208)   SELECT * FROM `users` 
       +  SQL (0.000105)   BEGIN
       +  User Destroy (0.000922)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000720)   COMMIT
       +  SQL (0.000083)   BEGIN
       +  User Destroy (0.000249)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000882)   COMMIT
       +  SQL (0.000076)   BEGIN
       +  User Destroy (0.000207)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000462)   COMMIT
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002787)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000163)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000302)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000089)   COMMIT
       +  SQL (0.000123)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000264)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000111)   COMMIT
       +  SQL (0.000098)   BEGIN
       +  User Create (0.000330)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:52:35', 'test 1', '2008-11-26 15:52:35')
       +  SQL (0.000577)   COMMIT
       +  SQL (0.000091)   BEGIN
       +  User Create (0.000193)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:52:35', 'test 2', '2008-11-19 15:52:35')
       +  SQL (0.000449)   COMMIT
       +  SQL (0.000086)   BEGIN
       +  User Create (0.000448)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:52:35', 'test 3', '2008-11-19 15:52:35')
       +  SQL (0.001606)   COMMIT
       +  SQL (0.000097)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000299)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000359)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000078)   COMMIT
       +  User Load (0.000180)   SELECT * FROM `users` 
       +  SQL (0.000071)   BEGIN
       +  User Destroy (0.000174)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000580)   COMMIT
       +  SQL (0.000070)   BEGIN
       +  User Destroy (0.000165)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000490)   COMMIT
       +  SQL (0.000069)   BEGIN
       +  User Destroy (0.000159)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000447)   COMMIT
       +  SQL (0.000104)   BEGIN
       +  User Create (0.000236)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:52:35', 'test 1', '2008-11-26 15:52:35')
       +  SQL (0.000518)   COMMIT
       +  SQL (0.000315)   BEGIN
       +  User Create (0.000330)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:52:35', 'test 2', '2008-11-19 15:52:35')
       +  SQL (0.000522)   COMMIT
       +  SQL (0.000085)   BEGIN
       +  User Create (0.000192)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:52:35', 'test 3', '2008-11-19 15:52:35')
       +  SQL (0.000524)   COMMIT
       +  SQL (0.000072)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000383)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000610)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000109)   COMMIT
       +  User Load (0.000250)   SELECT * FROM `users` 
       +  SQL (0.000087)   BEGIN
       +  User Destroy (0.000196)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.002786)   COMMIT
       +  SQL (0.000092)   BEGIN
       +  User Destroy (0.000223)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000586)   COMMIT
       +  SQL (0.000073)   BEGIN
       +  User Destroy (0.000178)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000562)   COMMIT
       +  SQL (0.000106)   BEGIN
       +  User Create (0.000226)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:52:35', 'test 1', '2008-11-26 15:52:35')
       +  SQL (0.000816)   COMMIT
       +  SQL (0.000096)   BEGIN
       +  User Create (0.000215)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:52:35', 'test 2', '2008-11-19 15:52:35')
       +  SQL (0.000604)   COMMIT
       +  SQL (0.000115)   BEGIN
       +  User Create (0.000272)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:52:35', 'test 3', '2008-11-19 15:52:35')
       +  SQL (0.000534)   COMMIT
       +  SQL (0.000080)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000484)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000603)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000089)   COMMIT
       +  User Load (0.000215)   SELECT * FROM `users` 
       +  SQL (0.000072)   BEGIN
       +  User Destroy (0.000181)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.104006)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Destroy (0.000427)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.070265)   COMMIT
       +  SQL (0.000169)   BEGIN
       +  User Destroy (0.000384)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.070205)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000289)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:52:35', 'test 1', '2008-11-26 15:52:35')
       +  SQL (0.068484)   COMMIT
       +  SQL (0.000163)   BEGIN
       +  User Create (0.000259)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:52:35', 'test 2', '2008-11-19 15:52:35')
       +  SQL (0.069031)   COMMIT
       +  SQL (0.000177)   BEGIN
       +  User Create (0.000294)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:52:35', 'test 3', '2008-11-19 15:52:35')
       +  SQL (0.079829)   COMMIT
       +  SQL (0.000174)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000451)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000524)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000140)   COMMIT
       +  User Load (0.000287)   SELECT * FROM `users` 
       +  SQL (0.000135)   BEGIN
       +  User Destroy (0.000233)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.064240)   COMMIT
       +  SQL (0.000098)   BEGIN
       +  User Destroy (0.000649)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.052531)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Destroy (0.000303)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000598)   COMMIT
       +  SQL (0.000240)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000581)   SHOW TABLES
       +  SQL (0.002238)   DROP TABLE `users`
       +  SQL (0.087532)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000807)   SHOW TABLES
       +  SQL (0.029658)   DROP TABLE `report_caches`
       +  SQL (0.151334)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.137107)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001311)   SHOW TABLES
       +  SQL (0.001934)   SELECT version FROM `schema_migrations`
       +  SQL (0.000121)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000607)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.030398)   SHOW FIELDS FROM `users`
       +  SQL (0.122110)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000166)   COMMIT
       +  SQL (0.000135)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000402)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000421)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000152)   COMMIT
       +  SQL (0.000173)   BEGIN
       +  User Create (0.000220)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:52:51', 'test 1', '2008-11-26 15:52:51')
       +  SQL (0.044643)   COMMIT
       +  SQL (0.000191)   BEGIN
       +  User Create (0.000300)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:52:51', 'test 2', '2008-11-19 15:52:51')
       +  SQL (0.068055)   COMMIT
       +  SQL (0.000193)   BEGIN
       +  User Create (0.000317)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:52:51', 'test 3', '2008-11-19 15:52:51')
       +  SQL (0.051391)   COMMIT
       +  SQL (0.000127)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000444)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000495)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002154)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000169)   ROLLBACK
       +  User Load (0.000302)   SELECT * FROM `users` 
       +  SQL (0.000132)   BEGIN
       +  User Destroy (0.000238)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000701)   COMMIT
       +  SQL (0.000184)   BEGIN
       +  User Destroy (0.000308)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000641)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000705)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Create (0.000260)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:52:51', 'test 1', '2008-11-26 15:52:51')
       +  SQL (0.000797)   COMMIT
       +  SQL (0.000192)   BEGIN
       +  User Create (0.000231)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:52:51', 'test 2', '2008-11-19 15:52:51')
       +  SQL (0.000613)   COMMIT
       +  SQL (0.000177)   BEGIN
       +  User Create (0.000233)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:52:51', 'test 3', '2008-11-19 15:52:51')
       +  SQL (0.000666)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000397)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000452)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000172)   ROLLBACK
       +  User Load (0.000254)   SELECT * FROM `users` 
       +  SQL (0.000132)   BEGIN
       +  User Destroy (0.000183)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000594)   COMMIT
       +  SQL (0.000100)   BEGIN
       +  User Destroy (0.000153)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000655)   COMMIT
       +  SQL (0.000338)   BEGIN
       +  User Destroy (0.000308)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.001532)   COMMIT
       +  SQL (0.000175)   BEGIN
       +  User Create (0.000447)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:52:51', 'test 1', '2008-11-26 15:52:51')
       +  SQL (0.000630)   COMMIT
       +  SQL (0.000101)   BEGIN
       +  User Create (0.000205)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:52:51', 'test 2', '2008-11-19 15:52:51')
       +  SQL (0.000931)   COMMIT
       +  SQL (0.000224)   BEGIN
       +  User Create (0.000331)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:52:51', 'test 3', '2008-11-19 15:52:51')
       +  SQL (0.001105)   COMMIT
       +  SQL (0.000111)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000470)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000460)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000140)   ROLLBACK
       +  User Load (0.000194)   SELECT * FROM `users` 
       +  SQL (0.000103)   BEGIN
       +  User Destroy (0.000189)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000666)   COMMIT
       +  SQL (0.000110)   BEGIN
       +  User Destroy (0.000160)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000649)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000278)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000653)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000305)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000107)   COMMIT
       +  SQL (0.000107)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000215)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000106)   COMMIT
       +  SQL (0.000127)   BEGIN
       +  User Create (0.000201)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:52:51', 'test 1', '2008-11-26 15:52:51')
       +  SQL (0.000742)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  User Create (0.000237)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:52:51', 'test 2', '2008-11-19 15:52:51')
       +  SQL (0.000763)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  User Create (0.000225)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:52:51', 'test 3', '2008-11-19 15:52:51')
       +  SQL (0.000736)   COMMIT
       +  SQL (0.000250)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000397)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.001413)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000265)   COMMIT
       +  User Load (0.000302)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000307)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000691)   COMMIT
       +  SQL (0.000106)   BEGIN
       +  User Destroy (0.000225)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000540)   COMMIT
       +  SQL (0.000103)   BEGIN
       +  User Destroy (0.000195)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000811)   COMMIT
       +  SQL (0.000592)   BEGIN
       +  User Create (0.000313)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:52:51', 'test 1', '2008-11-26 15:52:51')
       +  SQL (0.000734)   COMMIT
       +  SQL (0.000156)   BEGIN
       +  User Create (0.000242)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:52:51', 'test 2', '2008-11-19 15:52:51')
       +  SQL (0.000598)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Create (0.000267)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:52:51', 'test 3', '2008-11-19 15:52:51')
       +  SQL (0.000596)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000410)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000493)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000167)   ROLLBACK
       +  User Load (0.000366)   SELECT * FROM `users` 
       +  SQL (0.000136)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000811)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Destroy (0.000446)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000798)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  User Destroy (0.000232)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000646)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  User Create (0.000278)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:52:51', 'test 1', '2008-11-26 15:52:51')
       +  SQL (0.000803)   COMMIT
       +  SQL (0.000175)   BEGIN
       +  User Create (0.000244)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:52:51', 'test 2', '2008-11-19 15:52:51')
       +  SQL (0.000744)   COMMIT
       +  SQL (0.000229)   BEGIN
       +  User Create (0.000259)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:52:51', 'test 3', '2008-11-19 15:52:51')
       +  SQL (0.000633)   COMMIT
       +  SQL (0.000223)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000487)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000770)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000159)   ROLLBACK
       +  User Load (0.000253)   SELECT * FROM `users` 
       +  SQL (0.000096)   BEGIN
       +  User Destroy (0.000209)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000614)   COMMIT
       +  SQL (0.000094)   BEGIN
       +  User Destroy (0.000218)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.001301)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000344)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000720)   COMMIT
       +  SQL (0.000163)   BEGIN
       +  User Create (0.000288)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:52:51', 'test 1', '2008-11-26 15:52:51')
       +  SQL (0.000757)   COMMIT
       +  SQL (0.000219)   BEGIN
       +  User Create (0.000244)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:52:51', 'test 2', '2008-11-19 15:52:51')
       +  SQL (0.000647)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  User Create (0.000253)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:52:51', 'test 3', '2008-11-19 15:52:51')
       +  SQL (0.000712)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000427)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000607)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000173)   ROLLBACK
       +  User Load (0.000349)   SELECT * FROM `users` 
       +  SQL (0.000117)   BEGIN
       +  User Destroy (0.000190)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000729)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000700)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Destroy (0.000228)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000601)   COMMIT
       +  SQL (0.000259)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000768)   SHOW TABLES
       +  SQL (0.002304)   DROP TABLE `users`
       +  SQL (0.126034)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000718)   SHOW TABLES
       +  SQL (0.002085)   DROP TABLE `report_caches`
       +  SQL (0.180159)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.137007)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001404)   SHOW TABLES
       +  SQL (0.000283)   SELECT version FROM `schema_migrations`
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.038333)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000238)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000587)   SHOW TABLES
       +  SQL (0.002483)   DROP TABLE `users`
       +  SQL (0.104021)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000880)   SHOW TABLES
       +  SQL (0.002367)   DROP TABLE `report_caches`
       +  SQL (0.144936)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.135290)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.000900)   SHOW TABLES
       +  SQL (0.000487)   SELECT version FROM `schema_migrations`
       +  SQL (0.000121)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000499)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.040667)   SHOW FIELDS FROM `users`
       +  SQL (0.126647)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000166)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000484)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000397)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000137)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000295)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:53:37', 'test 1', '2008-11-26 15:53:37')
       +  SQL (0.092421)   COMMIT
       +  SQL (0.000170)   BEGIN
       +  User Create (0.000316)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:53:37', 'test 2', '2008-11-19 15:53:37')
       +  SQL (0.048981)   COMMIT
       +  SQL (0.000332)   BEGIN
       +  User Create (0.000353)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:53:37', 'test 3', '2008-11-19 15:53:37')
       +  SQL (0.000789)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000907)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000550)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.003216)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000159)   ROLLBACK
       +  User Load (0.000276)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000267)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000992)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  User Destroy (0.000253)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000665)   COMMIT
       +  SQL (0.000191)   BEGIN
       +  User Destroy (0.000228)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000662)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Create (0.000273)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:53:37', 'test 1', '2008-11-26 15:53:37')
       +  SQL (0.000691)   COMMIT
       +  SQL (0.000176)   BEGIN
       +  User Create (0.000228)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:53:37', 'test 2', '2008-11-19 15:53:37')
       +  SQL (0.000594)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:53:37', 'test 3', '2008-11-19 15:53:37')
       +  SQL (0.000685)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000383)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000478)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000177)   ROLLBACK
       +  User Load (0.000257)   SELECT * FROM `users` 
       +  SQL (0.000143)   BEGIN
       +  User Destroy (0.000234)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000717)   COMMIT
       +  SQL (0.000177)   BEGIN
       +  User Destroy (0.000337)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000596)   COMMIT
       +  SQL (0.000181)   BEGIN
       +  User Destroy (0.000317)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000552)   COMMIT
       +  SQL (0.000120)   BEGIN
       +  User Create (0.000210)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:53:37', 'test 1', '2008-11-26 15:53:37')
       +  SQL (0.000647)   COMMIT
       +  SQL (0.000107)   BEGIN
       +  User Create (0.000183)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:53:37', 'test 2', '2008-11-19 15:53:37')
       +  SQL (0.000585)   COMMIT
       +  SQL (0.000100)   BEGIN
       +  User Create (0.000168)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:53:37', 'test 3', '2008-11-19 15:53:37')
       +  SQL (0.000656)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000391)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000488)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000184)   ROLLBACK
       +  User Load (0.000297)   SELECT * FROM `users` 
       +  SQL (0.000136)   BEGIN
       +  User Destroy (0.000245)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000800)   COMMIT
       +  SQL (0.000214)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000545)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Destroy (0.000327)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000671)   COMMIT
       +  SQL (0.000163)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000312)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000108)   COMMIT
       +  SQL (0.000087)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000247)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000105)   COMMIT
       +  SQL (0.000120)   BEGIN
       +  User Create (0.000193)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:53:37', 'test 1', '2008-11-26 15:53:37')
       +  SQL (0.000694)   COMMIT
       +  SQL (0.000093)   BEGIN
       +  User Create (0.000177)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:53:37', 'test 2', '2008-11-19 15:53:37')
       +  SQL (0.000826)   COMMIT
       +  SQL (0.000192)   BEGIN
       +  User Create (0.000306)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:53:37', 'test 3', '2008-11-19 15:53:37')
       +  SQL (0.000732)   COMMIT
       +  SQL (0.000140)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000439)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.001527)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000124)   COMMIT
       +  User Load (0.000245)   SELECT * FROM `users` 
       +  SQL (0.000105)   BEGIN
       +  User Destroy (0.000424)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000666)   COMMIT
       +  SQL (0.000099)   BEGIN
       +  User Destroy (0.000498)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000713)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000327)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000688)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000266)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:53:37', 'test 1', '2008-11-26 15:53:37')
       +  SQL (0.000731)   COMMIT
       +  SQL (0.000141)   BEGIN
       +  User Create (0.000261)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:53:37', 'test 2', '2008-11-19 15:53:37')
       +  SQL (0.000600)   COMMIT
       +  SQL (0.000110)   BEGIN
       +  User Create (0.000167)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:53:37', 'test 3', '2008-11-19 15:53:37')
       +  SQL (0.000636)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000389)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000459)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000172)   ROLLBACK
       +  User Load (0.000256)   SELECT * FROM `users` 
       +  SQL (0.000204)   BEGIN
       +  User Destroy (0.000182)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000710)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000265)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.001022)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Destroy (0.000279)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000727)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  User Create (0.000260)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:53:37', 'test 1', '2008-11-26 15:53:37')
       +  SQL (0.000728)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Create (0.000251)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:53:37', 'test 2', '2008-11-19 15:53:37')
       +  SQL (0.000582)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Create (0.000248)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:53:37', 'test 3', '2008-11-19 15:53:37')
       +  SQL (0.000723)   COMMIT
       +  SQL (0.000300)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000508)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000662)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000190)   ROLLBACK
       +  User Load (0.000322)   SELECT * FROM `users` 
       +  SQL (0.000107)   BEGIN
       +  User Destroy (0.000236)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000651)   COMMIT
       +  SQL (0.000109)   BEGIN
       +  User Destroy (0.000216)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000520)   COMMIT
       +  SQL (0.000137)   BEGIN
       +  User Destroy (0.000309)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000750)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  User Create (0.000274)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:53:37', 'test 1', '2008-11-26 15:53:37')
       +  SQL (0.000625)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  User Create (0.000237)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:53:37', 'test 2', '2008-11-19 15:53:37')
       +  SQL (0.000710)   COMMIT
       +  SQL (0.000131)   BEGIN
       +  User Create (0.000269)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:53:37', 'test 3', '2008-11-19 15:53:37')
       +  SQL (0.000846)   COMMIT
       +  SQL (0.000223)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000425)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000472)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000180)   ROLLBACK
       +  User Load (0.000264)   SELECT * FROM `users` 
       +  SQL (0.000133)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000759)   COMMIT
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000175)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000683)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000228)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000565)   COMMIT
       +  SQL (0.000274)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000594)   SHOW TABLES
       +  SQL (0.027239)   DROP TABLE `users`
       +  SQL (0.075146)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001490)   SHOW TABLES
       +  SQL (0.026907)   DROP TABLE `report_caches`
       +  SQL (0.144907)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.262929)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001428)   SHOW TABLES
       +  SQL (0.000254)   SELECT version FROM `schema_migrations`
       +  SQL (0.000123)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000476)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000109)   COMMIT
       +  SQL (0.000110)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000228)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000310)   COMMIT
       +  User Columns (0.051066)   SHOW FIELDS FROM `users`
       +  SQL (0.069999)   BEGIN
       +  User Create (0.000314)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:53:46', 'test 1', '2008-11-26 15:53:46')
       +  SQL (0.071769)   COMMIT
       +  SQL (0.000133)   BEGIN
       +  User Create (0.000286)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:53:46', 'test 2', '2008-11-19 15:53:46')
       +  SQL (0.090437)   COMMIT
       +  SQL (0.000178)   BEGIN
       +  User Create (0.000289)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:53:46', 'test 3', '2008-11-19 15:53:46')
       +  SQL (0.051346)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000410)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.004891)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000114)   COMMIT
       +  User Load (0.000252)   SELECT * FROM `users` 
       +  SQL (0.000098)   BEGIN
       +  User Destroy (0.000223)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.044559)   COMMIT
       +  SQL (0.000172)   BEGIN
       +  User Destroy (0.000371)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000651)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  User Destroy (0.000251)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000820)   COMMIT
       +  SQL (0.000156)   BEGIN
       +  User Create (0.000272)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:53:46', 'test 1', '2008-11-26 15:53:46')
       +  SQL (0.000623)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Create (0.000283)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:53:46', 'test 2', '2008-11-19 15:53:46')
       +  SQL (0.000637)   COMMIT
       +  SQL (0.000217)   BEGIN
       +  User Create (0.000282)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:53:46', 'test 3', '2008-11-19 15:53:46')
       +  SQL (0.000645)   COMMIT
       +  SQL (0.000182)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000425)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000461)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002296)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000193)   ROLLBACK
       +  User Load (0.000243)   SELECT * FROM `users` 
       +  SQL (0.000102)   BEGIN
       +  User Destroy (0.000552)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000589)   COMMIT
       +  SQL (0.000189)   BEGIN
       +  User Destroy (0.000476)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.001237)   COMMIT
       +  SQL (0.000210)   BEGIN
       +  User Destroy (0.000299)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000668)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Create (0.000260)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:53:46', 'test 1', '2008-11-26 15:53:46')
       +  SQL (0.000698)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Create (0.000305)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:53:46', 'test 2', '2008-11-19 15:53:46')
       +  SQL (0.000848)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Create (0.000243)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:53:46', 'test 3', '2008-11-19 15:53:46')
       +  SQL (0.000593)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000387)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000467)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000217)   ROLLBACK
       +  User Load (0.000441)   SELECT * FROM `users` 
       +  SQL (0.000103)   BEGIN
       +  User Destroy (0.000258)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000627)   COMMIT
       +  SQL (0.000127)   BEGIN
       +  User Destroy (0.000157)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000584)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  User Destroy (0.000285)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000666)   COMMIT
       +  SQL (0.000172)   BEGIN
       +  User Create (0.000273)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:53:46', 'test 1', '2008-11-26 15:53:46')
       +  SQL (0.000826)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000248)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:53:46', 'test 2', '2008-11-19 15:53:46')
       +  SQL (0.000506)   COMMIT
       +  SQL (0.000115)   BEGIN
       +  User Create (0.000205)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:53:46', 'test 3', '2008-11-19 15:53:46')
       +  SQL (0.000599)   COMMIT
       +  SQL (0.000091)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000305)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000326)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000121)   ROLLBACK
       +  User Load (0.000244)   SELECT * FROM `users` 
       +  SQL (0.000072)   BEGIN
       +  User Destroy (0.000196)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000879)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  User Destroy (0.000247)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000632)   COMMIT
       +  SQL (0.000124)   BEGIN
       +  User Destroy (0.000249)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000551)   COMMIT
       +  SQL (0.000231)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000580)   SHOW TABLES
       +  SQL (0.030749)   DROP TABLE `users`
       +  SQL (0.228261)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000724)   SHOW TABLES
       +  SQL (0.002186)   DROP TABLE `report_caches`
       +  SQL (0.232105)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.134066)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.000681)   SHOW TABLES
       +  SQL (0.000272)   SELECT version FROM `schema_migrations`
       +  SQL (0.000120)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000518)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.002562)   SHOW FIELDS FROM `users`
       +  SQL (0.000341)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000107)   COMMIT
       +  SQL (0.000076)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000255)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000232)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000102)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Create (0.000231)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:55:20', 'test 1', '2008-11-26 15:55:20')
       +  SQL (0.000753)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Create (0.000245)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:55:20', 'test 2', '2008-11-19 15:55:20')
       +  SQL (0.000697)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  User Create (0.000261)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:55:20', 'test 3', '2008-11-19 15:55:20')
       +  SQL (0.000701)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000404)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000636)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002447)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000173)   ROLLBACK
       +  User Load (0.000387)   SELECT * FROM `users` 
       +  SQL (0.000086)   BEGIN
       +  User Destroy (0.000196)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000710)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  User Destroy (0.000275)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.001345)   COMMIT
       +  SQL (0.000409)   BEGIN
       +  User Destroy (0.000309)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000618)   COMMIT
       +  SQL (0.000178)   BEGIN
       +  User Create (0.000264)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:55:20', 'test 1', '2008-11-26 15:55:20')
       +  SQL (0.000564)   COMMIT
       +  SQL (0.000135)   BEGIN
       +  User Create (0.000212)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:55:20', 'test 2', '2008-11-19 15:55:20')
       +  SQL (0.000604)   COMMIT
       +  SQL (0.000201)   BEGIN
       +  User Create (0.000254)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:55:20', 'test 3', '2008-11-19 15:55:20')
       +  SQL (0.000762)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000408)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000571)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000178)   ROLLBACK
       +  User Load (0.000261)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000227)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000750)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000233)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000663)   COMMIT
       +  SQL (0.000230)   BEGIN
       +  User Destroy (0.000373)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000643)   COMMIT
       +  SQL (0.000299)   BEGIN
       +  User Create (0.000353)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:55:20', 'test 1', '2008-11-26 15:55:20')
       +  SQL (0.000749)   COMMIT
       +  SQL (0.000127)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:55:20', 'test 2', '2008-11-19 15:55:20')
       +  SQL (0.000565)   COMMIT
       +  SQL (0.000111)   BEGIN
       +  User Create (0.000493)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:55:20', 'test 3', '2008-11-19 15:55:20')
       +  SQL (0.000613)   COMMIT
       +  SQL (0.000104)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000312)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000360)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000136)   ROLLBACK
       +  User Load (0.000193)   SELECT * FROM `users` 
       +  SQL (0.000100)   BEGIN
       +  User Destroy (0.000172)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000637)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000554)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Destroy (0.000333)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000556)   COMMIT
       +  SQL (0.000399)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000382)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000113)   COMMIT
       +  SQL (0.000113)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000242)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000107)   COMMIT
       +  SQL (0.000119)   BEGIN
       +  User Create (0.000283)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:55:20', 'test 1', '2008-11-26 15:55:20')
       +  SQL (0.000722)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Create (0.000240)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:55:20', 'test 2', '2008-11-19 15:55:20')
       +  SQL (0.000714)   COMMIT
       +  SQL (0.000127)   BEGIN
       +  User Create (0.000257)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:55:20', 'test 3', '2008-11-19 15:55:20')
       +  SQL (0.000695)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000383)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000384)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000134)   COMMIT
       +  User Load (0.000231)   SELECT * FROM `users` 
       +  SQL (0.000129)   BEGIN
       +  User Destroy (0.000222)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000726)   COMMIT
       +  SQL (0.000194)   BEGIN
       +  User Destroy (0.000241)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000623)   COMMIT
       +  SQL (0.000194)   BEGIN
       +  User Destroy (0.000268)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000666)   COMMIT
       +  SQL (0.000176)   BEGIN
       +  User Create (0.000267)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:55:20', 'test 1', '2008-11-26 15:55:20')
       +  SQL (0.000674)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Create (0.000251)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:55:20', 'test 2', '2008-11-19 15:55:20')
       +  SQL (0.000750)   COMMIT
       +  SQL (0.000348)   BEGIN
       +  User Create (0.000410)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:55:20', 'test 3', '2008-11-19 15:55:20')
       +  SQL (0.000601)   COMMIT
       +  SQL (0.000116)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000359)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000621)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000173)   ROLLBACK
       +  User Load (0.000265)   SELECT * FROM `users` 
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000179)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.001100)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Destroy (0.000153)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000610)   COMMIT
       +  SQL (0.000314)   BEGIN
       +  User Destroy (0.000250)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000706)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000268)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:55:20', 'test 1', '2008-11-26 15:55:20')
       +  SQL (0.000766)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  User Create (0.000260)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:55:20', 'test 2', '2008-11-19 15:55:20')
       +  SQL (0.000723)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000260)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:55:20', 'test 3', '2008-11-19 15:55:20')
       +  SQL (0.000609)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000416)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000485)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000184)   ROLLBACK
       +  User Load (0.000270)   SELECT * FROM `users` 
       +  SQL (0.000130)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000785)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000629)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000297)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.001041)   COMMIT
       +  SQL (0.000187)   BEGIN
       +  User Create (0.000339)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:55:20', 'test 1', '2008-11-26 15:55:20')
       +  SQL (0.000718)   COMMIT
       +  SQL (0.000126)   BEGIN
       +  User Create (0.000475)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:55:20', 'test 2', '2008-11-19 15:55:20')
       +  SQL (0.000601)   COMMIT
       +  SQL (0.000106)   BEGIN
       +  User Create (0.000531)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:55:20', 'test 3', '2008-11-19 15:55:20')
       +  SQL (0.000510)   COMMIT
       +  SQL (0.000130)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000303)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000387)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000137)   ROLLBACK
       +  User Load (0.000191)   SELECT * FROM `users` 
       +  SQL (0.000099)   BEGIN
       +  User Destroy (0.000173)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000631)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  User Destroy (0.000237)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000647)   COMMIT
       +  SQL (0.000219)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000661)   COMMIT
       +  SQL (0.000280)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000987)   SHOW TABLES
       +  SQL (0.027992)   DROP TABLE `users`
       +  SQL (0.086022)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001527)   SHOW TABLES
       +  SQL (0.002704)   DROP TABLE `report_caches`
       +  SQL (0.163131)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.135731)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001534)   SHOW TABLES
       +  SQL (0.003530)   SELECT version FROM `schema_migrations`
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.003106)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000269)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000550)   SHOW TABLES
       +  SQL (0.002758)   DROP TABLE `users`
       +  SQL (0.081580)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.003431)   SHOW TABLES
       +  SQL (0.001928)   DROP TABLE `report_caches`
       +  SQL (0.174118)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.170593)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001274)   SHOW TABLES
       +  SQL (0.000271)   SELECT version FROM `schema_migrations`
       +  SQL (0.000120)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000505)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000109)   COMMIT
       +  SQL (0.000104)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000230)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000086)   COMMIT
       +  User Columns (0.001884)   SHOW FIELDS FROM `users`
       +  SQL (0.000116)   BEGIN
       +  User Create (0.000205)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:57:11', 'test 1', '2008-11-26 15:57:11')
       +  SQL (0.000707)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  User Create (0.000233)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:57:11', 'test 2', '2008-11-19 15:57:11')
       +  SQL (0.000708)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000275)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:57:11', 'test 3', '2008-11-19 15:57:11')
       +  SQL (0.000723)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000387)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000469)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000206)   COMMIT
       +  User Load (0.000253)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000672)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000335)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000735)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000550)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000249)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:57:11', 'test 1', '2008-11-26 15:57:11')
       +  SQL (0.000747)   COMMIT
       +  SQL (0.000220)   BEGIN
       +  User Create (0.000315)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:57:11', 'test 2', '2008-11-19 15:57:11')
       +  SQL (0.000690)   COMMIT
       +  SQL (0.000226)   BEGIN
       +  User Create (0.000234)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:57:11', 'test 3', '2008-11-19 15:57:11')
       +  SQL (0.000681)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000407)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000493)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000579)   SHOW TABLES
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002724)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000286)   ROLLBACK
       +  User Load (0.000278)   SELECT * FROM `users` 
       +  SQL (0.000160)   BEGIN
       +  User Destroy (0.000203)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000952)   COMMIT
       +  SQL (0.000181)   BEGIN
       +  User Destroy (0.000192)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000657)   COMMIT
       +  SQL (0.000201)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000760)   COMMIT
       +  SQL (0.000146)   BEGIN
       +  User Create (0.000291)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:57:11', 'test 1', '2008-11-26 15:57:11')
       +  SQL (0.000933)   COMMIT
       +  SQL (0.000122)   BEGIN
       +  User Create (0.000185)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:57:11', 'test 2', '2008-11-19 15:57:11')
       +  SQL (0.000665)   COMMIT
       +  SQL (0.000215)   BEGIN
       +  User Create (0.000253)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:57:11', 'test 3', '2008-11-19 15:57:11')
       +  SQL (0.000703)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000389)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000535)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000684)   SHOW TABLES
       +  SQL (0.000178)   ROLLBACK
       +  User Load (0.000556)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000295)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000727)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000743)   COMMIT
       +  SQL (0.000217)   BEGIN
       +  User Destroy (0.000439)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000774)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000230)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:57:11', 'test 1', '2008-11-26 15:57:11')
       +  SQL (0.001179)   COMMIT
       +  SQL (0.000132)   BEGIN
       +  User Create (0.000259)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:57:11', 'test 2', '2008-11-19 15:57:11')
       +  SQL (0.000721)   COMMIT
       +  SQL (0.000182)   BEGIN
       +  User Create (0.000238)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:57:11', 'test 3', '2008-11-19 15:57:11')
       +  SQL (0.000673)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000385)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000540)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000823)   SHOW TABLES
       +  SQL (0.000185)   ROLLBACK
       +  User Load (0.000268)   SELECT * FROM `users` 
       +  SQL (0.000093)   BEGIN
       +  User Destroy (0.000236)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000882)   COMMIT
       +  SQL (0.000134)   BEGIN
       +  User Destroy (0.000303)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000778)   COMMIT
       +  SQL (0.000241)   BEGIN
       +  User Destroy (0.000421)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000695)   COMMIT
       +  SQL (0.000324)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000835)   SHOW TABLES
       +  SQL (0.002284)   DROP TABLE `users`
       +  SQL (0.129556)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000738)   SHOW TABLES
       +  SQL (0.001836)   DROP TABLE `report_caches`
       +  SQL (0.207637)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.146004)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.000919)   SHOW TABLES
       +  SQL (0.000300)   SELECT version FROM `schema_migrations`
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.040529)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000266)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000605)   SHOW TABLES
       +  SQL (0.001979)   DROP TABLE `users`
       +  SQL (0.124369)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.002843)   SHOW TABLES
       +  SQL (0.001881)   DROP TABLE `report_caches`
       +  SQL (0.134857)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.369637)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.002002)   SHOW TABLES
       +  SQL (0.004101)   SELECT version FROM `schema_migrations`
       +  SQL (0.000122)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000484)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000110)   COMMIT
       +  SQL (0.000110)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000231)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000100)   COMMIT
       +  User Columns (0.060797)   SHOW FIELDS FROM `users`
       +  SQL (0.060125)   BEGIN
       +  User Create (0.000461)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:57:41', 'test 1', '2008-11-26 15:57:41')
       +  SQL (0.066635)   COMMIT
       +  SQL (0.000517)   BEGIN
       +  User Create (0.001188)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:57:41', 'test 2', '2008-11-19 15:57:41')
       +  SQL (0.038437)   COMMIT
       +  SQL (0.000178)   BEGIN
       +  User Create (0.000357)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:57:41', 'test 3', '2008-11-19 15:57:41')
       +  SQL (0.000777)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000599)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000446)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000180)   COMMIT
       +  User Load (0.000208)   SELECT * FROM `users` 
       +  SQL (0.000095)   BEGIN
       +  User Destroy (0.000255)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000860)   COMMIT
       +  SQL (0.000302)   BEGIN
       +  User Destroy (0.000277)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000686)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.001317)   COMMIT
       +  SQL (0.000179)   BEGIN
       +  User Create (0.000284)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:57:41', 'test 1', '2008-11-26 15:57:41')
       +  SQL (0.000687)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Create (0.000275)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:57:41', 'test 2', '2008-11-19 15:57:41')
       +  SQL (0.000727)   COMMIT
       +  SQL (0.000216)   BEGIN
       +  User Create (0.000249)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:57:41', 'test 3', '2008-11-19 15:57:41')
       +  SQL (0.000662)   COMMIT
       +  SQL (0.000211)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000390)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000524)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000690)   SHOW TABLES
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002657)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000229)   ROLLBACK
       +  User Load (0.000256)   SELECT * FROM `users` 
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000182)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000606)   COMMIT
       +  SQL (0.000286)   BEGIN
       +  User Destroy (0.000254)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000553)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Destroy (0.000242)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000593)   COMMIT
       +  SQL (0.000156)   BEGIN
       +  User Create (0.000277)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:57:41', 'test 1', '2008-11-26 15:57:41')
       +  SQL (0.000668)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Create (0.000241)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:57:41', 'test 2', '2008-11-19 15:57:41')
       +  SQL (0.000683)   COMMIT
       +  SQL (0.000185)   BEGIN
       +  User Create (0.000254)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:57:41', 'test 3', '2008-11-19 15:57:41')
       +  SQL (0.000691)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000390)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000457)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000598)   SHOW TABLES
       +  SQL (0.000181)   ROLLBACK
       +  User Load (0.000253)   SELECT * FROM `users` 
       +  SQL (0.000107)   BEGIN
       +  User Destroy (0.000343)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000853)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  User Destroy (0.000265)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000809)   COMMIT
       +  SQL (0.000201)   BEGIN
       +  User Destroy (0.000544)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.002196)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000252)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:57:41', 'test 1', '2008-11-26 15:57:41')
       +  SQL (0.000544)   COMMIT
       +  SQL (0.000101)   BEGIN
       +  User Create (0.000155)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:57:41', 'test 2', '2008-11-19 15:57:41')
       +  SQL (0.000586)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Create (0.000362)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:57:41', 'test 3', '2008-11-19 15:57:41')
       +  SQL (0.000692)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000381)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000495)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000610)   SHOW TABLES
       +  SQL (0.000165)   ROLLBACK
       +  User Load (0.000275)   SELECT * FROM `users` 
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000285)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000805)   COMMIT
       +  SQL (0.000082)   BEGIN
       +  User Destroy (0.000207)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000586)   COMMIT
       +  SQL (0.000216)   BEGIN
       +  User Destroy (0.000238)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000682)   COMMIT
       +  SQL (0.000305)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000583)   SHOW TABLES
       +  SQL (0.002450)   DROP TABLE `users`
       +  SQL (0.101781)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001592)   SHOW TABLES
       +  SQL (0.043441)   DROP TABLE `report_caches`
       +  SQL (0.196758)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.148747)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001938)   SHOW TABLES
       +  SQL (0.001235)   SELECT version FROM `schema_migrations`
       +  SQL (0.000122)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000480)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000110)   COMMIT
       +  SQL (0.000105)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000224)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000104)   COMMIT
       +  User Columns (0.045662)   SHOW FIELDS FROM `users`
       +  SQL (0.038462)   BEGIN
       +  User Create (0.000322)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:57:52', 'test 1', '2008-11-26 15:57:52')
       +  SQL (0.070394)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Create (0.000346)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:57:52', 'test 2', '2008-11-19 15:57:52')
       +  SQL (0.045010)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000307)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:57:52', 'test 3', '2008-11-19 15:57:52')
       +  SQL (0.067477)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000881)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000373)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000127)   COMMIT
       +  User Load (0.000209)   SELECT * FROM `users` 
       +  SQL (0.000099)   BEGIN
       +  User Destroy (0.000198)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.047626)   COMMIT
       +  SQL (0.000227)   BEGIN
       +  User Destroy (0.000319)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.071565)   COMMIT
       +  SQL (0.000106)   BEGIN
       +  User Destroy (0.000241)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.080643)   COMMIT
       +  SQL (0.000843)   BEGIN
       +  User Create (0.001424)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:57:52', 'test 1', '2008-11-26 15:57:52')
       +  SQL (0.047281)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000269)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:57:52', 'test 2', '2008-11-19 15:57:52')
       +  SQL (0.000643)   COMMIT
       +  SQL (0.000133)   BEGIN
       +  User Create (0.001260)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:57:52', 'test 3', '2008-11-19 15:57:52')
       +  SQL (0.000782)   COMMIT
       +  SQL (0.000111)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000517)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000459)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.001818)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000157)   ROLLBACK
       +  User Load (0.000219)   SELECT * FROM `users` 
       +  SQL (0.000100)   BEGIN
       +  User Destroy (0.000182)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000660)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000571)   COMMIT
       +  SQL (0.000156)   BEGIN
       +  User Destroy (0.000243)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000513)   COMMIT
       +  SQL (0.000178)   BEGIN
       +  User Create (0.000277)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:57:52', 'test 1', '2008-11-26 15:57:52')
       +  SQL (0.000588)   COMMIT
       +  SQL (0.000173)   BEGIN
       +  User Create (0.000267)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:57:52', 'test 2', '2008-11-19 15:57:52')
       +  SQL (0.000603)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  User Create (0.000249)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:57:52', 'test 3', '2008-11-19 15:57:52')
       +  SQL (0.000661)   COMMIT
       +  SQL (0.000235)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000457)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000537)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000175)   ROLLBACK
       +  User Load (0.000313)   SELECT * FROM `users` 
       +  SQL (0.000147)   BEGIN
       +  User Destroy (0.000250)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000734)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  User Destroy (0.000243)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000588)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Destroy (0.000554)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000783)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000273)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:57:52', 'test 1', '2008-11-26 15:57:52')
       +  SQL (0.000682)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  User Create (0.000310)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:57:52', 'test 2', '2008-11-19 15:57:52')
       +  SQL (0.001272)   COMMIT
       +  SQL (0.000192)   BEGIN
       +  User Create (0.000312)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:57:52', 'test 3', '2008-11-19 15:57:52')
       +  SQL (0.000684)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000393)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000471)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000179)   ROLLBACK
       +  User Load (0.000306)   SELECT * FROM `users` 
       +  SQL (0.000104)   BEGIN
       +  User Destroy (0.000184)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000645)   COMMIT
       +  SQL (0.000217)   BEGIN
       +  User Destroy (0.000323)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000568)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Destroy (0.000258)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000606)   COMMIT
       +  SQL (0.000275)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000592)   SHOW TABLES
       +  SQL (0.017691)   DROP TABLE `users`
       +  SQL (0.349274)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000824)   SHOW TABLES
       +  SQL (0.002225)   DROP TABLE `report_caches`
       +  SQL (0.178889)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.180796)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001419)   SHOW TABLES
       +  SQL (0.001132)   SELECT version FROM `schema_migrations`
       +  SQL (0.000135)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000515)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000088)   COMMIT
       +  SQL (0.000107)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000241)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000101)   COMMIT
       +  User Columns (0.001979)   SHOW FIELDS FROM `users`
       +  SQL (0.000132)   BEGIN
       +  User Create (0.000208)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:58:08', 'test 1', '2008-11-26 15:58:08')
       +  SQL (0.000747)   COMMIT
       +  SQL (0.000105)   BEGIN
       +  User Create (0.000158)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:58:08', 'test 2', '2008-11-19 15:58:08')
       +  SQL (0.000727)   COMMIT
       +  SQL (0.000218)   BEGIN
       +  User Create (0.000349)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:58:08', 'test 3', '2008-11-19 15:58:08')
       +  SQL (0.000639)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000391)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000451)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000150)   COMMIT
       +  User Load (0.000261)   SELECT * FROM `users` 
       +  SQL (0.000145)   BEGIN
       +  User Destroy (0.000234)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000692)   COMMIT
       +  SQL (0.000259)   BEGIN
       +  User Destroy (0.000249)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000691)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Destroy (0.000224)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000593)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Create (0.000278)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:58:08', 'test 1', '2008-11-26 15:58:08')
       +  SQL (0.000720)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Create (0.000243)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:58:08', 'test 2', '2008-11-19 15:58:08')
       +  SQL (0.000592)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000962)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:58:08', 'test 3', '2008-11-19 15:58:08')
       +  SQL (0.000610)   COMMIT
       +  SQL (0.000111)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000354)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000477)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002505)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000155)   ROLLBACK
       +  User Load (0.000237)   SELECT * FROM `users` 
       +  SQL (0.000103)   BEGIN
       +  User Destroy (0.000181)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000550)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000233)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000698)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Destroy (0.000225)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.001020)   COMMIT
       +  SQL (0.000171)   BEGIN
       +  User Create (0.000263)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:58:08', 'test 1', '2008-11-26 15:58:08')
       +  SQL (0.000580)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Create (0.000251)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:58:08', 'test 2', '2008-11-19 15:58:08')
       +  SQL (0.000681)   COMMIT
       +  SQL (0.000179)   BEGIN
       +  User Create (0.000257)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:58:08', 'test 3', '2008-11-19 15:58:08')
       +  SQL (0.001136)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000414)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000505)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000188)   ROLLBACK
       +  User Load (0.000292)   SELECT * FROM `users` 
       +  SQL (0.000120)   BEGIN
       +  User Destroy (0.000301)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000648)   COMMIT
       +  SQL (0.000104)   BEGIN
       +  User Destroy (0.000215)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000749)   COMMIT
       +  SQL (0.000074)   BEGIN
       +  User Destroy (0.000215)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000621)   COMMIT
       +  SQL (0.000120)   BEGIN
       +  User Create (0.000249)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:58:09', 'test 1', '2008-11-26 15:58:09')
       +  SQL (0.000738)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Create (0.000228)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:58:09', 'test 2', '2008-11-19 15:58:09')
       +  SQL (0.000626)   COMMIT
       +  SQL (0.000125)   BEGIN
       +  User Create (0.000250)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:58:09', 'test 3', '2008-11-19 15:58:09')
       +  SQL (0.000716)   COMMIT
       +  SQL (0.000322)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000409)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000499)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000274)   ROLLBACK
       +  User Load (0.000288)   SELECT * FROM `users` 
       +  SQL (0.000134)   BEGIN
       +  User Destroy (0.000189)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000597)   COMMIT
       +  SQL (0.000168)   BEGIN
       +  User Destroy (0.000153)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000619)   COMMIT
       +  SQL (0.000183)   BEGIN
       +  User Destroy (0.000420)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000701)   COMMIT
       +  SQL (0.000268)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000581)   SHOW TABLES
       +  SQL (0.002263)   DROP TABLE `users`
       +  SQL (0.120156)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.002191)   SHOW TABLES
       +  SQL (0.001795)   DROP TABLE `report_caches`
       +  SQL (0.158116)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.125774)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001499)   SHOW TABLES
       +  SQL (0.000934)   SELECT version FROM `schema_migrations`
       +  SQL (0.000122)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000531)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000108)   COMMIT
       +  SQL (0.000101)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000221)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000096)   COMMIT
       +  User Columns (0.002862)   SHOW FIELDS FROM `users`
       +  SQL (0.000152)   BEGIN
       +  User Create (0.000324)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:58:23', 'test 1', '2008-11-26 15:58:23')
       +  SQL (0.000764)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  User Create (0.000945)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:58:23', 'test 2', '2008-11-19 15:58:23')
       +  SQL (0.000764)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000277)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:58:23', 'test 3', '2008-11-19 15:58:23')
       +  SQL (0.000654)   COMMIT
       +  SQL (0.000140)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000375)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000435)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000145)   COMMIT
       +  User Load (0.000238)   SELECT * FROM `users` 
       +  SQL (0.000128)   BEGIN
       +  User Destroy (0.000181)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000998)   COMMIT
       +  SQL (0.000104)   BEGIN
       +  User Destroy (0.000163)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000567)   COMMIT
       +  SQL (0.000210)   BEGIN
       +  User Destroy (0.000232)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000636)   COMMIT
       +  SQL (0.000134)   BEGIN
       +  User Create (0.000222)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:58:23', 'test 1', '2008-11-26 15:58:23')
       +  SQL (0.000513)   COMMIT
       +  SQL (0.000105)   BEGIN
       +  User Create (0.000217)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:58:23', 'test 2', '2008-11-19 15:58:23')
       +  SQL (0.002144)   COMMIT
       +  SQL (0.000131)   BEGIN
       +  User Create (0.000212)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:58:23', 'test 3', '2008-11-19 15:58:23')
       +  SQL (0.000655)   COMMIT
       +  SQL (0.000077)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000286)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000447)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.004174)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.001992)   ROLLBACK
       +  User Load (0.003333)   SELECT * FROM `users` 
       +  SQL (0.000106)   BEGIN
       +  User Destroy (0.000201)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.002230)   COMMIT
       +  SQL (0.000704)   BEGIN
       +  User Destroy (0.000215)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000538)   COMMIT
       +  SQL (0.000069)   BEGIN
       +  User Destroy (0.000162)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000475)   COMMIT
       +  SQL (0.000124)   BEGIN
       +  User Create (0.000224)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:58:23', 'test 1', '2008-11-26 15:58:23')
       +  SQL (0.000545)   COMMIT
       +  SQL (0.000097)   BEGIN
       +  User Create (0.000203)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:58:23', 'test 2', '2008-11-19 15:58:23')
       +  SQL (0.000510)   COMMIT
       +  SQL (0.000081)   BEGIN
       +  User Create (0.000211)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:58:23', 'test 3', '2008-11-19 15:58:23')
       +  SQL (0.000543)   COMMIT
       +  SQL (0.000071)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000290)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000439)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000163)   ROLLBACK
       +  User Load (0.000509)   SELECT * FROM `users` 
       +  SQL (0.001185)   BEGIN
       +  User Destroy (0.000288)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000619)   COMMIT
       +  SQL (0.000087)   BEGIN
       +  User Destroy (0.000197)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000539)   COMMIT
       +  SQL (0.000091)   BEGIN
       +  User Destroy (0.000437)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000531)   COMMIT
       +  SQL (0.000118)   BEGIN
       +  User Create (0.000202)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:58:23', 'test 1', '2008-11-26 15:58:23')
       +  SQL (0.114154)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Create (0.000304)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:58:23', 'test 2', '2008-11-19 15:58:23')
       +  SQL (0.061238)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  User Create (0.000296)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:58:23', 'test 3', '2008-11-19 15:58:23')
       +  SQL (0.089750)   COMMIT
       +  SQL (0.000176)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000447)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000552)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000182)   ROLLBACK
       +  User Load (0.000299)   SELECT * FROM `users` 
       +  SQL (0.000105)   BEGIN
       +  User Destroy (0.000183)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.055973)   COMMIT
       +  SQL (0.000406)   BEGIN
       +  User Destroy (0.000321)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.080695)   COMMIT
       +  SQL (0.000242)   BEGIN
       +  User Destroy (0.000324)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.079216)   COMMIT
       +  SQL (0.000302)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000797)   SHOW TABLES
       +  SQL (0.104955)   DROP TABLE `users`
       +  SQL (0.188765)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000783)   SHOW TABLES
       +  SQL (0.086476)   DROP TABLE `report_caches`
       +  SQL (0.329482)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.203078)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001987)   SHOW TABLES
       +  SQL (0.003045)   SELECT version FROM `schema_migrations`
       +  SQL (0.000122)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000468)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000108)   COMMIT
       +  SQL (0.000103)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000223)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000101)   COMMIT
       +  User Columns (0.003066)   SHOW FIELDS FROM `users`
       +  SQL (0.000191)   BEGIN
       +  User Create (0.000301)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:58:40', 'test 1', '2008-11-26 15:58:40')
       +  SQL (0.000663)   COMMIT
       +  SQL (0.000132)   BEGIN
       +  User Create (0.000596)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:58:40', 'test 2', '2008-11-19 15:58:40')
       +  SQL (0.000745)   COMMIT
       +  SQL (0.000161)   BEGIN
       +  User Create (0.000236)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:58:40', 'test 3', '2008-11-19 15:58:40')
       +  SQL (0.000728)   COMMIT
       +  SQL (0.000112)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000426)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000400)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000137)   COMMIT
       +  User Load (0.000230)   SELECT * FROM `users` 
       +  SQL (0.000130)   BEGIN
       +  User Destroy (0.000225)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000702)   COMMIT
       +  SQL (0.000099)   BEGIN
       +  User Destroy (0.000151)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000560)   COMMIT
       +  SQL (0.000230)   BEGIN
       +  User Destroy (0.000238)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000550)   COMMIT
       +  SQL (0.000145)   BEGIN
       +  User Create (0.000236)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:58:40', 'test 1', '2008-11-26 15:58:40')
       +  SQL (0.000663)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Create (0.000230)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:58:40', 'test 2', '2008-11-19 15:58:40')
       +  SQL (0.000658)   COMMIT
       +  SQL (0.000215)   BEGIN
       +  User Create (0.000236)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:58:40', 'test 3', '2008-11-19 15:58:40')
       +  SQL (0.000650)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000388)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000520)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002423)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000190)   ROLLBACK
       +  User Load (0.000289)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000204)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000582)   COMMIT
       +  SQL (0.000064)   BEGIN
       +  User Destroy (0.000206)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000602)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000727)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  User Create (0.000256)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:58:40', 'test 1', '2008-11-26 15:58:40')
       +  SQL (0.000727)   COMMIT
       +  SQL (0.000170)   BEGIN
       +  User Create (0.000234)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:58:40', 'test 2', '2008-11-19 15:58:40')
       +  SQL (0.000686)   COMMIT
       +  SQL (0.000222)   BEGIN
       +  User Create (0.000241)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:58:40', 'test 3', '2008-11-19 15:58:40')
       +  SQL (0.000604)   COMMIT
       +  SQL (0.000156)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000469)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000464)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000296)   ROLLBACK
       +  User Load (0.000433)   SELECT * FROM `users` 
       +  SQL (0.000145)   BEGIN
       +  User Destroy (0.000245)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000741)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000252)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000678)   COMMIT
       +  SQL (0.000129)   BEGIN
       +  User Destroy (0.000305)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000765)   COMMIT
       +  SQL (0.000145)   BEGIN
       +  User Create (0.000234)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:58:40', 'test 1', '2008-11-26 15:58:40')
       +  SQL (0.000566)   COMMIT
       +  SQL (0.000146)   BEGIN
       +  User Create (0.000257)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:58:40', 'test 2', '2008-11-19 15:58:40')
       +  SQL (0.001170)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000261)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:58:40', 'test 3', '2008-11-19 15:58:40')
       +  SQL (0.000664)   COMMIT
       +  SQL (0.000210)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000393)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000493)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000239)   ROLLBACK
       +  User Load (0.000292)   SELECT * FROM `users` 
       +  SQL (0.000121)   BEGIN
       +  User Destroy (0.000183)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000881)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000245)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000627)   COMMIT
       +  SQL (0.000146)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000700)   COMMIT
       +  SQL (0.000268)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000637)   SHOW TABLES
       +  SQL (0.001823)   DROP TABLE `users`
       +  SQL (0.118813)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000810)   SHOW TABLES
       +  SQL (0.001948)   DROP TABLE `report_caches`
       +  SQL (0.176476)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.147422)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001523)   SHOW TABLES
       +  SQL (0.003369)   SELECT version FROM `schema_migrations`
       +  SQL (0.000099)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000656)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000097)   COMMIT
       +  SQL (0.000090)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000620)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000087)   COMMIT
       +  User Columns (0.002627)   SHOW FIELDS FROM `users`
       +  SQL (0.000131)   BEGIN
       +  User Create (0.000267)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:58:52', 'test 1', '2008-11-26 15:58:52')
       +  SQL (0.000754)   COMMIT
       +  SQL (0.000112)   BEGIN
       +  User Create (0.000249)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:58:52', 'test 2', '2008-11-19 15:58:52')
       +  SQL (0.000524)   COMMIT
       +  SQL (0.000614)   BEGIN
       +  User Create (0.000402)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:58:52', 'test 3', '2008-11-19 15:58:52')
       +  SQL (0.000768)   COMMIT
       +  SQL (0.000281)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000305)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000291)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000112)   COMMIT
       +  User Load (0.000167)   SELECT * FROM `users` 
       +  SQL (0.000099)   BEGIN
       +  User Destroy (0.000172)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.077674)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Destroy (0.000311)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.053106)   COMMIT
       +  SQL (0.000180)   BEGIN
       +  User Destroy (0.000352)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.096267)   COMMIT
       +  SQL (0.000175)   BEGIN
       +  User Create (0.000290)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:58:52', 'test 1', '2008-11-26 15:58:52')
       +  SQL (0.062770)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000272)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:58:52', 'test 2', '2008-11-19 15:58:52')
       +  SQL (0.062338)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000395)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:58:52', 'test 3', '2008-11-19 15:58:52')
       +  SQL (0.069764)   COMMIT
       +  SQL (0.000288)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000549)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000639)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.116550)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000377)   ROLLBACK
       +  User Load (0.000286)   SELECT * FROM `users` 
       +  SQL (0.000108)   BEGIN
       +  User Destroy (0.002696)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.022546)   COMMIT
       +  SQL (0.000188)   BEGIN
       +  User Destroy (0.000334)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000859)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000661)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000241)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:58:52', 'test 1', '2008-11-26 15:58:52')
       +  SQL (0.001325)   COMMIT
       +  SQL (0.000875)   BEGIN
       +  User Create (0.000277)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:58:52', 'test 2', '2008-11-19 15:58:52')
       +  SQL (0.000589)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Create (0.000234)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:58:52', 'test 3', '2008-11-19 15:58:52')
       +  SQL (0.000757)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000449)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000477)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000203)   ROLLBACK
       +  User Load (0.000323)   SELECT * FROM `users` 
       +  SQL (0.000113)   BEGIN
       +  User Destroy (0.000282)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000726)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000326)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000648)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000281)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000649)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000263)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 15:58:52', 'test 1', '2008-11-26 15:58:52')
       +  SQL (0.000621)   COMMIT
       +  SQL (0.000190)   BEGIN
       +  User Create (0.000152)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 15:58:52', 'test 2', '2008-11-19 15:58:52')
       +  SQL (0.000611)   COMMIT
       +  SQL (0.000232)   BEGIN
       +  User Create (0.000224)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 15:58:52', 'test 3', '2008-11-19 15:58:52')
       +  SQL (0.000697)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000393)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000570)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000432)   ROLLBACK
       +  User Load (0.000317)   SELECT * FROM `users` 
       +  SQL (0.000133)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000689)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000233)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000743)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000634)   COMMIT
       +  SQL (0.000267)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000649)   SHOW TABLES
       +  SQL (0.002188)   DROP TABLE `users`
       +  SQL (0.107827)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001009)   SHOW TABLES
       +  SQL (0.001929)   DROP TABLE `report_caches`
       +  SQL (0.203315)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.389204)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.002905)   SHOW TABLES
       +  SQL (0.002861)   SELECT version FROM `schema_migrations`
       +  SQL (0.000122)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000472)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000107)   COMMIT
       +  SQL (0.000101)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000218)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000078)   COMMIT
       +  User Columns (0.036933)   SHOW FIELDS FROM `users`
       +  SQL (0.105376)   BEGIN
       +  User Create (0.000318)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:00:50', 'test 1', '2008-11-26 16:00:50')
       +  SQL (0.070262)   COMMIT
       +  SQL (0.000183)   BEGIN
       +  User Create (0.000329)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:00:50', 'test 2', '2008-11-19 16:00:50')
       +  SQL (0.044321)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000288)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:00:51', 'test 3', '2008-11-19 16:00:51')
       +  SQL (0.000718)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000427)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000397)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000135)   COMMIT
       +  User Load (0.000230)   SELECT * FROM `users` 
       +  SQL (0.000068)   BEGIN
       +  User Destroy (0.000168)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000666)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Destroy (0.000269)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.001537)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Destroy (0.000310)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000621)   COMMIT
       +  SQL (0.000161)   BEGIN
       +  User Create (0.000330)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:00:51', 'test 1', '2008-11-26 16:00:51')
       +  SQL (0.000637)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000237)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:00:51', 'test 2', '2008-11-19 16:00:51')
       +  SQL (0.000673)   COMMIT
       +  SQL (0.000342)   BEGIN
       +  User Create (0.000270)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:00:51', 'test 3', '2008-11-19 16:00:51')
       +  SQL (0.000818)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000412)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000627)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002528)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000181)   COMMIT
       +  User Load (0.000304)   SELECT * FROM `users` 
       +  SQL (0.000132)   BEGIN
       +  User Destroy (0.000193)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000674)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000253)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000671)   COMMIT
       +  SQL (0.000189)   BEGIN
       +  User Destroy (0.000504)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000745)   COMMIT
       +  SQL (0.000145)   BEGIN
       +  User Create (0.000266)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:00:51', 'test 1', '2008-11-26 16:00:51')
       +  SQL (0.000551)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Create (0.000231)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:00:51', 'test 2', '2008-11-19 16:00:51')
       +  SQL (0.000651)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Create (0.000226)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:00:51', 'test 3', '2008-11-19 16:00:51')
       +  SQL (0.000620)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000384)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000451)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000163)   COMMIT
       +  User Load (0.000279)   SELECT * FROM `users` 
       +  SQL (0.000111)   BEGIN
       +  User Destroy (0.000240)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000625)   COMMIT
       +  SQL (0.000142)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000669)   COMMIT
       +  SQL (0.000214)   BEGIN
       +  User Destroy (0.000280)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000609)   COMMIT
       +  SQL (0.000135)   BEGIN
       +  User Create (0.000214)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:00:51', 'test 1', '2008-11-26 16:00:51')
       +  SQL (0.000647)   COMMIT
       +  SQL (0.000076)   BEGIN
       +  User Create (0.000178)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:00:51', 'test 2', '2008-11-19 16:00:51')
       +  SQL (0.000673)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  User Create (0.000232)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:00:51', 'test 3', '2008-11-19 16:00:51')
       +  SQL (0.000678)   COMMIT
       +  SQL (0.000211)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000383)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000543)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000148)   COMMIT
       +  User Load (0.000246)   SELECT * FROM `users` 
       +  SQL (0.000135)   BEGIN
       +  User Destroy (0.000339)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000639)   COMMIT
       +  SQL (0.000189)   BEGIN
       +  User Destroy (0.000365)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000714)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000224)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000644)   COMMIT
       +  SQL (0.000272)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000652)   SHOW TABLES
       +  SQL (0.047476)   DROP TABLE `users`
       +  SQL (0.076043)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000736)   SHOW TABLES
       +  SQL (0.002599)   DROP TABLE `report_caches`
       +  SQL (0.168263)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.127043)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.004314)   SHOW TABLES
       +  SQL (0.001944)   SELECT version FROM `schema_migrations`
       +  SQL (0.000122)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000451)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000104)   COMMIT
       +  SQL (0.000117)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000241)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000093)   COMMIT
       +  User Columns (0.002601)   SHOW FIELDS FROM `users`
       +  SQL (0.000193)   BEGIN
       +  User Create (0.000410)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:01:02', 'test 1', '2008-11-26 16:01:02')
       +  SQL (0.000921)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Create (0.000313)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:01:02', 'test 2', '2008-11-19 16:01:02')
       +  SQL (0.000619)   COMMIT
       +  SQL (0.000146)   BEGIN
       +  User Create (0.000228)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:01:02', 'test 3', '2008-11-19 16:01:02')
       +  SQL (0.000712)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000389)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000378)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000128)   COMMIT
       +  User Load (0.000236)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000211)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000709)   COMMIT
       +  SQL (0.000590)   BEGIN
       +  User Destroy (0.000548)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000762)   COMMIT
       +  SQL (0.000163)   BEGIN
       +  User Destroy (0.000260)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000528)   COMMIT
       +  SQL (0.000311)   BEGIN
       +  User Create (0.000258)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:01:02', 'test 1', '2008-11-26 16:01:02')
       +  SQL (0.000687)   COMMIT
       +  SQL (0.000182)   BEGIN
       +  User Create (0.000251)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:01:02', 'test 2', '2008-11-19 16:01:02')
       +  SQL (0.000758)   COMMIT
       +  SQL (0.000175)   BEGIN
       +  User Create (0.000258)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:01:02', 'test 3', '2008-11-19 16:01:02')
       +  SQL (0.000686)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000395)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000435)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002394)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000180)   ROLLBACK
       +  User Load (0.000271)   SELECT * FROM `users` 
       +  SQL (0.000141)   BEGIN
       +  User Destroy (0.000238)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000798)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Destroy (0.000252)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000612)   COMMIT
       +  SQL (0.000139)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000725)   COMMIT
       +  SQL (0.000193)   BEGIN
       +  User Create (0.000253)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:01:02', 'test 1', '2008-11-26 16:01:02')
       +  SQL (0.000683)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:01:02', 'test 2', '2008-11-19 16:01:02')
       +  SQL (0.000577)   COMMIT
       +  SQL (0.000201)   BEGIN
       +  User Create (0.000246)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:01:02', 'test 3', '2008-11-19 16:01:02')
       +  SQL (0.000725)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000387)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000604)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000177)   ROLLBACK
       +  User Load (0.000263)   SELECT * FROM `users` 
       +  SQL (0.000142)   BEGIN
       +  User Destroy (0.000213)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000876)   COMMIT
       +  SQL (0.000100)   BEGIN
       +  User Destroy (0.000152)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000590)   COMMIT
       +  SQL (0.000116)   BEGIN
       +  User Destroy (0.000178)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000720)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000252)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:01:02', 'test 1', '2008-11-26 16:01:02')
       +  SQL (0.000773)   COMMIT
       +  SQL (0.000193)   BEGIN
       +  User Create (0.000236)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:01:02', 'test 2', '2008-11-19 16:01:02')
       +  SQL (0.000672)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Create (0.000264)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:01:02', 'test 3', '2008-11-19 16:01:02')
       +  SQL (0.000694)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000373)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000455)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000171)   ROLLBACK
       +  User Load (0.000270)   SELECT * FROM `users` 
       +  SQL (0.000132)   BEGIN
       +  User Destroy (0.000163)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000705)   COMMIT
       +  SQL (0.000098)   BEGIN
       +  User Destroy (0.000141)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.001525)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  User Destroy (0.000245)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000609)   COMMIT
       +  SQL (0.000269)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000579)   SHOW TABLES
       +  SQL (0.002436)   DROP TABLE `users`
       +  SQL (0.091654)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000926)   SHOW TABLES
       +  SQL (0.028654)   DROP TABLE `report_caches`
       +  SQL (0.215751)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.138466)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.005750)   SHOW TABLES
       +  SQL (0.000520)   SELECT version FROM `schema_migrations`
       +  SQL (0.000095)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000481)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000107)   COMMIT
       +  SQL (0.000075)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000241)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000103)   COMMIT
       +  User Columns (0.022488)   SHOW FIELDS FROM `users`
       +  SQL (0.089096)   BEGIN
       +  User Create (0.000300)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:01:14', 'test 1', '2008-11-26 16:01:14')
       +  SQL (0.049496)   COMMIT
       +  SQL (0.000176)   BEGIN
       +  User Create (0.000262)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:01:15', 'test 2', '2008-11-19 16:01:15')
       +  SQL (0.065079)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Create (0.000271)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:01:15', 'test 3', '2008-11-19 16:01:15')
       +  SQL (0.068782)   COMMIT
       +  SQL (0.000279)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000491)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000427)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000166)   COMMIT
       +  User Load (0.000255)   SELECT * FROM `users` 
       +  SQL (0.000132)   BEGIN
       +  User Destroy (0.000279)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.066161)   COMMIT
       +  SQL (0.000134)   BEGIN
       +  User Destroy (0.000277)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.070161)   COMMIT
       +  SQL (0.000216)   BEGIN
       +  User Destroy (0.000336)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.003353)   COMMIT
       +  SQL (0.000266)   BEGIN
       +  User Create (0.000288)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:01:15', 'test 1', '2008-11-26 16:01:15')
       +  SQL (0.036536)   COMMIT
       +  SQL (0.000177)   BEGIN
       +  User Create (0.000307)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:01:15', 'test 2', '2008-11-19 16:01:15')
       +  SQL (0.000726)   COMMIT
       +  SQL (0.000169)   BEGIN
       +  User Create (0.000235)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:01:15', 'test 3', '2008-11-19 16:01:15')
       +  SQL (0.000645)   COMMIT
       +  SQL (0.000218)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000401)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000597)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002769)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000621)   SHOW TABLES
       +  SQL (0.000801)   SHOW TABLES
       +  SQL (0.001872)   COMMIT
       +  User Load (0.000237)   SELECT * FROM `users` 
       +  SQL (0.000069)   BEGIN
       +  User Destroy (0.000420)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000560)   COMMIT
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000214)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000685)   COMMIT
       +  SQL (0.000070)   BEGIN
       +  User Destroy (0.000181)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.001123)   COMMIT
       +  SQL (0.000139)   BEGIN
       +  User Create (0.000196)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:01:15', 'test 1', '2008-11-26 16:01:15')
       +  SQL (0.000593)   COMMIT
       +  SQL (0.000126)   BEGIN
       +  User Create (0.000188)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:01:15', 'test 2', '2008-11-19 16:01:15')
       +  SQL (0.000694)   COMMIT
       +  SQL (0.000121)   BEGIN
       +  User Create (0.000127)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:01:15', 'test 3', '2008-11-19 16:01:15')
       +  SQL (0.000720)   COMMIT
       +  SQL (0.000105)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000263)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000335)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000455)   SHOW TABLES
       +  SQL (0.000411)   SHOW TABLES
       +  SQL (0.000745)   COMMIT
       +  User Load (0.001157)   SELECT * FROM `users` 
       +  SQL (0.000117)   BEGIN
       +  User Destroy (0.000203)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000868)   COMMIT
       +  SQL (0.000070)   BEGIN
       +  User Destroy (0.000143)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000565)   COMMIT
       +  SQL (0.000082)   BEGIN
       +  User Destroy (0.000233)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000664)   COMMIT
       +  SQL (0.000262)   BEGIN
       +  User Create (0.000285)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:01:15', 'test 1', '2008-11-26 16:01:15')
       +  SQL (0.000755)   COMMIT
       +  SQL (0.000163)   BEGIN
       +  User Create (0.000245)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:01:15', 'test 2', '2008-11-19 16:01:15')
       +  SQL (0.000543)   COMMIT
       +  SQL (0.000129)   BEGIN
       +  User Create (0.000197)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:01:15', 'test 3', '2008-11-19 16:01:15')
       +  SQL (0.001315)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000443)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000482)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000631)   SHOW TABLES
       +  SQL (0.000711)   SHOW TABLES
       +  SQL (0.000143)   COMMIT
       +  User Load (0.001678)   SELECT * FROM `users` 
       +  SQL (0.000118)   BEGIN
       +  User Destroy (0.000338)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000835)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  User Destroy (0.000266)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000588)   COMMIT
       +  SQL (0.000103)   BEGIN
       +  User Destroy (0.000199)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000833)   COMMIT
       +  SQL (0.000261)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000619)   SHOW TABLES
       +  SQL (0.002205)   DROP TABLE `users`
       +  SQL (0.128756)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000734)   SHOW TABLES
       +  SQL (0.001571)   DROP TABLE `report_caches`
       +  SQL (0.317538)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.132254)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001048)   SHOW TABLES
       +  SQL (0.001150)   SELECT version FROM `schema_migrations`
       +  SQL (0.000119)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000506)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.025946)   SHOW FIELDS FROM `users`
       +  SQL (0.134775)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000209)   COMMIT
       +  SQL (0.000139)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000421)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000348)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000119)   COMMIT
       +  SQL (0.000161)   BEGIN
       +  User Create (0.000221)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:01:47', 'test 1', '2008-11-26 16:01:47')
       +  SQL (0.044935)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Create (0.000306)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:01:47', 'test 2', '2008-11-19 16:01:47')
       +  SQL (0.069023)   COMMIT
       +  SQL (0.000292)   BEGIN
       +  User Create (0.000275)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:01:47', 'test 3', '2008-11-19 16:01:47')
       +  SQL (0.001148)   COMMIT
       +  SQL (0.000405)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000353)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.001057)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.046045)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000341)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:01:47', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:01:47')
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-cumulated_registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:01:47', 'cumulated_registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:01:47')
       +  SQL (0.001368)   ROLLBACK
       +  User Load (0.000284)   SELECT * FROM `users` 
       +  SQL (0.000141)   BEGIN
       +  User Destroy (0.000181)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000747)   COMMIT
       +  SQL (0.000375)   BEGIN
       +  User Destroy (0.000349)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000504)   COMMIT
       +  SQL (0.000117)   BEGIN
       +  User Destroy (0.000220)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000631)   COMMIT
       +  SQL (0.000130)   BEGIN
       +  User Create (0.000222)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:01:47', 'test 1', '2008-11-26 16:01:47')
       +  SQL (0.000515)   COMMIT
       +  SQL (0.000070)   BEGIN
       +  User Create (0.000160)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:01:47', 'test 2', '2008-11-19 16:01:47')
       +  SQL (0.000456)   COMMIT
       +  SQL (0.000068)   BEGIN
       +  User Create (0.000157)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:01:47', 'test 3', '2008-11-19 16:01:47')
       +  SQL (0.000640)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000396)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000458)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000256)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:01:47', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:01:47')
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-cumulated_registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:01:47', 'cumulated_registrations', 'User', 5.0, 'day', '2008-11-19', '2008-12-03 16:01:47')
       +  SQL (0.000798)   ROLLBACK
       +  User Load (0.000428)   SELECT * FROM `users` 
       +  SQL (0.000203)   BEGIN
       +  User Destroy (0.000254)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000686)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  User Destroy (0.000285)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000739)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000236)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000683)   COMMIT
       +  SQL (0.000173)   BEGIN
       +  User Create (0.000279)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:01:47', 'test 1', '2008-11-26 16:01:47')
       +  SQL (0.000744)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Create (0.000240)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:01:47', 'test 2', '2008-11-19 16:01:47')
       +  SQL (0.000600)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000354)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:01:47', 'test 3', '2008-11-19 16:01:47')
       +  SQL (0.000643)   COMMIT
       +  SQL (0.000463)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000555)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000520)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000322)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:01:47', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:01:47')
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-cumulated_registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:01:47', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-19', '2008-12-03 16:01:47')
       +  SQL (0.000949)   ROLLBACK
       +  User Load (0.000310)   SELECT * FROM `users` 
       +  SQL (0.000158)   BEGIN
       +  User Destroy (0.000324)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000569)   COMMIT
       +  SQL (0.000121)   BEGIN
       +  User Destroy (0.000243)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000648)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Destroy (0.000289)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000730)   COMMIT
       +  SQL (0.000163)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000312)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000079)   COMMIT
       +  SQL (0.001848)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000418)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000092)   COMMIT
       +  SQL (0.000114)   BEGIN
       +  User Create (0.000265)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:01:47', 'test 1', '2008-11-26 16:01:47')
       +  SQL (0.001184)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000253)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:01:47', 'test 2', '2008-11-19 16:01:47')
       +  SQL (0.000723)   COMMIT
       +  SQL (0.000295)   BEGIN
       +  User Create (0.000244)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:01:47', 'test 3', '2008-11-19 16:01:47')
       +  SQL (0.000692)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000424)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000429)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000111)   COMMIT
       +  User Load (0.000268)   SELECT * FROM `users` 
       +  SQL (0.000132)   BEGIN
       +  User Destroy (0.000242)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000689)   COMMIT
       +  SQL (0.000099)   BEGIN
       +  User Destroy (0.000149)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000623)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000250)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.001303)   COMMIT
       +  SQL (0.000945)   BEGIN
       +  User Create (0.000742)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:01:47', 'test 1', '2008-11-26 16:01:47')
       +  SQL (0.000808)   COMMIT
       +  SQL (0.000131)   BEGIN
       +  User Create (0.000251)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:01:47', 'test 2', '2008-11-19 16:01:47')
       +  SQL (0.000825)   COMMIT
       +  SQL (0.000112)   BEGIN
       +  User Create (0.000214)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:01:47', 'test 3', '2008-11-19 16:01:47')
       +  SQL (0.000757)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000430)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000640)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000305)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:01:47', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:01:47')
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:01:47', 'registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:01:47')
       +  SQL (0.000814)   ROLLBACK
       +  User Load (0.000441)   SELECT * FROM `users` 
       +  SQL (0.000156)   BEGIN
       +  User Destroy (0.000287)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000736)   COMMIT
       +  SQL (0.000178)   BEGIN
       +  User Destroy (0.000314)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000706)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  User Destroy (0.000284)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000717)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  User Create (0.000236)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:01:47', 'test 1', '2008-11-26 16:01:47')
       +  SQL (0.000616)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  User Create (0.000248)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:01:47', 'test 2', '2008-11-19 16:01:47')
       +  SQL (0.000758)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Create (0.000254)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:01:47', 'test 3', '2008-11-19 16:01:47')
       +  SQL (0.000613)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000374)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000456)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000273)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:01:47', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:01:47')
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:01:47', 'registrations', 'User', 5.0, 'day', '2008-11-19', '2008-12-03 16:01:47')
       +  SQL (0.000891)   ROLLBACK
       +  User Load (0.000307)   SELECT * FROM `users` 
       +  SQL (0.000147)   BEGIN
       +  User Destroy (0.000251)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000644)   COMMIT
       +  SQL (0.000140)   BEGIN
       +  User Destroy (0.000215)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000559)   COMMIT
       +  SQL (0.000184)   BEGIN
       +  User Destroy (0.000280)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000616)   COMMIT
       +  SQL (0.000173)   BEGIN
       +  User Create (0.000285)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:01:47', 'test 1', '2008-11-26 16:01:47')
       +  SQL (0.000783)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Create (0.000259)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:01:47', 'test 2', '2008-11-19 16:01:47')
       +  SQL (0.000694)   COMMIT
       +  SQL (0.000850)   BEGIN
       +  User Create (0.000334)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:01:47', 'test 3', '2008-11-19 16:01:47')
       +  SQL (0.000666)   COMMIT
       +  SQL (0.000281)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000395)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000542)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000259)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:01:47', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:01:47')
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:01:47', 'registrations', 'User', 1.0, 'day', '2008-11-19', '2008-12-03 16:01:47')
       +  SQL (0.000798)   ROLLBACK
       +  User Load (0.000375)   SELECT * FROM `users` 
       +  SQL (0.000135)   BEGIN
       +  User Destroy (0.000321)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000566)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Destroy (0.000243)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000613)   COMMIT
       +  SQL (0.000107)   BEGIN
       +  User Destroy (0.000217)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.001340)   COMMIT
       +  SQL (0.000238)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000559)   SHOW TABLES
       +  SQL (0.108036)   DROP TABLE `users`
       +  SQL (0.190844)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000706)   SHOW TABLES
       +  SQL (0.026302)   DROP TABLE `report_caches`
       +  SQL (0.137410)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.136226)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.001211)   SHOW TABLES
       +  SQL (0.000936)   SELECT version FROM `schema_migrations`
       +  SQL (0.000125)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000532)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.026146)   SHOW FIELDS FROM `users`
       +  SQL (0.098815)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000169)   COMMIT
       +  SQL (0.000134)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000430)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000418)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000146)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Create (0.000223)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:05:25', 'test 1', '2008-11-26 16:05:25')
       +  SQL (0.036806)   COMMIT
       +  SQL (0.000172)   BEGIN
       +  User Create (0.000289)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:05:25', 'test 2', '2008-11-19 16:05:25')
       +  SQL (0.068758)   COMMIT
       +  SQL (0.000131)   BEGIN
       +  User Create (0.000249)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:05:25', 'test 3', '2008-11-19 16:05:25')
       +  SQL (0.001170)   COMMIT
       +  SQL (0.000129)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000388)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.004428)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000352)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.030355)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000367)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:05:25', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:05:25')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000421)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-cumulated_registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:05:25', 'cumulated_registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:05:25')
       +  SQL (0.000752)   ROLLBACK
       +  User Load (0.000447)   SELECT * FROM `users` 
       +  SQL (0.000204)   BEGIN
       +  User Destroy (0.000254)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000891)   COMMIT
       +  SQL (0.000236)   BEGIN
       +  User Destroy (0.000257)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000722)   COMMIT
       +  SQL (0.000187)   BEGIN
       +  User Destroy (0.000228)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000655)   COMMIT
       +  SQL (0.000140)   BEGIN
       +  User Create (0.000223)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:05:25', 'test 1', '2008-11-26 16:05:25')
       +  SQL (0.000690)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Create (0.000231)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:05:25', 'test 2', '2008-11-19 16:05:25')
       +  SQL (0.000719)   COMMIT
       +  SQL (0.000218)   BEGIN
       +  User Create (0.000245)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:05:25', 'test 3', '2008-11-19 16:05:25')
       +  SQL (0.000650)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000375)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000449)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000321)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000281)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:05:25', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:05:25')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000358)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-cumulated_registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:05:25', 'cumulated_registrations', 'User', 5.0, 'day', '2008-11-19', '2008-12-03 16:05:25')
       +  SQL (0.001251)   ROLLBACK
       +  User Load (0.000436)   SELECT * FROM `users` 
       +  SQL (0.000212)   BEGIN
       +  User Destroy (0.000331)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000751)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Destroy (0.000234)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000803)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000789)   COMMIT
       +  SQL (0.001122)   BEGIN
       +  User Create (0.000341)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:05:25', 'test 1', '2008-11-26 16:05:25')
       +  SQL (0.000895)   COMMIT
       +  SQL (0.000103)   BEGIN
       +  User Create (0.000213)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:05:25', 'test 2', '2008-11-19 16:05:25')
       +  SQL (0.000587)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Create (0.000306)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:05:25', 'test 3', '2008-11-19 16:05:25')
       +  SQL (0.000666)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000395)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000529)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000405)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000282)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:05:25', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:05:25')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000366)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-cumulated_registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:05:25', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-19', '2008-12-03 16:05:25')
       +  SQL (0.000820)   ROLLBACK
       +  User Load (0.000319)   SELECT * FROM `users` 
       +  SQL (0.000159)   BEGIN
       +  User Destroy (0.000265)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000642)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Destroy (0.000238)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000687)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000317)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000676)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000300)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000087)   COMMIT
       +  SQL (0.000121)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000453)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000115)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Create (0.000217)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:05:25', 'test 1', '2008-11-26 16:05:25')
       +  SQL (0.001088)   COMMIT
       +  SQL (0.000168)   BEGIN
       +  User Create (0.000324)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:05:25', 'test 2', '2008-11-19 16:05:25')
       +  SQL (0.000673)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000240)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:05:25', 'test 3', '2008-11-19 16:05:25')
       +  SQL (0.000653)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000391)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000389)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000111)   COMMIT
       +  User Load (0.000337)   SELECT * FROM `users` 
       +  SQL (0.000133)   BEGIN
       +  User Destroy (0.000284)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000759)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  User Destroy (0.000242)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000764)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000591)   COMMIT
       +  SQL (0.000182)   BEGIN
       +  User Create (0.000269)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:05:25', 'test 1', '2008-11-26 16:05:25')
       +  SQL (0.000651)   COMMIT
       +  SQL (0.000156)   BEGIN
       +  User Create (0.000246)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:05:25', 'test 2', '2008-11-19 16:05:25')
       +  SQL (0.000664)   COMMIT
       +  SQL (0.000222)   BEGIN
       +  User Create (0.000249)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:05:25', 'test 3', '2008-11-19 16:05:25')
       +  SQL (0.000664)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000421)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.001062)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000369)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000381)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:05:25', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:05:25')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000351)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:05:25', 'registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:05:25')
       +  SQL (0.000880)   ROLLBACK
       +  User Load (0.000250)   SELECT * FROM `users` 
       +  SQL (0.000106)   BEGIN
       +  User Destroy (0.000190)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.001096)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Destroy (0.000255)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000602)   COMMIT
       +  SQL (0.000190)   BEGIN
       +  User Destroy (0.000314)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000712)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Create (0.000257)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:05:25', 'test 1', '2008-11-26 16:05:25')
       +  SQL (0.000606)   COMMIT
       +  SQL (0.000132)   BEGIN
       +  User Create (0.000341)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:05:25', 'test 2', '2008-11-19 16:05:25')
       +  SQL (0.000663)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  User Create (0.000259)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:05:25', 'test 3', '2008-11-19 16:05:25')
       +  SQL (0.000669)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000402)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000544)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000327)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000267)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:05:25', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:05:25')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000352)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:05:25', 'registrations', 'User', 5.0, 'day', '2008-11-19', '2008-12-03 16:05:25')
       +  SQL (0.000783)   ROLLBACK
       +  User Load (0.000457)   SELECT * FROM `users` 
       +  SQL (0.000204)   BEGIN
       +  User Destroy (0.000256)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000773)   COMMIT
       +  SQL (0.000201)   BEGIN
       +  User Destroy (0.000238)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000700)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Destroy (0.000290)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000677)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000333)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:05:25', 'test 1', '2008-11-26 16:05:25')
       +  SQL (0.000748)   COMMIT
       +  SQL (0.000129)   BEGIN
       +  User Create (0.000218)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:05:25', 'test 2', '2008-11-19 16:05:25')
       +  SQL (0.000534)   COMMIT
       +  SQL (0.000089)   BEGIN
       +  User Create (0.000171)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:05:25', 'test 3', '2008-11-19 16:05:25')
       +  SQL (0.000412)   COMMIT
       +  SQL (0.000106)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000284)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000393)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000237)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000199)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:05:25', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:05:25')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000220)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:05:25', 'registrations', 'User', 1.0, 'day', '2008-11-19', '2008-12-03 16:05:25')
       +  SQL (0.000795)   ROLLBACK
       +  User Load (0.000436)   SELECT * FROM `users` 
       +  SQL (0.000135)   BEGIN
       +  User Destroy (0.000404)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000606)   COMMIT
       +  SQL (0.000122)   BEGIN
       +  User Destroy (0.000314)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000680)   COMMIT
       +  SQL (0.000156)   BEGIN
       +  User Destroy (0.000247)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000799)   COMMIT
       +  SQL (0.000274)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000734)   SHOW TABLES
       +  SQL (0.024405)   DROP TABLE `users`
       +  SQL (0.080148)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000743)   SHOW TABLES
       +  SQL (0.002380)   DROP TABLE `report_caches`
       +  SQL (0.397993)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.252082)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.000877)   SHOW TABLES
       +  SQL (0.000273)   SELECT version FROM `schema_migrations`
       +  SQL (0.000109)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000652)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.002322)   SHOW FIELDS FROM `users`
       +  SQL (0.000508)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000087)   COMMIT
       +  SQL (0.000101)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000268)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000263)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000104)   COMMIT
       +  SQL (0.000120)   BEGIN
       +  User Create (0.000217)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:07:15', 'test 1', '2008-11-26 16:07:15')
       +  SQL (0.000532)   COMMIT
       +  SQL (0.000080)   BEGIN
       +  User Create (0.000162)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:07:15', 'test 2', '2008-11-19 16:07:15')
       +  SQL (0.000523)   COMMIT
       +  SQL (0.000072)   BEGIN
       +  User Create (0.000140)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:07:15', 'test 3', '2008-11-19 16:07:15')
       +  SQL (0.000527)   COMMIT
       +  SQL (0.000067)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000259)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000375)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000230)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.001634)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000264)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:07:15', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:07:15')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000758)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-cumulated_registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:07:15', 'cumulated_registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:07:15')
       +  SQL (0.000600)   ROLLBACK
       +  User Load (0.000222)   SELECT * FROM `users` 
       +  SQL (0.000070)   BEGIN
       +  User Destroy (0.000168)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000454)   COMMIT
       +  SQL (0.000066)   BEGIN
       +  User Destroy (0.000196)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000652)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Destroy (0.000234)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000709)   COMMIT
       +  SQL (0.000146)   BEGIN
       +  User Create (0.000771)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:07:15', 'test 1', '2008-11-26 16:07:15')
       +  SQL (0.000567)   COMMIT
       +  SQL (0.000112)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:07:15', 'test 2', '2008-11-19 16:07:15')
       +  SQL (0.000783)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Create (0.000366)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:07:15', 'test 3', '2008-11-19 16:07:15')
       +  SQL (0.000735)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000422)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000459)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000345)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000246)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:07:15', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:07:15')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000228)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-cumulated_registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:07:15', 'cumulated_registrations', 'User', 5.0, 'day', '2008-11-19', '2008-12-03 16:07:15')
       +  SQL (0.000776)   ROLLBACK
       +  User Load (0.000463)   SELECT * FROM `users` 
       +  SQL (0.000218)   BEGIN
       +  User Destroy (0.000269)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000716)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  User Destroy (0.000228)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000720)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000671)   COMMIT
       +  SQL (0.000184)   BEGIN
       +  User Create (0.000271)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:07:15', 'test 1', '2008-11-26 16:07:15')
       +  SQL (0.000670)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Create (0.000660)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:07:15', 'test 2', '2008-11-19 16:07:15')
       +  SQL (0.000868)   COMMIT
       +  SQL (0.000126)   BEGIN
       +  User Create (0.000230)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:07:15', 'test 3', '2008-11-19 16:07:15')
       +  SQL (0.000530)   COMMIT
       +  SQL (0.000106)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000491)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000498)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000329)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000334)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:07:15', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:07:15')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000448)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-cumulated_registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:07:15', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-19', '2008-12-03 16:07:15')
       +  SQL (0.001156)   ROLLBACK
       +  User Load (0.000251)   SELECT * FROM `users` 
       +  SQL (0.000096)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000720)   COMMIT
       +  SQL (0.000311)   BEGIN
       +  User Destroy (0.000244)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000698)   COMMIT
       +  SQL (0.000183)   BEGIN
       +  User Destroy (0.000375)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000533)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000289)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000144)   COMMIT
       +  SQL (0.000108)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000336)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000136)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Create (0.000234)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:07:15', 'test 1', '2008-11-26 16:07:15')
       +  SQL (0.000676)   COMMIT
       +  SQL (0.000161)   BEGIN
       +  User Create (0.000252)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:07:15', 'test 2', '2008-11-19 16:07:15')
       +  SQL (0.000719)   COMMIT
       +  SQL (0.000173)   BEGIN
       +  User Create (0.000227)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:07:15', 'test 3', '2008-11-19 16:07:15')
       +  SQL (0.000757)   COMMIT
       +  SQL (0.000188)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000400)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000494)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000143)   COMMIT
       +  User Load (0.000240)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000273)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000786)   COMMIT
       +  SQL (0.000214)   BEGIN
       +  User Destroy (0.000233)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000728)   COMMIT
       +  SQL (0.000179)   BEGIN
       +  User Destroy (0.000358)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000650)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Create (0.000251)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:07:15', 'test 1', '2008-11-26 16:07:15')
       +  SQL (0.000644)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  User Create (0.000249)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:07:15', 'test 2', '2008-11-19 16:07:15')
       +  SQL (0.000665)   COMMIT
       +  SQL (0.000215)   BEGIN
       +  User Create (0.000235)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:07:15', 'test 3', '2008-11-19 16:07:15')
       +  SQL (0.000733)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000415)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000630)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000386)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000299)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:07:15', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:07:15')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000332)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:07:15', 'registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:07:15')
       +  SQL (0.000550)   ROLLBACK
       +  User Load (0.000205)   SELECT * FROM `users` 
       +  SQL (0.000083)   BEGIN
       +  User Destroy (0.000166)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000592)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Destroy (0.000340)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000569)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  User Destroy (0.000305)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000648)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  User Create (0.000238)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:07:15', 'test 1', '2008-11-26 16:07:15')
       +  SQL (0.000667)   COMMIT
       +  SQL (0.000174)   BEGIN
       +  User Create (0.000258)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:07:15', 'test 2', '2008-11-19 16:07:15')
       +  SQL (0.000643)   COMMIT
       +  SQL (0.000191)   BEGIN
       +  User Create (0.000258)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:07:15', 'test 3', '2008-11-19 16:07:15')
       +  SQL (0.000668)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000382)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000465)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000322)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000346)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:07:15', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:07:15')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000370)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:07:15', 'registrations', 'User', 5.0, 'day', '2008-11-19', '2008-12-03 16:07:15')
       +  SQL (0.001293)   ROLLBACK
       +  User Load (0.000544)   SELECT * FROM `users` 
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000284)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000712)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  User Destroy (0.000232)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000594)   COMMIT
       +  SQL (0.000146)   BEGIN
       +  User Destroy (0.000290)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000639)   COMMIT
       +  SQL (0.000247)   BEGIN
       +  User Create (0.001995)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:07:15', 'test 1', '2008-11-26 16:07:15')
       +  SQL (0.000615)   COMMIT
       +  SQL (0.000117)   BEGIN
       +  User Create (0.000335)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:07:15', 'test 2', '2008-11-19 16:07:15')
       +  SQL (0.000893)   COMMIT
       +  SQL (0.000129)   BEGIN
       +  User Create (0.000235)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:07:15', 'test 3', '2008-11-19 16:07:15')
       +  SQL (0.000787)   COMMIT
       +  SQL (0.000218)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000436)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000490)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000317)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000260)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:07:15', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:07:15')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000359)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:07:15', 'registrations', 'User', 1.0, 'day', '2008-11-19', '2008-12-03 16:07:15')
       +  SQL (0.000835)   ROLLBACK
       +  User Load (0.000435)   SELECT * FROM `users` 
       +  SQL (0.000201)   BEGIN
       +  User Destroy (0.000250)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000689)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  User Destroy (0.000266)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000718)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Destroy (0.000264)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000709)   COMMIT
       +  SQL (0.000236)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000570)   SHOW TABLES
       +  SQL (0.025644)   DROP TABLE `users`
       +  SQL (0.063593)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000973)   SHOW TABLES
       +  SQL (0.001851)   DROP TABLE `report_caches`
       +  SQL (0.179021)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.126116)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.000952)   SHOW TABLES
       +  SQL (0.000817)   SELECT version FROM `schema_migrations`
       +  SQL (0.000097)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000535)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.003093)   SHOW FIELDS FROM `users`
       +  SQL (0.000440)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000158)   COMMIT
       +  SQL (0.000138)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000386)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000391)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000110)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000258)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:08:24', 'test 1', '2008-11-26 16:08:24')
       +  SQL (0.000753)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000246)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:08:24', 'test 2', '2008-11-19 16:08:24')
       +  SQL (0.001979)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Create (0.000311)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:08:24', 'test 3', '2008-11-19 16:08:24')
       +  SQL (0.000613)   COMMIT
       +  SQL (0.000070)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000386)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.001047)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000849)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002850)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000352)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:08:24', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:08:24')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000394)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-cumulated_registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:08:24', 'cumulated_registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:08:24')
       +  SQL (0.000755)   ROLLBACK
       +  User Load (0.000292)   SELECT * FROM `users` 
       +  SQL (0.000107)   BEGIN
       +  User Destroy (0.000250)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000632)   COMMIT
       +  SQL (0.000219)   BEGIN
       +  User Destroy (0.000300)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000845)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000597)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000244)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:08:24', 'test 1', '2008-11-26 16:08:24')
       +  SQL (0.000569)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  User Create (0.000235)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:08:24', 'test 2', '2008-11-19 16:08:24')
       +  SQL (0.000627)   COMMIT
       +  SQL (0.000221)   BEGIN
       +  User Create (0.000254)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:08:24', 'test 3', '2008-11-19 16:08:24')
       +  SQL (0.000745)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000386)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000453)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000336)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000241)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:08:24', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:08:24')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000356)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-cumulated_registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:08:24', 'cumulated_registrations', 'User', 5.0, 'day', '2008-11-19', '2008-12-03 16:08:24')
       +  SQL (0.000802)   ROLLBACK
       +  User Load (0.000432)   SELECT * FROM `users` 
       +  SQL (0.000202)   BEGIN
       +  User Destroy (0.000252)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000648)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000227)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000665)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000378)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000685)   COMMIT
       +  SQL (0.000191)   BEGIN
       +  User Create (0.000393)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:08:24', 'test 1', '2008-11-26 16:08:24')
       +  SQL (0.000752)   COMMIT
       +  SQL (0.000171)   BEGIN
       +  User Create (0.000291)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:08:24', 'test 2', '2008-11-19 16:08:24')
       +  SQL (0.000561)   COMMIT
       +  SQL (0.000100)   BEGIN
       +  User Create (0.000205)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:08:24', 'test 3', '2008-11-19 16:08:24')
       +  SQL (0.000568)   COMMIT
       +  SQL (0.000083)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000330)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000459)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000247)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000213)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:08:24', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:08:24')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000289)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-cumulated_registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:08:24', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-19', '2008-12-03 16:08:24')
       +  SQL (0.000742)   ROLLBACK
       +  User Load (0.000312)   SELECT * FROM `users` 
       +  SQL (0.000147)   BEGIN
       +  User Destroy (0.000298)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000697)   COMMIT
       +  SQL (0.000128)   BEGIN
       +  User Destroy (0.000244)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000578)   COMMIT
       +  SQL (0.000133)   BEGIN
       +  User Destroy (0.000254)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000621)   COMMIT
       +  SQL (0.000168)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000361)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000130)   COMMIT
       +  SQL (0.000099)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000267)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000084)   COMMIT
       +  SQL (0.000138)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:08:24', 'test 1', '2008-11-26 16:08:24')
       +  SQL (0.001188)   COMMIT
       +  SQL (0.000221)   BEGIN
       +  User Create (0.000270)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:08:24', 'test 2', '2008-11-19 16:08:24')
       +  SQL (0.000886)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000267)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:08:24', 'test 3', '2008-11-19 16:08:24')
       +  SQL (0.000790)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000448)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000396)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000138)   COMMIT
       +  User Load (0.000224)   SELECT * FROM `users` 
       +  SQL (0.000135)   BEGIN
       +  User Destroy (0.000227)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000675)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000232)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000731)   COMMIT
       +  SQL (0.000193)   BEGIN
       +  User Destroy (0.000472)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000704)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  User Create (0.000240)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:08:24', 'test 1', '2008-11-26 16:08:24')
       +  SQL (0.000756)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Create (0.000243)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:08:24', 'test 2', '2008-11-19 16:08:24')
       +  SQL (0.000685)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Create (0.000256)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:08:24', 'test 3', '2008-11-19 16:08:24')
       +  SQL (0.000667)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000652)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000683)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000352)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000294)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:08:24', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:08:24')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000317)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:08:24', 'registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:08:24')
       +  SQL (0.000840)   ROLLBACK
       +  User Load (0.000482)   SELECT * FROM `users` 
       +  SQL (0.000259)   BEGIN
       +  User Destroy (0.000275)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000777)   COMMIT
       +  SQL (0.000178)   BEGIN
       +  User Destroy (0.000356)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000707)   COMMIT
       +  SQL (0.000121)   BEGIN
       +  User Destroy (0.000261)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000591)   COMMIT
       +  SQL (0.000156)   BEGIN
       +  User Create (0.000290)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:08:24', 'test 1', '2008-11-26 16:08:24')
       +  SQL (0.000572)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Create (0.000232)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:08:24', 'test 2', '2008-11-19 16:08:24')
       +  SQL (0.000723)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Create (0.000224)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:08:24', 'test 3', '2008-11-19 16:08:24')
       +  SQL (0.000554)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000475)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000542)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000324)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000381)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:08:24', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:08:24')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000410)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:08:24', 'registrations', 'User', 5.0, 'day', '2008-11-19', '2008-12-03 16:08:24')
       +  SQL (0.000792)   ROLLBACK
       +  User Load (0.000527)   SELECT * FROM `users` 
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000261)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000737)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000617)   COMMIT
       +  SQL (0.000182)   BEGIN
       +  User Destroy (0.000299)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000622)   COMMIT
       +  SQL (0.000178)   BEGIN
       +  User Create (0.000427)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:08:24', 'test 1', '2008-11-26 16:08:24')
       +  SQL (0.000643)   COMMIT
       +  SQL (0.000107)   BEGIN
       +  User Create (0.000243)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:08:24', 'test 2', '2008-11-19 16:08:24')
       +  SQL (0.000662)   COMMIT
       +  SQL (0.000219)   BEGIN
       +  User Create (0.000248)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:08:24', 'test 3', '2008-11-19 16:08:24')
       +  SQL (0.000587)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000422)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000568)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000336)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000287)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:08:24', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:08:24')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000358)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:08:24', 'registrations', 'User', 1.0, 'day', '2008-11-19', '2008-12-03 16:08:24')
       +  SQL (0.001155)   ROLLBACK
       +  User Load (0.000323)   SELECT * FROM `users` 
       +  SQL (0.000179)   BEGIN
       +  User Destroy (0.000271)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000730)   COMMIT
       +  SQL (0.000122)   BEGIN
       +  User Destroy (0.000261)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000544)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000651)   COMMIT
       +  SQL (0.000233)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000571)   SHOW TABLES
       +  SQL (0.038017)   DROP TABLE `users`
       +  SQL (0.283987)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000944)   SHOW TABLES
       +  SQL (0.002050)   DROP TABLE `report_caches`
       +  SQL (0.190073)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.134064)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.000878)   SHOW TABLES
       +  SQL (0.000275)   SELECT version FROM `schema_migrations`
       +  SQL (0.000120)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000477)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.003677)   SHOW FIELDS FROM `users`
       +  SQL (0.000475)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000162)   COMMIT
       +  SQL (0.000230)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000337)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000340)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000113)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Create (0.000226)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:09:11', 'test 1', '2008-11-26 16:09:11')
       +  SQL (0.000681)   COMMIT
       +  SQL (0.000297)   BEGIN
       +  User Create (0.000277)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:09:11', 'test 2', '2008-11-19 16:09:11')
       +  SQL (0.000609)   COMMIT
       +  SQL (0.000085)   BEGIN
       +  User Create (0.000173)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:09:11', 'test 3', '2008-11-19 16:09:11')
       +  SQL (0.000481)   COMMIT
       +  SQL (0.000068)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000362)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000414)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000264)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002310)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000258)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:09:11', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:09:11')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000276)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-cumulated_registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:09:11', 'cumulated_registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:09:11')
       +  SQL (0.000738)   ROLLBACK
       +  User Load (0.000508)   SELECT * FROM `users` 
       +  SQL (0.000121)   BEGIN
       +  User Destroy (0.000173)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000621)   COMMIT
       +  SQL (0.000262)   BEGIN
       +  User Destroy (0.000261)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000647)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000234)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.001256)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  User Create (0.000307)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:09:11', 'test 1', '2008-11-26 16:09:11')
       +  SQL (0.001570)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  User Create (0.000251)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:09:11', 'test 2', '2008-11-19 16:09:11')
       +  SQL (0.000777)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000241)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:09:11', 'test 3', '2008-11-19 16:09:11')
       +  SQL (0.000576)   COMMIT
       +  SQL (0.000156)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000389)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000612)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000342)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000253)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:09:11', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:09:11')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000297)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-cumulated_registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:09:11', 'cumulated_registrations', 'User', 5.0, 'day', '2008-11-19', '2008-12-03 16:09:11')
       +  SQL (0.000718)   ROLLBACK
       +  User Load (0.000240)   SELECT * FROM `users` 
       +  SQL (0.000103)   BEGIN
       +  User Destroy (0.000172)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000590)   COMMIT
       +  SQL (0.000098)   BEGIN
       +  User Destroy (0.000155)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000584)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000227)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000614)   COMMIT
       +  SQL (0.000168)   BEGIN
       +  User Create (0.000665)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:09:11', 'test 1', '2008-11-26 16:09:11')
       +  SQL (0.000769)   COMMIT
       +  SQL (0.000156)   BEGIN
       +  User Create (0.000256)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:09:11', 'test 2', '2008-11-19 16:09:11')
       +  SQL (0.000514)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Create (0.000207)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:09:11', 'test 3', '2008-11-19 16:09:11')
       +  SQL (0.000902)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000408)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000600)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.001607)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000274)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:09:11', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:09:11')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000338)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-cumulated_registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:09:11', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-19', '2008-12-03 16:09:11')
       +  SQL (0.000596)   ROLLBACK
       +  User Load (0.000207)   SELECT * FROM `users` 
       +  SQL (0.000075)   BEGIN
       +  User Destroy (0.000175)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000537)   COMMIT
       +  SQL (0.000070)   BEGIN
       +  User Destroy (0.000176)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000620)   COMMIT
       +  SQL (0.000181)   BEGIN
       +  User Destroy (0.000431)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000787)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000304)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000106)   COMMIT
       +  SQL (0.000106)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000221)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000101)   COMMIT
       +  SQL (0.000128)   BEGIN
       +  User Create (0.000408)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:09:11', 'test 1', '2008-11-26 16:09:11')
       +  SQL (0.000619)   COMMIT
       +  SQL (0.000089)   BEGIN
       +  User Create (0.000198)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:09:11', 'test 2', '2008-11-19 16:09:11')
       +  SQL (0.000698)   COMMIT
       +  SQL (0.000193)   BEGIN
       +  User Create (0.000257)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:09:11', 'test 3', '2008-11-19 16:09:11')
       +  SQL (0.000676)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000397)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000391)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000115)   COMMIT
       +  User Load (0.000234)   SELECT * FROM `users` 
       +  SQL (0.000130)   BEGIN
       +  User Destroy (0.000163)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000629)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000608)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000715)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000255)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:09:11', 'test 1', '2008-11-26 16:09:11')
       +  SQL (0.000594)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Create (0.000227)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:09:11', 'test 2', '2008-11-19 16:09:11')
       +  SQL (0.000659)   COMMIT
       +  SQL (0.000215)   BEGIN
       +  User Create (0.000351)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:09:11', 'test 3', '2008-11-19 16:09:11')
       +  SQL (0.001073)   COMMIT
       +  SQL (0.000131)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000359)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000418)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000390)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000217)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:09:11', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:09:11')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000271)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:09:11', 'registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:09:11')
       +  SQL (0.000785)   ROLLBACK
       +  User Load (0.000526)   SELECT * FROM `users` 
       +  SQL (0.000216)   BEGIN
       +  User Destroy (0.000306)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000661)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000686)   COMMIT
       +  SQL (0.000230)   BEGIN
       +  User Destroy (0.000233)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000782)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Create (0.000239)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:09:12', 'test 1', '2008-11-26 16:09:12')
       +  SQL (0.000693)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Create (0.000227)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:09:12', 'test 2', '2008-11-19 16:09:12')
       +  SQL (0.000665)   COMMIT
       +  SQL (0.000175)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:09:12', 'test 3', '2008-11-19 16:09:12')
       +  SQL (0.000628)   COMMIT
       +  SQL (0.000145)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000397)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000456)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000322)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000241)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:09:12', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:09:12')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000347)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:09:12', 'registrations', 'User', 5.0, 'day', '2008-11-19', '2008-12-03 16:09:12')
       +  SQL (0.000769)   ROLLBACK
       +  User Load (0.000474)   SELECT * FROM `users` 
       +  SQL (0.000148)   BEGIN
       +  User Destroy (0.000257)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000719)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000279)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000653)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000298)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000666)   COMMIT
       +  SQL (0.000178)   BEGIN
       +  User Create (0.000350)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:09:12', 'test 1', '2008-11-26 16:09:12')
       +  SQL (0.000724)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  User Create (0.000436)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:09:12', 'test 2', '2008-11-19 16:09:12')
       +  SQL (0.000528)   COMMIT
       +  SQL (0.000098)   BEGIN
       +  User Create (0.000197)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:09:12', 'test 3', '2008-11-19 16:09:12')
       +  SQL (0.000779)   COMMIT
       +  SQL (0.000187)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000441)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000648)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000358)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000332)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:09:12', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:09:12')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000408)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19 00:00:00' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:09:12', 'registrations', 'User', 1.0, 'day', '2008-11-19', '2008-12-03 16:09:12')
       +  SQL (0.000807)   ROLLBACK
       +  User Load (0.000465)   SELECT * FROM `users` 
       +  SQL (0.000155)   BEGIN
       +  User Destroy (0.000260)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000736)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000641)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000225)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000614)   COMMIT
       +  SQL (0.000267)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000568)   SHOW TABLES
       +  SQL (0.002085)   DROP TABLE `users`
       +  SQL (0.097431)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001342)   SHOW TABLES
       +  SQL (0.020121)   DROP TABLE `report_caches`
       +  SQL (0.213362)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.137892)   CREATE UNIQUE INDEX `report_caches_uk` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.002044)   SHOW TABLES
       +  SQL (0.002511)   SELECT version FROM `schema_migrations`
       +  SQL (0.000122)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000535)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000080)   COMMIT
       +  SQL (0.000108)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000201)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000074)   COMMIT
       +  User Columns (0.002801)   SHOW FIELDS FROM `users`
       +  SQL (0.000160)   BEGIN
       +  User Create (0.000282)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:09:47', 'test 1', '2008-11-26 16:09:47')
       +  SQL (0.000828)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Create (0.000239)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:09:47', 'test 2', '2008-11-19 16:09:47')
       +  SQL (0.000531)   COMMIT
       +  SQL (0.000142)   BEGIN
       +  User Create (0.000221)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:09:47', 'test 3', '2008-11-19 16:09:47')
       +  SQL (0.000608)   COMMIT
       +  SQL (0.000099)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000256)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000282)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000103)   COMMIT
       +  User Load (0.000161)   SELECT * FROM `users` 
       +  SQL (0.000098)   BEGIN
       +  User Destroy (0.000165)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000684)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Destroy (0.000266)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000964)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Destroy (0.000320)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000752)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Create (0.000504)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:09:47', 'test 1', '2008-11-26 16:09:47')
       +  SQL (0.000651)   COMMIT
       +  SQL (0.000156)   BEGIN
       +  User Create (0.000326)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:09:47', 'test 2', '2008-11-19 16:09:47')
       +  SQL (0.000655)   COMMIT
       +  SQL (0.000193)   BEGIN
       +  User Create (0.000342)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:09:47', 'test 3', '2008-11-19 16:09:47')
       +  SQL (0.000837)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000419)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000539)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000322)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User' AND `report_caches`.`reporting_period` = '2008-11-26') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002621)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000322)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:09:47', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:09:47')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000364)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User' AND `report_caches`.`reporting_period` = '2008-11-19') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:09:47', 'registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:09:47')
       +  SQL (0.000795)   ROLLBACK
       +  User Load (0.000337)   SELECT * FROM `users` 
       +  SQL (0.000279)   BEGIN
       +  User Destroy (0.000291)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000563)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Destroy (0.000252)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000672)   COMMIT
       +  SQL (0.000201)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000661)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Create (0.000237)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:09:47', 'test 1', '2008-11-26 16:09:47')
       +  SQL (0.000666)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:09:47', 'test 2', '2008-11-19 16:09:47')
       +  SQL (0.000690)   COMMIT
       +  SQL (0.000201)   BEGIN
       +  User Create (0.000225)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:09:47', 'test 3', '2008-11-19 16:09:47')
       +  SQL (0.000628)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000373)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000449)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000307)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User' AND `report_caches`.`reporting_period` = '2008-11-26') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000271)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:09:47', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:09:47')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000333)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User' AND `report_caches`.`reporting_period` = '2008-11-19') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:09:47', 'registrations', 'User', 5.0, 'day', '2008-11-19', '2008-12-03 16:09:47')
       +  SQL (0.001384)   ROLLBACK
       +  User Load (0.000575)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000278)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000691)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  User Destroy (0.000254)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000581)   COMMIT
       +  SQL (0.000145)   BEGIN
       +  User Destroy (0.000280)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000677)   COMMIT
       +  SQL (0.000145)   BEGIN
       +  User Create (0.000236)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:09:47', 'test 1', '2008-11-26 16:09:47')
       +  SQL (0.000537)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Create (0.000234)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:09:47', 'test 2', '2008-11-19 16:09:47')
       +  SQL (0.000731)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  User Create (0.000249)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:09:47', 'test 3', '2008-11-19 16:09:47')
       +  SQL (0.000602)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000383)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000500)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000328)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User' AND `report_caches`.`reporting_period` = '2008-11-26') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000365)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:09:47', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:09:47')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000386)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User' AND `report_caches`.`reporting_period` = '2008-11-19') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-registrations-day' for key 'report_caches_uk': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:09:47', 'registrations', 'User', 1.0, 'day', '2008-11-19', '2008-12-03 16:09:47')
       +  SQL (0.000771)   ROLLBACK
       +  User Load (0.000410)   SELECT * FROM `users` 
       +  SQL (0.000215)   BEGIN
       +  User Destroy (0.000297)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000689)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000634)   COMMIT
       +  SQL (0.000247)   BEGIN
       +  User Destroy (0.000242)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000716)   COMMIT
       +  SQL (0.000246)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000708)   SHOW TABLES
       +  SQL (0.138534)   DROP TABLE `users`
       +  SQL (0.183172)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000906)   SHOW TABLES
       +  SQL (0.001604)   DROP TABLE `report_caches`
       +  SQL (0.207041)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.129028)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.155168)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.001966)   SHOW TABLES
       +  SQL (0.000252)   SELECT version FROM `schema_migrations`
       +  SQL (0.000095)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.001946)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.002592)   SHOW FIELDS FROM `users`
       +  SQL (0.000343)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000106)   COMMIT
       +  SQL (0.000106)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000233)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000244)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000103)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Create (0.000237)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:11:36', 'test 1', '2008-11-26 16:11:36')
       +  SQL (0.000853)   COMMIT
       +  SQL (0.000128)   BEGIN
       +  User Create (0.000221)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:11:36', 'test 2', '2008-11-19 16:11:36')
       +  SQL (0.000680)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Create (0.000258)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:11:36', 'test 3', '2008-11-19 16:11:36')
       +  SQL (0.000683)   COMMIT
       +  SQL (0.000181)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000406)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000448)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000311)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.003624)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.001294)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:11:36', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:11:36')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000467)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-cumulated_registrations-day' for key 'report_caches_name_klass_grouping': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:11:36', 'cumulated_registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:11:36')
       +  SQL (0.000616)   ROLLBACK
       +  User Load (0.000212)   SELECT * FROM `users` 
       +  SQL (0.000126)   BEGIN
       +  User Destroy (0.000170)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000594)   COMMIT
       +  SQL (0.000068)   BEGIN
       +  User Destroy (0.000179)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000635)   COMMIT
       +  SQL (0.000217)   BEGIN
       +  User Destroy (0.000232)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000713)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Create (0.000268)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:11:36', 'test 1', '2008-11-26 16:11:36')
       +  SQL (0.000662)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000268)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:11:36', 'test 2', '2008-11-19 16:11:36')
       +  SQL (0.000718)   COMMIT
       +  SQL (0.000271)   BEGIN
       +  User Create (0.000245)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:11:36', 'test 3', '2008-11-19 16:11:36')
       +  SQL (0.000896)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000390)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000562)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000351)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000245)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:11:36', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:11:36')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000314)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-cumulated_registrations-day' for key 'report_caches_name_klass_grouping': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:11:36', 'cumulated_registrations', 'User', 5.0, 'day', '2008-11-19', '2008-12-03 16:11:36')
       +  SQL (0.000787)   ROLLBACK
       +  User Load (0.000438)   SELECT * FROM `users` 
       +  SQL (0.000217)   BEGIN
       +  User Destroy (0.000259)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000703)   COMMIT
       +  SQL (0.000215)   BEGIN
       +  User Destroy (0.000404)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000746)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Destroy (0.000236)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000702)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000573)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:11:36', 'test 1', '2008-11-26 16:11:36')
       +  SQL (0.000693)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  User Create (0.000319)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:11:36', 'test 2', '2008-11-19 16:11:36')
       +  SQL (0.000715)   COMMIT
       +  SQL (0.002587)   BEGIN
       +  User Create (0.000258)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:11:36', 'test 3', '2008-11-19 16:11:36')
       +  SQL (0.000522)   COMMIT
       +  SQL (0.000077)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000287)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000617)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000329)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000278)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:11:36', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:11:36')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000428)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-cumulated_registrations-day' for key 'report_caches_name_klass_grouping': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:11:36', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-19', '2008-12-03 16:11:36')
       +  SQL (0.000990)   ROLLBACK
       +  User Load (0.000234)   SELECT * FROM `users` 
       +  SQL (0.000072)   BEGIN
       +  User Destroy (0.000188)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000581)   COMMIT
       +  SQL (0.000069)   BEGIN
       +  User Destroy (0.000169)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000404)   COMMIT
       +  SQL (0.000067)   BEGIN
       +  User Destroy (0.000186)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000615)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000369)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000192)   COMMIT
       +  SQL (0.000110)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000365)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000106)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  User Create (0.000219)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:11:36', 'test 1', '2008-11-26 16:11:36')
       +  SQL (0.052340)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000321)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:11:36', 'test 2', '2008-11-19 16:11:36')
       +  SQL (0.065890)   COMMIT
       +  SQL (0.000163)   BEGIN
       +  User Create (0.000271)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:11:37', 'test 3', '2008-11-19 16:11:37')
       +  SQL (0.063982)   COMMIT
       +  SQL (0.000178)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000434)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000375)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000137)   COMMIT
       +  User Load (0.000233)   SELECT * FROM `users` 
       +  SQL (0.000152)   BEGIN
       +  User Destroy (0.000251)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.058559)   COMMIT
       +  SQL (0.000245)   BEGIN
       +  User Destroy (0.000323)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.067449)   COMMIT
       +  SQL (0.000181)   BEGIN
       +  User Destroy (0.000364)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.067061)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000284)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:11:37', 'test 1', '2008-11-26 16:11:37')
       +  SQL (0.085216)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000222)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:11:37', 'test 2', '2008-11-19 16:11:37')
       +  SQL (0.035687)   COMMIT
       +  SQL (0.000127)   BEGIN
       +  User Create (0.000315)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:11:37', 'test 3', '2008-11-19 16:11:37')
       +  SQL (0.062037)   COMMIT
       +  SQL (0.000235)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000513)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000487)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000330)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000313)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:11:37', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:11:37')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000381)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-registrations-day' for key 'report_caches_name_klass_grouping': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:11:37', 'registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:11:37')
       +  SQL (0.000668)   ROLLBACK
       +  User Load (0.000211)   SELECT * FROM `users` 
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000170)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000613)   COMMIT
       +  SQL (0.000116)   BEGIN
       +  User Destroy (0.000145)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000610)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000670)   COMMIT
       +  SQL (0.000156)   BEGIN
       +  User Create (0.000238)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:11:37', 'test 1', '2008-11-26 16:11:37')
       +  SQL (0.000601)   COMMIT
       +  SQL (0.000174)   BEGIN
       +  User Create (0.000237)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:11:37', 'test 2', '2008-11-19 16:11:37')
       +  SQL (0.000524)   COMMIT
       +  SQL (0.000110)   BEGIN
       +  User Create (0.000208)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:11:37', 'test 3', '2008-11-19 16:11:37')
       +  SQL (0.000736)   COMMIT
       +  SQL (0.000237)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000437)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000512)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000340)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000272)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:11:37', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:11:37')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000340)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-registrations-day' for key 'report_caches_name_klass_grouping': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:11:37', 'registrations', 'User', 5.0, 'day', '2008-11-19', '2008-12-03 16:11:37')
       +  SQL (0.000655)   ROLLBACK
       +  User Load (0.000458)   SELECT * FROM `users` 
       +  SQL (0.000203)   BEGIN
       +  User Destroy (0.000252)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000736)   COMMIT
       +  SQL (0.000183)   BEGIN
       +  User Destroy (0.000388)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.001325)   COMMIT
       +  SQL (0.000224)   BEGIN
       +  User Destroy (0.000377)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000778)   COMMIT
       +  SQL (0.000193)   BEGIN
       +  User Create (0.000340)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:11:37', 'test 1', '2008-11-26 16:11:37')
       +  SQL (0.000631)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Create (0.000246)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:11:37', 'test 2', '2008-11-19 16:11:37')
       +  SQL (0.000632)   COMMIT
       +  SQL (0.000098)   BEGIN
       +  User Create (0.000261)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:11:37', 'test 3', '2008-11-19 16:11:37')
       +  SQL (0.000664)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000400)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000548)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000321)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000288)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:11:37', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:11:37')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000401)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000000)   Mysql::Error: Duplicate entry 'User-registrations-day' for key 'report_caches_name_klass_grouping': INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:11:37', 'registrations', 'User', 1.0, 'day', '2008-11-19', '2008-12-03 16:11:37')
       +  SQL (0.000853)   ROLLBACK
       +  User Load (0.000463)   SELECT * FROM `users` 
       +  SQL (0.000204)   BEGIN
       +  User Destroy (0.000317)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000662)   COMMIT
       +  SQL (0.000156)   BEGIN
       +  User Destroy (0.000248)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000730)   COMMIT
       +  SQL (0.000281)   BEGIN
       +  User Destroy (0.000262)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000638)   COMMIT
       +  SQL (0.000369)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000578)   SHOW TABLES
       +  SQL (0.002236)   DROP TABLE `users`
       +  SQL (0.123462)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000888)   SHOW TABLES
       +  SQL (0.002490)   DROP TABLE `report_caches`
       +  SQL (0.218457)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.125474)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.123959)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.000660)   SHOW TABLES
       +  SQL (0.000309)   SELECT version FROM `schema_migrations`
       +  SQL (0.000103)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000787)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.050922)   SHOW FIELDS FROM `users`
       +  SQL (0.070694)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000172)   COMMIT
       +  SQL (0.000312)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000625)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000343)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000137)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Create (0.000225)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:13:31', 'test 1', '2008-11-26 16:13:31')
       +  SQL (0.028789)   COMMIT
       +  SQL (0.000130)   BEGIN
       +  User Create (0.000282)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:13:31', 'test 2', '2008-11-19 16:13:31')
       +  SQL (0.077774)   COMMIT
       +  SQL (0.000191)   BEGIN
       +  User Create (0.000461)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:13:31', 'test 3', '2008-11-19 16:13:31')
       +  SQL (0.028353)   COMMIT
       +  SQL (0.000176)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000608)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.005485)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000378)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.054425)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000351)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:13:31', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:13:31')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000375)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000376)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:13:31', 'cumulated_registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:13:31')
       +  SQL (0.000675)   COMMIT
       +  User Load (0.000293)   SELECT * FROM `users` 
       +  SQL (0.000132)   BEGIN
       +  User Destroy (0.000187)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000589)   COMMIT
       +  SQL (0.000116)   BEGIN
       +  User Destroy (0.000151)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000700)   COMMIT
       +  SQL (0.000324)   BEGIN
       +  User Destroy (0.000385)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000841)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000296)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:13:31', 'test 1', '2008-11-26 16:13:31')
       +  SQL (0.000638)   COMMIT
       +  SQL (0.000146)   BEGIN
       +  User Create (0.000236)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:13:31', 'test 2', '2008-11-19 16:13:31')
       +  SQL (0.000689)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  User Create (0.000250)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:13:31', 'test 3', '2008-11-19 16:13:31')
       +  SQL (0.000662)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000648)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000208)   ROLLBACK
       +  User Load (0.000244)   SELECT * FROM `users` 
       +  SQL (0.000102)   BEGIN
       +  User Destroy (0.000187)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.001152)   COMMIT
       +  SQL (0.000320)   BEGIN
       +  User Destroy (0.000250)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000761)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000300)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000577)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Create (0.000281)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:13:34', 'test 1', '2008-11-26 16:13:34')
       +  SQL (0.000737)   COMMIT
       +  SQL (0.000163)   BEGIN
       +  User Create (0.000240)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:13:34', 'test 2', '2008-11-19 16:13:34')
       +  SQL (0.000667)   COMMIT
       +  SQL (0.000190)   BEGIN
       +  User Create (0.000298)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:13:34', 'test 3', '2008-11-19 16:13:34')
       +  SQL (0.000699)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000751)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000236)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000772)   SHOW TABLES
       +  SQL (0.059817)   DROP TABLE `users`
       +  SQL (0.081048)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000811)   SHOW TABLES
       +  SQL (0.002940)   DROP TABLE `report_caches`
       +  SQL (0.135113)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.126621)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.132334)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.000929)   SHOW TABLES
       +  SQL (0.000388)   SELECT version FROM `schema_migrations`
       +  SQL (0.000104)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000658)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.003190)   SHOW FIELDS FROM `users`
       +  SQL (0.000481)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000190)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000539)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000397)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000114)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  User Create (0.000225)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:13:49', 'test 1', '2008-11-26 16:13:49')
       +  SQL (0.000811)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  User Create (0.000278)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:13:49', 'test 2', '2008-11-19 16:13:49')
       +  SQL (0.001760)   COMMIT
       +  SQL (0.000172)   BEGIN
       +  User Create (0.000344)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:13:49', 'test 3', '2008-11-19 16:13:49')
       +  SQL (0.000579)   COMMIT
       +  SQL (0.000106)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000528)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000452)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000321)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.001590)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000261)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:13:49', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:13:49')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000254)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000185)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:13:49', 'cumulated_registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:13:49')
       +  SQL (0.000686)   COMMIT
       +  User Load (0.000190)   SELECT * FROM `users` 
       +  SQL (0.000159)   BEGIN
       +  User Destroy (0.000202)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000774)   COMMIT
       +  SQL (0.000583)   BEGIN
       +  User Destroy (0.000267)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000771)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  User Destroy (0.000232)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000648)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000249)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:13:49', 'test 1', '2008-11-26 16:13:49')
       +  SQL (0.000675)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Create (0.000282)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:13:49', 'test 2', '2008-11-19 16:13:49')
       +  SQL (0.000732)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Create (0.000239)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:13:49', 'test 3', '2008-11-19 16:13:49')
       +  SQL (0.000636)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000628)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000213)   ROLLBACK
       +  User Load (0.000245)   SELECT * FROM `users` 
       +  SQL (0.000102)   BEGIN
       +  User Destroy (0.000186)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.026699)   COMMIT
       +  SQL (0.000172)   BEGIN
       +  User Destroy (0.000306)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.070248)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Destroy (0.000321)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.096522)   COMMIT
       +  SQL (0.000170)   BEGIN
       +  User Create (0.000290)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:13:53', 'test 1', '2008-11-26 16:13:53')
       +  SQL (0.065536)   COMMIT
       +  SQL (0.000161)   BEGIN
       +  User Create (0.000290)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:13:53', 'test 2', '2008-11-19 16:13:53')
       +  SQL (0.079517)   COMMIT
       +  SQL (0.000173)   BEGIN
       +  User Create (0.000286)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:13:53', 'test 3', '2008-11-19 16:13:53')
       +  SQL (0.040831)   COMMIT
       +  SQL (0.004257)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000602)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000260)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000812)   SHOW TABLES
       +  SQL (0.002251)   DROP TABLE `users`
       +  SQL (0.098263)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001400)   SHOW TABLES
       +  SQL (0.031878)   DROP TABLE `report_caches`
       +  SQL (0.200709)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.135893)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.380850)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.002680)   SHOW TABLES
       +  SQL (0.001057)   SELECT version FROM `schema_migrations`
       +  User Columns (0.037212)   SHOW FIELDS FROM `users`
       +  SQL (0.053131)   BEGIN
       +  User Create (0.000311)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:14:08', 'test 1', '2008-11-26 16:14:08')
       +  SQL (0.068700)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Create (0.000327)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:14:09', 'test 2', '2008-11-19 16:14:09')
       +  SQL (0.049124)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.003872)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:14:09', 'test 3', '2008-11-19 16:14:09')
       +  SQL (0.047362)   COMMIT
       +  SQL (0.000139)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000588)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`model_name` = 'User' AND `report_caches`.`report_grouping` = 'day') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000340)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000238)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`model_name` = 'User' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.001969)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000276)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:14:09', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:14:09')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000273)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`model_name` = 'User' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000168)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:14:09', 'cumulated_registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:14:09')
       +  SQL (0.000688)   COMMIT
       +  User Load (0.000436)   SELECT * FROM `users` 
       +  SQL (0.000201)   BEGIN
       +  User Destroy (0.000262)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000735)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Destroy (0.000483)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000698)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Destroy (0.000245)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000709)   COMMIT
       +  SQL (0.000161)   BEGIN
       +  User Create (0.000312)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:14:09', 'test 1', '2008-11-26 16:14:09')
       +  SQL (0.000622)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Create (0.000257)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:14:09', 'test 2', '2008-11-19 16:14:09')
       +  SQL (0.000727)   COMMIT
       +  SQL (0.000183)   BEGIN
       +  User Create (0.000283)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:14:09', 'test 3', '2008-11-19 16:14:09')
       +  SQL (0.001389)   COMMIT
       +  SQL (0.000221)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000774)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`model_name` = 'User' AND `report_caches`.`report_grouping` = 'day') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000243)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000538)   SHOW TABLES
       +  SQL (0.002231)   DROP TABLE `users`
       +  SQL (0.081803)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001098)   SHOW TABLES
       +  SQL (0.026765)   DROP TABLE `report_caches`
       +  SQL (0.166482)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.127034)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.131111)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.000770)   SHOW TABLES
       +  SQL (0.000307)   SELECT version FROM `schema_migrations`
       +  SQL (0.000091)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.001177)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.071920)   SHOW FIELDS FROM `users`
       +  SQL (0.034851)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000172)   COMMIT
       +  SQL (0.000134)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000519)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000348)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000137)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000221)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:14:51', 'test 1', '2008-11-26 16:14:51')
       +  SQL (0.076941)   COMMIT
       +  SQL (0.000176)   BEGIN
       +  User Create (0.000330)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:14:51', 'test 2', '2008-11-19 16:14:51')
       +  SQL (0.046252)   COMMIT
       +  SQL (0.000190)   BEGIN
       +  User Create (0.000309)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:14:51', 'test 3', '2008-11-19 16:14:51')
       +  SQL (0.050719)   COMMIT
       +  SQL (0.000455)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000700)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.004623)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000143)   COMMIT
       +  User Load (0.000215)   SELECT * FROM `users` 
       +  SQL (0.000094)   BEGIN
       +  User Destroy (0.000208)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.043831)   COMMIT
       +  SQL (0.000174)   BEGIN
       +  User Destroy (0.000418)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000783)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000237)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000721)   COMMIT
       +  SQL (0.000175)   BEGIN
       +  User Create (0.000265)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:14:51', 'test 1', '2008-11-26 16:14:51')
       +  SQL (0.000722)   COMMIT
       +  SQL (0.000175)   BEGIN
       +  User Create (0.000709)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:14:51', 'test 2', '2008-11-19 16:14:51')
       +  SQL (0.000661)   COMMIT
       +  SQL (0.000123)   BEGIN
       +  User Create (0.000235)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:14:51', 'test 3', '2008-11-19 16:14:51')
       +  SQL (0.000697)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000632)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000544)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000156)   COMMIT
       +  User Load (0.000290)   SELECT * FROM `users` 
       +  SQL (0.000147)   BEGIN
       +  User Destroy (0.000269)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000677)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000639)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000224)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.001428)   COMMIT
       +  SQL (0.000175)   BEGIN
       +  User Create (0.000327)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:14:51', 'test 1', '2008-11-26 16:14:51')
       +  SQL (0.000640)   COMMIT
       +  SQL (0.000146)   BEGIN
       +  User Create (0.000206)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:14:51', 'test 2', '2008-11-19 16:14:51')
       +  SQL (0.000712)   COMMIT
       +  SQL (0.000178)   BEGIN
       +  User Create (0.000249)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:14:51', 'test 3', '2008-11-19 16:14:51')
       +  SQL (0.000602)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000578)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000778)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000150)   COMMIT
       +  User Load (0.000300)   SELECT * FROM `users` 
       +  SQL (0.000108)   BEGIN
       +  User Destroy (0.000237)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.001894)   COMMIT
       +  SQL (0.000112)   BEGIN
       +  User Destroy (0.000238)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000718)   COMMIT
       +  SQL (0.000097)   BEGIN
       +  User Destroy (0.000233)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000703)   COMMIT
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002556)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000159)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000422)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000109)   COMMIT
       +  SQL (0.000106)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000407)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000106)   COMMIT
       +  SQL (0.000122)   BEGIN
       +  User Create (0.000195)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:14:51', 'test 1', '2008-11-26 16:14:51')
       +  SQL (0.000771)   COMMIT
       +  SQL (0.000188)   BEGIN
       +  User Create (0.000260)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:14:51', 'test 2', '2008-11-19 16:14:51')
       +  SQL (0.000732)   COMMIT
       +  SQL (0.000217)   BEGIN
       +  User Create (0.000265)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:14:51', 'test 3', '2008-11-19 16:14:51')
       +  SQL (0.000696)   COMMIT
       +  SQL (0.000135)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000638)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000425)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000205)   COMMIT
       +  User Load (0.000275)   SELECT * FROM `users` 
       +  SQL (0.000145)   BEGIN
       +  User Destroy (0.000316)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000673)   COMMIT
       +  SQL (0.000228)   BEGIN
       +  User Destroy (0.000345)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000707)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Destroy (0.000240)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000725)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Create (0.000326)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:14:51', 'test 1', '2008-11-26 16:14:51')
       +  SQL (0.000755)   COMMIT
       +  SQL (0.000381)   BEGIN
       +  User Create (0.000310)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:14:51', 'test 2', '2008-11-19 16:14:51')
       +  SQL (0.000671)   COMMIT
       +  SQL (0.000488)   BEGIN
       +  User Create (0.000251)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:14:51', 'test 3', '2008-11-19 16:14:51')
       +  SQL (0.000649)   COMMIT
       +  SQL (0.000093)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000704)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000406)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000104)   COMMIT
       +  User Load (0.000166)   SELECT * FROM `users` 
       +  SQL (0.000098)   BEGIN
       +  User Destroy (0.000169)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000629)   COMMIT
       +  SQL (0.000125)   BEGIN
       +  User Destroy (0.000144)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000595)   COMMIT
       +  SQL (0.000070)   BEGIN
       +  User Destroy (0.000147)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000807)   COMMIT
       +  SQL (0.000089)   BEGIN
       +  User Create (0.000204)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:14:51', 'test 1', '2008-11-26 16:14:51')
       +  SQL (0.000769)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Create (0.000307)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:14:51', 'test 2', '2008-11-19 16:14:51')
       +  SQL (0.000773)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Create (0.000253)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:14:51', 'test 3', '2008-11-19 16:14:51')
       +  SQL (0.000563)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000556)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000530)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000142)   COMMIT
       +  User Load (0.000245)   SELECT * FROM `users` 
       +  SQL (0.000100)   BEGIN
       +  User Destroy (0.000168)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000691)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Destroy (0.000303)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000635)   COMMIT
       +  SQL (0.000141)   BEGIN
       +  User Destroy (0.000290)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000698)   COMMIT
       +  SQL (0.000161)   BEGIN
       +  User Create (0.000257)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:14:51', 'test 1', '2008-11-26 16:14:51')
       +  SQL (0.000609)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Create (0.000279)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:14:51', 'test 2', '2008-11-19 16:14:51')
       +  SQL (0.000712)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Create (0.000259)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:14:51', 'test 3', '2008-11-19 16:14:51')
       +  SQL (0.000723)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000569)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000513)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000139)   COMMIT
       +  User Load (0.000260)   SELECT * FROM `users` 
       +  SQL (0.001030)   BEGIN
       +  User Destroy (0.000349)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.001179)   COMMIT
       +  SQL (0.000095)   BEGIN
       +  User Destroy (0.000367)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000529)   COMMIT
       +  SQL (0.000073)   BEGIN
       +  User Destroy (0.000150)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000401)   COMMIT
       +  SQL (0.000238)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000546)   SHOW TABLES
       +  SQL (0.002119)   DROP TABLE `users`
       +  SQL (0.127635)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000820)   SHOW TABLES
       +  SQL (0.001629)   DROP TABLE `report_caches`
       +  SQL (0.145461)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.135620)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.276775)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.001057)   SHOW TABLES
       +  SQL (0.000474)   SELECT version FROM `schema_migrations`
       +  SQL (0.000120)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000672)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.029929)   SHOW FIELDS FROM `users`
       +  SQL (0.049706)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000193)   COMMIT
       +  SQL (0.000118)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000543)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000346)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000116)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Create (0.000208)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:15:42', 'test 1', '2008-11-26 16:15:42')
       +  SQL (0.032091)   COMMIT
       +  SQL (0.000176)   BEGIN
       +  User Create (0.000280)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:15:42', 'test 2', '2008-11-19 16:15:42')
       +  SQL (0.047846)   COMMIT
       +  SQL (0.000223)   BEGIN
       +  User Create (0.000274)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:15:43', 'test 3', '2008-11-19 16:15:42')
       +  SQL (0.039651)   COMMIT
       +  SQL (0.000173)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000656)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000456)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000357)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002703)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000330)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:15:43', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:15:43')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000366)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000319)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:15:43', 'cumulated_registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:15:43')
       +  SQL (0.000698)   COMMIT
       +  User Load (0.000523)   SELECT * FROM `users` 
       +  SQL (0.000204)   BEGIN
       +  User Destroy (0.000430)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.001322)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Destroy (0.000248)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000714)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000228)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000674)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000253)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:15:43', 'test 1', '2008-11-26 16:15:43')
       +  SQL (0.000726)   COMMIT
       +  SQL (0.000216)   BEGIN
       +  User Create (0.000236)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:15:43', 'test 2', '2008-11-19 16:15:43')
       +  SQL (0.000713)   COMMIT
       +  SQL (0.000193)   BEGIN
       +  User Create (0.000243)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:15:43', 'test 3', '2008-11-19 16:15:43')
       +  SQL (0.000706)   COMMIT
       +  SQL (0.000201)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000659)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000215)   ROLLBACK
       +  User Load (0.000248)   SELECT * FROM `users` 
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000188)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000999)   COMMIT
       +  SQL (0.000070)   BEGIN
       +  User Destroy (0.000157)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000415)   COMMIT
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000163)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000727)   COMMIT
       +  SQL (0.000182)   BEGIN
       +  User Create (0.000336)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:15:44', 'test 1', '2008-11-26 16:15:44')
       +  SQL (0.000663)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Create (0.000261)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:15:44', 'test 2', '2008-11-19 16:15:44')
       +  SQL (0.000625)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  User Create (0.000264)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:15:44', 'test 3', '2008-11-19 16:15:44')
       +  SQL (0.000580)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000670)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000190)   ROLLBACK
       +  User Load (0.000248)   SELECT * FROM `users` 
       +  SQL (0.000193)   BEGIN
       +  User Destroy (0.000233)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000795)   COMMIT
       +  SQL (0.000097)   BEGIN
       +  User Destroy (0.000154)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000810)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000275)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000713)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000468)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000077)   COMMIT
       +  SQL (0.000109)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000330)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000104)   COMMIT
       +  SQL (0.000120)   BEGIN
       +  User Create (0.000193)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:15:45', 'test 1', '2008-11-26 16:15:45')
       +  SQL (0.000772)   COMMIT
       +  SQL (0.000134)   BEGIN
       +  User Create (0.000264)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:15:45', 'test 2', '2008-11-19 16:15:45')
       +  SQL (0.000694)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:15:45', 'test 3', '2008-11-19 16:15:45')
       +  SQL (0.000736)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000658)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000378)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000140)   COMMIT
       +  User Load (0.000155)   SELECT * FROM `users` 
       +  SQL (0.000098)   BEGIN
       +  User Destroy (0.000163)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000767)   COMMIT
       +  SQL (0.000254)   BEGIN
       +  User Destroy (0.000316)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000837)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Destroy (0.000258)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000675)   COMMIT
       +  SQL (0.000275)   BEGIN
       +  User Create (0.000240)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:15:45', 'test 1', '2008-11-26 16:15:45')
       +  SQL (0.000573)   COMMIT
       +  SQL (0.000109)   BEGIN
       +  User Create (0.000189)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:15:45', 'test 2', '2008-11-19 16:15:45')
       +  SQL (0.000576)   COMMIT
       +  SQL (0.000119)   BEGIN
       +  User Create (0.000175)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:15:45', 'test 3', '2008-11-19 16:15:45')
       +  SQL (0.000633)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000596)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000523)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000344)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000252)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:15:45', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:15:45')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000335)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000262)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:15:45', 'registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:15:45')
       +  SQL (0.000963)   COMMIT
       +  User Load (0.000268)   SELECT * FROM `users` 
       +  SQL (0.000132)   BEGIN
       +  User Destroy (0.000169)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000670)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000266)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000598)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000696)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000250)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:15:45', 'test 1', '2008-11-26 16:15:45')
       +  SQL (0.000650)   COMMIT
       +  SQL (0.000142)   BEGIN
       +  User Create (0.000319)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:15:45', 'test 2', '2008-11-19 16:15:45')
       +  SQL (0.000683)   COMMIT
       +  SQL (0.001696)   BEGIN
       +  User Create (0.000980)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:15:45', 'test 3', '2008-11-19 16:15:45')
       +  SQL (0.000729)   COMMIT
       +  SQL (0.000102)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000551)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000241)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000559)   SHOW TABLES
       +  SQL (0.001743)   DROP TABLE `users`
       +  SQL (0.103050)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000706)   SHOW TABLES
       +  SQL (0.002067)   DROP TABLE `report_caches`
       +  SQL (0.219171)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.144668)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.368520)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.001817)   SHOW TABLES
       +  SQL (0.001144)   SELECT version FROM `schema_migrations`
       +  SQL (0.000119)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000665)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.035145)   SHOW FIELDS FROM `users`
       +  SQL (0.000591)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000104)   COMMIT
       +  SQL (0.000102)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.001013)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000429)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000099)   COMMIT
       +  SQL (0.000136)   BEGIN
       +  User Create (0.000273)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:16:08', 'test 1', '2008-11-26 16:16:08')
       +  SQL (0.028529)   COMMIT
       +  SQL (0.000170)   BEGIN
       +  User Create (0.000271)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:16:08', 'test 2', '2008-11-19 16:16:08')
       +  SQL (0.000706)   COMMIT
       +  SQL (0.000132)   BEGIN
       +  User Create (0.000265)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:16:08', 'test 3', '2008-11-19 16:16:08')
       +  SQL (0.000686)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000572)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000498)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002906)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000328)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:16:08', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:16:08')
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000277)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:16:08', 'cumulated_registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:16:08')
       +  SQL (0.001257)   COMMIT
       +  User Load (0.000456)   SELECT * FROM `users` 
       +  SQL (0.000204)   BEGIN
       +  User Destroy (0.000264)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000731)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000232)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000716)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000289)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000560)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000241)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:16:08', 'test 1', '2008-11-26 16:16:08')
       +  SQL (0.000707)   COMMIT
       +  SQL (0.000177)   BEGIN
       +  User Create (0.000244)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:16:08', 'test 2', '2008-11-19 16:16:08')
       +  SQL (0.000783)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:16:08', 'test 3', '2008-11-19 16:16:08')
       +  SQL (0.000688)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000612)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000208)   ROLLBACK
       +  User Load (0.000245)   SELECT * FROM `users` 
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000187)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.001113)   COMMIT
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000167)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000605)   COMMIT
       +  SQL (0.000360)   BEGIN
       +  User Destroy (0.000386)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000687)   COMMIT
       +  SQL (0.000194)   BEGIN
       +  User Create (0.000268)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:16:11', 'test 1', '2008-11-26 16:16:11')
       +  SQL (0.000719)   COMMIT
       +  SQL (0.000189)   BEGIN
       +  User Create (0.000329)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:16:11', 'test 2', '2008-11-19 16:16:11')
       +  SQL (0.000719)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000317)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:16:11', 'test 3', '2008-11-19 16:16:11')
       +  SQL (0.000622)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000638)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000208)   ROLLBACK
       +  User Load (0.000247)   SELECT * FROM `users` 
       +  SQL (0.000276)   BEGIN
       +  User Destroy (0.000206)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.001171)   COMMIT
       +  SQL (0.000156)   BEGIN
       +  User Destroy (0.000264)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000731)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000287)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000705)   COMMIT
       +  SQL (0.000171)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000624)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000106)   COMMIT
       +  SQL (0.000085)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000370)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000078)   COMMIT
       +  SQL (0.000140)   BEGIN
       +  User Create (0.000234)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:16:14', 'test 1', '2008-11-26 16:16:14')
       +  SQL (0.000701)   COMMIT
       +  SQL (0.000082)   BEGIN
       +  User Create (0.000195)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:16:14', 'test 2', '2008-11-19 16:16:14')
       +  SQL (0.000678)   COMMIT
       +  SQL (0.000108)   BEGIN
       +  User Create (0.000167)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:16:14', 'test 3', '2008-11-19 16:16:14')
       +  SQL (0.000616)   COMMIT
       +  SQL (0.000075)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000396)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000317)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000105)   COMMIT
       +  User Load (0.000214)   SELECT * FROM `users` 
       +  SQL (0.000100)   BEGIN
       +  User Destroy (0.000171)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000699)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000285)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000713)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000233)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000771)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000320)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:16:15', 'test 1', '2008-11-26 16:16:14')
       +  SQL (0.000629)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Create (0.000282)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:16:15', 'test 2', '2008-11-19 16:16:15')
       +  SQL (0.000764)   COMMIT
       +  SQL (0.000211)   BEGIN
       +  User Create (0.000243)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:16:15', 'test 3', '2008-11-19 16:16:15')
       +  SQL (0.000766)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000561)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000430)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000574)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:16:15', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:16:15')
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000308)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:16:15', 'registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:16:15')
       +  SQL (0.000932)   COMMIT
       +  User Load (0.000260)   SELECT * FROM `users` 
       +  SQL (0.000098)   BEGIN
       +  User Destroy (0.000286)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000665)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Destroy (0.000233)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000666)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Destroy (0.000226)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000917)   COMMIT
       +  SQL (0.000126)   BEGIN
       +  User Create (0.000258)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:16:15', 'test 1', '2008-11-26 16:16:15')
       +  SQL (0.000772)   COMMIT
       +  SQL (0.000211)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:16:15', 'test 2', '2008-11-19 16:16:15')
       +  SQL (0.000632)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  User Create (0.000246)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:16:15', 'test 3', '2008-11-19 16:16:15')
       +  SQL (0.000820)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000665)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000239)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000632)   SHOW TABLES
       +  SQL (0.002013)   DROP TABLE `users`
       +  SQL (0.138759)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000712)   SHOW TABLES
       +  SQL (0.001679)   DROP TABLE `report_caches`
       +  SQL (0.151454)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.135904)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.366529)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.000782)   SHOW TABLES
       +  SQL (0.000387)   SELECT version FROM `schema_migrations`
       +  SQL (0.000096)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.001247)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.046747)   SHOW FIELDS FROM `users`
       +  SQL (0.070936)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000148)   COMMIT
       +  SQL (0.005006)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000561)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000961)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000142)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Create (0.000228)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:16:38', 'test 1', '2008-11-26 16:16:38')
       +  SQL (0.026627)   COMMIT
       +  SQL (0.000219)   BEGIN
       +  User Create (0.000282)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:16:38', 'test 2', '2008-11-19 16:16:38')
       +  SQL (0.000742)   COMMIT
       +  SQL (0.000228)   BEGIN
       +  User Create (0.000352)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:16:38', 'test 3', '2008-11-19 16:16:38')
       +  SQL (0.000903)   COMMIT
       +  SQL (0.000277)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000583)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000711)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000117)   COMMIT
       +  User Load (0.000266)   SELECT * FROM `users` 
       +  SQL (0.000136)   BEGIN
       +  User Destroy (0.000234)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000848)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000271)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000664)   COMMIT
       +  SQL (0.000182)   BEGIN
       +  User Destroy (0.000370)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.001085)   COMMIT
       +  SQL (0.000210)   BEGIN
       +  User Create (0.000303)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:16:38', 'test 1', '2008-11-26 16:16:38')
       +  SQL (0.000735)   COMMIT
       +  SQL (0.000184)   BEGIN
       +  User Create (0.000295)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:16:38', 'test 2', '2008-11-19 16:16:38')
       +  SQL (0.000708)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  User Create (0.000232)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:16:38', 'test 3', '2008-11-19 16:16:38')
       +  SQL (0.000557)   COMMIT
       +  SQL (0.000228)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000820)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000423)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000137)   COMMIT
       +  User Load (0.000241)   SELECT * FROM `users` 
       +  SQL (0.000130)   BEGIN
       +  User Destroy (0.000159)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000791)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000618)   COMMIT
       +  SQL (0.000121)   BEGIN
       +  User Destroy (0.000221)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000520)   COMMIT
       +  SQL (0.000104)   BEGIN
       +  User Create (0.000197)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:16:38', 'test 1', '2008-11-26 16:16:38')
       +  SQL (0.000587)   COMMIT
       +  SQL (0.000099)   BEGIN
       +  User Create (0.000186)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:16:38', 'test 2', '2008-11-19 16:16:38')
       +  SQL (0.000605)   COMMIT
       +  SQL (0.000085)   BEGIN
       +  User Create (0.000139)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:16:38', 'test 3', '2008-11-19 16:16:38')
       +  SQL (0.000484)   COMMIT
       +  SQL (0.000088)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000393)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000352)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000104)   COMMIT
       +  User Load (0.000168)   SELECT * FROM `users` 
       +  SQL (0.000099)   BEGIN
       +  User Destroy (0.000162)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000684)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  User Destroy (0.000243)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000654)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Destroy (0.000633)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000748)   COMMIT
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002063)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000166)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000552)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000121)   COMMIT
       +  SQL (0.000081)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000377)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000088)   COMMIT
       +  SQL (0.000136)   BEGIN
       +  User Create (0.000196)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:16:38', 'test 1', '2008-11-26 16:16:38')
       +  SQL (0.000737)   COMMIT
       +  SQL (0.000192)   BEGIN
       +  User Create (0.000262)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:16:38', 'test 2', '2008-11-19 16:16:38')
       +  SQL (0.000609)   COMMIT
       +  SQL (0.000125)   BEGIN
       +  User Create (0.000257)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:16:38', 'test 3', '2008-11-19 16:16:38')
       +  SQL (0.000701)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000600)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000351)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000137)   COMMIT
       +  User Load (0.000231)   SELECT * FROM `users` 
       +  SQL (0.000130)   BEGIN
       +  User Destroy (0.000219)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000669)   COMMIT
       +  SQL (0.000201)   BEGIN
       +  User Destroy (0.000237)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000681)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000641)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Create (0.000234)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:16:38', 'test 1', '2008-11-26 16:16:38')
       +  SQL (0.000551)   COMMIT
       +  SQL (0.000120)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:16:38', 'test 2', '2008-11-19 16:16:38')
       +  SQL (0.000665)   COMMIT
       +  SQL (0.000229)   BEGIN
       +  User Create (0.000312)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:16:38', 'test 3', '2008-11-19 16:16:38')
       +  SQL (0.001341)   COMMIT
       +  SQL (0.000228)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000630)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000669)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000118)   COMMIT
       +  User Load (0.000305)   SELECT * FROM `users` 
       +  SQL (0.000102)   BEGIN
       +  User Destroy (0.000255)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000578)   COMMIT
       +  SQL (0.000110)   BEGIN
       +  User Destroy (0.000268)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000469)   COMMIT
       +  SQL (0.000068)   BEGIN
       +  User Destroy (0.000144)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000386)   COMMIT
       +  SQL (0.000086)   BEGIN
       +  User Create (0.000341)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:16:38', 'test 1', '2008-11-26 16:16:38')
       +  SQL (0.000719)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  User Create (0.000246)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:16:38', 'test 2', '2008-11-19 16:16:38')
       +  SQL (0.000612)   COMMIT
       +  SQL (0.000141)   BEGIN
       +  User Create (0.000218)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:16:38', 'test 3', '2008-11-19 16:16:38')
       +  SQL (0.000630)   COMMIT
       +  SQL (0.000252)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000584)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000461)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000126)   COMMIT
       +  User Load (0.000216)   SELECT * FROM `users` 
       +  SQL (0.000154)   BEGIN
       +  User Destroy (0.000181)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000754)   COMMIT
       +  SQL (0.000210)   BEGIN
       +  User Destroy (0.000234)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000706)   COMMIT
       +  SQL (0.000124)   BEGIN
       +  User Destroy (0.000324)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000520)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Create (0.000287)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:16:38', 'test 1', '2008-11-26 16:16:38')
       +  SQL (0.000674)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  User Create (0.000257)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:16:38', 'test 2', '2008-11-19 16:16:38')
       +  SQL (0.000734)   COMMIT
       +  SQL (0.000224)   BEGIN
       +  User Create (0.000268)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:16:38', 'test 3', '2008-11-19 16:16:38')
       +  SQL (0.000656)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000553)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000490)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000138)   COMMIT
       +  User Load (0.000250)   SELECT * FROM `users` 
       +  SQL (0.000132)   BEGIN
       +  User Destroy (0.000218)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000710)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Destroy (0.000280)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.001668)   COMMIT
       +  SQL (0.000184)   BEGIN
       +  User Destroy (0.000353)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000614)   COMMIT
       +  SQL (0.000240)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000556)   SHOW TABLES
       +  SQL (0.032349)   DROP TABLE `users`
       +  SQL (0.065509)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000821)   SHOW TABLES
       +  SQL (0.002755)   DROP TABLE `report_caches`
       +  SQL (0.135687)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.137950)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.142954)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.000858)   SHOW TABLES
       +  SQL (0.000280)   SELECT version FROM `schema_migrations`
       +  SQL (0.000117)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000785)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.066080)   SHOW FIELDS FROM `users`
       +  SQL (0.042034)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000175)   ROLLBACK
       +  SQL (0.000139)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000519)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000404)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000163)   ROLLBACK
       +  SQL (0.000148)   BEGIN
       +  User Create (0.000216)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:17:22', 'test 1', '2008-11-26 16:17:22')
       +  SQL (0.040690)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000301)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:17:22', 'test 2', '2008-11-19 16:17:22')
       +  SQL (0.058609)   COMMIT
       +  SQL (0.000134)   BEGIN
       +  User Create (0.000285)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:17:22', 'test 3', '2008-11-19 16:17:22')
       +  SQL (0.087619)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000690)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000449)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000181)   ROLLBACK
       +  User Load (0.000290)   SELECT * FROM `users` 
       +  SQL (0.000116)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.034914)   COMMIT
       +  SQL (0.000225)   BEGIN
       +  User Destroy (0.000330)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000631)   COMMIT
       +  SQL (0.000113)   BEGIN
       +  User Destroy (0.000243)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.059741)   COMMIT
       +  SQL (0.000191)   BEGIN
       +  User Create (0.000305)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:17:23', 'test 1', '2008-11-26 16:17:23')
       +  SQL (0.000799)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000224)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:17:23', 'test 2', '2008-11-19 16:17:23')
       +  SQL (0.000635)   COMMIT
       +  SQL (0.000128)   BEGIN
       +  User Create (0.000238)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:17:23', 'test 3', '2008-11-19 16:17:23')
       +  SQL (0.000681)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000588)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000518)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000169)   ROLLBACK
       +  User Load (0.000276)   SELECT * FROM `users` 
       +  SQL (0.000157)   BEGIN
       +  User Destroy (0.000262)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000726)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Destroy (0.000237)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000719)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000759)   COMMIT
       +  SQL (0.000314)   BEGIN
       +  User Create (0.000282)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:17:23', 'test 1', '2008-11-26 16:17:23')
       +  SQL (0.000750)   COMMIT
       +  SQL (0.000156)   BEGIN
       +  User Create (0.000261)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:17:23', 'test 2', '2008-11-19 16:17:23')
       +  SQL (0.000724)   COMMIT
       +  SQL (0.000171)   BEGIN
       +  User Create (0.000234)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:17:23', 'test 3', '2008-11-19 16:17:23')
       +  SQL (0.000711)   COMMIT
       +  SQL (0.000217)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.001580)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000916)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000127)   ROLLBACK
       +  User Load (0.000313)   SELECT * FROM `users` 
       +  SQL (0.000096)   BEGIN
       +  User Destroy (0.000264)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000539)   COMMIT
       +  SQL (0.000140)   BEGIN
       +  User Destroy (0.000191)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000593)   COMMIT
       +  SQL (0.000092)   BEGIN
       +  User Destroy (0.000271)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000617)   COMMIT
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002679)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000160)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000450)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000124)   ROLLBACK
       +  SQL (0.000114)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000326)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000110)   ROLLBACK
       +  SQL (0.000130)   BEGIN
       +  User Create (0.000189)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:17:23', 'test 1', '2008-11-26 16:17:23')
       +  SQL (0.000560)   COMMIT
       +  SQL (0.000115)   BEGIN
       +  User Create (0.000195)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:17:23', 'test 2', '2008-11-19 16:17:23')
       +  SQL (0.001235)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Create (0.000255)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:17:23', 'test 3', '2008-11-19 16:17:23')
       +  SQL (0.000797)   COMMIT
       +  SQL (0.000190)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000593)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000353)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000149)   ROLLBACK
       +  User Load (0.000258)   SELECT * FROM `users` 
       +  SQL (0.000136)   BEGIN
       +  User Destroy (0.000226)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000650)   COMMIT
       +  SQL (0.000182)   BEGIN
       +  User Destroy (0.000364)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000616)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  User Destroy (0.000234)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000672)   COMMIT
       +  SQL (0.000168)   BEGIN
       +  User Create (0.000267)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:17:23', 'test 1', '2008-11-26 16:17:23')
       +  SQL (0.000599)   COMMIT
       +  SQL (0.000182)   BEGIN
       +  User Create (0.000328)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:17:23', 'test 2', '2008-11-19 16:17:23')
       +  SQL (0.000647)   COMMIT
       +  SQL (0.000120)   BEGIN
       +  User Create (0.000416)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:17:23', 'test 3', '2008-11-19 16:17:23')
       +  SQL (0.000802)   COMMIT
       +  SQL (0.000110)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000603)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000356)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000116)   ROLLBACK
       +  User Load (0.000146)   SELECT * FROM `users` 
       +  SQL (0.000100)   BEGIN
       +  User Destroy (0.000167)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000672)   COMMIT
       +  SQL (0.000068)   BEGIN
       +  User Destroy (0.000144)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000625)   COMMIT
       +  SQL (0.000194)   BEGIN
       +  User Destroy (0.000168)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000640)   COMMIT
       +  SQL (0.000118)   BEGIN
       +  User Create (0.000180)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:17:23', 'test 1', '2008-11-26 16:17:23')
       +  SQL (0.000829)   COMMIT
       +  SQL (0.000076)   BEGIN
       +  User Create (0.000171)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:17:23', 'test 2', '2008-11-19 16:17:23')
       +  SQL (0.000536)   COMMIT
       +  SQL (0.000100)   BEGIN
       +  User Create (0.000146)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:17:23', 'test 3', '2008-11-19 16:17:23')
       +  SQL (0.000667)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000554)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000431)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000160)   ROLLBACK
       +  User Load (0.000240)   SELECT * FROM `users` 
       +  SQL (0.000139)   BEGIN
       +  User Destroy (0.000162)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000649)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  User Destroy (0.000297)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000752)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Destroy (0.000338)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000693)   COMMIT
       +  SQL (0.000161)   BEGIN
       +  User Create (0.000260)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:17:23', 'test 1', '2008-11-26 16:17:23')
       +  SQL (0.000764)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Create (0.000215)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:17:23', 'test 2', '2008-11-19 16:17:23')
       +  SQL (0.000665)   COMMIT
       +  SQL (0.000171)   BEGIN
       +  User Create (0.000257)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:17:23', 'test 3', '2008-11-19 16:17:23')
       +  SQL (0.000841)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000540)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000550)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000176)   ROLLBACK
       +  User Load (0.000271)   SELECT * FROM `users` 
       +  SQL (0.000144)   BEGIN
       +  User Destroy (0.000242)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.008582)   COMMIT
       +  SQL (0.000115)   BEGIN
       +  User Destroy (0.000449)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000883)   COMMIT
       +  SQL (0.000175)   BEGIN
       +  User Destroy (0.000278)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000742)   COMMIT
       +  SQL (0.000883)   SHOW TABLES
       +  SQL (0.000559)   SHOW TABLES
       +  SQL (0.000540)   SHOW TABLES
       +  SQL (0.000512)   SHOW TABLES
       +  SQL (0.000609)   SHOW TABLES
       +  SQL (0.000629)   SHOW TABLES
       +  SQL (0.000580)   SHOW TABLES
       +  SQL (0.000681)   SHOW TABLES
       +  SQL (0.000581)   SHOW TABLES
       +  SQL (0.000240)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000561)   SHOW TABLES
       +  SQL (0.002171)   DROP TABLE `users`
       +  SQL (0.070629)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001155)   SHOW TABLES
       +  SQL (0.002614)   DROP TABLE `report_caches`
       +  SQL (0.156183)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.135093)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.599602)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.000936)   SHOW TABLES
       +  SQL (0.000251)   SELECT version FROM `schema_migrations`
       +  SQL (0.000116)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000812)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.005806)   SHOW FIELDS FROM `users`
       +  SQL (0.000552)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000254)   ROLLBACK
       +  SQL (0.000166)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000559)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000412)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000217)   ROLLBACK
       +  SQL (0.000147)   BEGIN
       +  User Create (0.000252)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:17:36', 'test 1', '2008-11-26 16:17:36')
       +  SQL (0.000810)   COMMIT
       +  SQL (0.000140)   BEGIN
       +  User Create (0.000272)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:17:36', 'test 2', '2008-11-19 16:17:36')
       +  SQL (0.000754)   COMMIT
       +  SQL (0.000888)   BEGIN
       +  User Create (0.000323)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:17:36', 'test 3', '2008-11-19 16:17:36')
       +  SQL (0.000715)   COMMIT
       +  SQL (0.000132)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000848)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000484)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000130)   ROLLBACK
       +  User Load (0.000236)   SELECT * FROM `users` 
       +  SQL (0.000105)   BEGIN
       +  User Destroy (0.000286)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000683)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Destroy (0.000273)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000624)   COMMIT
       +  SQL (0.000142)   BEGIN
       +  User Destroy (0.000284)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000843)   COMMIT
       +  SQL (0.000163)   BEGIN
       +  User Create (0.000364)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:17:36', 'test 1', '2008-11-26 16:17:36')
       +  SQL (0.000758)   COMMIT
       +  SQL (0.000183)   BEGIN
       +  User Create (0.000316)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:17:36', 'test 2', '2008-11-19 16:17:36')
       +  SQL (0.000718)   COMMIT
       +  SQL (0.000201)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:17:36', 'test 3', '2008-11-19 16:17:36')
       +  SQL (0.000776)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000624)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000539)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000184)   ROLLBACK
       +  User Load (0.000358)   SELECT * FROM `users` 
       +  SQL (0.000146)   BEGIN
       +  User Destroy (0.000294)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000748)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Destroy (0.000255)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000764)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.001307)   COMMIT
       +  SQL (0.000183)   BEGIN
       +  User Create (0.000330)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:17:36', 'test 1', '2008-11-26 16:17:36')
       +  SQL (0.000764)   COMMIT
       +  SQL (0.000176)   BEGIN
       +  User Create (0.000245)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:17:36', 'test 2', '2008-11-19 16:17:36')
       +  SQL (0.000523)   COMMIT
       +  SQL (0.000138)   BEGIN
       +  User Create (0.000207)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:17:36', 'test 3', '2008-11-19 16:17:36')
       +  SQL (0.000693)   COMMIT
       +  SQL (0.000272)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000954)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000643)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000136)   ROLLBACK
       +  User Load (0.000261)   SELECT * FROM `users` 
       +  SQL (0.000109)   BEGIN
       +  User Destroy (0.000227)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000578)   COMMIT
       +  SQL (0.000105)   BEGIN
       +  User Destroy (0.000218)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000608)   COMMIT
       +  SQL (0.000104)   BEGIN
       +  User Destroy (0.000506)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000641)   COMMIT
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002959)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000155)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000425)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000099)   ROLLBACK
       +  SQL (0.000110)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000332)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000100)   ROLLBACK
       +  SQL (0.000139)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:17:36', 'test 1', '2008-11-26 16:17:36')
       +  SQL (0.000763)   COMMIT
       +  SQL (0.000140)   BEGIN
       +  User Create (0.000371)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:17:36', 'test 2', '2008-11-19 16:17:36')
       +  SQL (0.000650)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000225)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:17:36', 'test 3', '2008-11-19 16:17:36')
       +  SQL (0.000652)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000587)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000444)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000169)   ROLLBACK
       +  User Load (0.000285)   SELECT * FROM `users` 
       +  SQL (0.000146)   BEGIN
       +  User Destroy (0.000251)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000729)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  User Destroy (0.000233)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000559)   COMMIT
       +  SQL (0.000118)   BEGIN
       +  User Destroy (0.000301)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000648)   COMMIT
       +  SQL (0.000175)   BEGIN
       +  User Create (0.000287)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:17:36', 'test 1', '2008-11-26 16:17:36')
       +  SQL (0.000725)   COMMIT
       +  SQL (0.000273)   BEGIN
       +  User Create (0.000350)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:17:36', 'test 2', '2008-11-19 16:17:36')
       +  SQL (0.000719)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Create (0.000252)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:17:36', 'test 3', '2008-11-19 16:17:36')
       +  SQL (0.000513)   COMMIT
       +  SQL (0.000104)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000543)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000867)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000231)   ROLLBACK
       +  User Load (0.000258)   SELECT * FROM `users` 
       +  SQL (0.000132)   BEGIN
       +  User Destroy (0.000221)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000744)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  User Destroy (0.000291)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000573)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Destroy (0.000233)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000661)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000353)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:17:36', 'test 1', '2008-11-26 16:17:36')
       +  SQL (0.000589)   COMMIT
       +  SQL (0.000186)   BEGIN
       +  User Create (0.000257)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:17:36', 'test 2', '2008-11-19 16:17:36')
       +  SQL (0.000722)   COMMIT
       +  SQL (0.000183)   BEGIN
       +  User Create (0.000236)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:17:36', 'test 3', '2008-11-19 16:17:36')
       +  SQL (0.000670)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000574)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000443)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000161)   ROLLBACK
       +  User Load (0.000336)   SELECT * FROM `users` 
       +  SQL (0.000070)   BEGIN
       +  User Destroy (0.000169)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000638)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  User Destroy (0.000236)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000655)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  User Destroy (0.000277)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000608)   COMMIT
       +  SQL (0.000237)   BEGIN
       +  User Create (0.000250)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:17:36', 'test 1', '2008-11-26 16:17:36')
       +  SQL (0.000614)   COMMIT
       +  SQL (0.000210)   BEGIN
       +  User Create (0.000491)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:17:36', 'test 2', '2008-11-19 16:17:36')
       +  SQL (0.000590)   COMMIT
       +  SQL (0.000107)   BEGIN
       +  User Create (0.000188)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:17:36', 'test 3', '2008-11-19 16:17:36')
       +  SQL (0.001265)   COMMIT
       +  SQL (0.000216)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000611)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000854)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000147)   ROLLBACK
       +  User Load (0.000355)   SELECT * FROM `users` 
       +  SQL (0.000135)   BEGIN
       +  User Destroy (0.000585)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000778)   COMMIT
       +  SQL (0.000110)   BEGIN
       +  User Destroy (0.000222)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000470)   COMMIT
       +  SQL (0.000102)   BEGIN
       +  User Destroy (0.000172)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000475)   COMMIT
       +  SQL (0.000658)   SHOW TABLES
       +  SQL (0.000494)   SHOW TABLES
       +  SQL (0.000425)   SHOW TABLES
       +  SQL (0.000333)   SHOW TABLES
       +  SQL (0.000330)   SHOW TABLES
       +  SQL (0.000329)   SHOW TABLES
       +  SQL (0.000321)   SHOW TABLES
       +  SQL (0.000347)   SHOW TABLES
       +  SQL (0.000336)   SHOW TABLES
       +  SQL (0.000252)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000734)   SHOW TABLES
       +  SQL (0.039171)   DROP TABLE `users`
       +  SQL (0.304357)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000934)   SHOW TABLES
       +  SQL (0.001844)   DROP TABLE `report_caches`
       +  SQL (0.165979)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.329324)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.139918)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.001329)   SHOW TABLES
       +  SQL (0.000371)   SELECT version FROM `schema_migrations`
       +  SQL (0.000111)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000823)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.002537)   SHOW FIELDS FROM `users`
       +  SQL (0.000822)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000117)   COMMIT
       +  SQL (0.000106)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000365)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000302)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000106)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000224)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:17:48', 'test 1', '2008-11-26 16:17:48')
       +  SQL (0.000789)   COMMIT
       +  SQL (0.000103)   BEGIN
       +  User Create (0.000164)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:17:48', 'test 2', '2008-11-19 16:17:48')
       +  SQL (0.000673)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:17:48', 'test 3', '2008-11-19 16:17:48')
       +  SQL (0.000700)   COMMIT
       +  SQL (0.000179)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000592)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000471)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000159)   ROLLBACK
       +  User Load (0.000236)   SELECT * FROM `users` 
       +  SQL (0.000135)   BEGIN
       +  User Destroy (0.000170)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000677)   COMMIT
       +  SQL (0.000100)   BEGIN
       +  User Destroy (0.000151)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.001041)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  User Destroy (0.000316)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.001421)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000256)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:17:48', 'test 1', '2008-11-26 16:17:48')
       +  SQL (0.000522)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Create (0.000207)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:17:48', 'test 2', '2008-11-19 16:17:48')
       +  SQL (0.000718)   COMMIT
       +  SQL (0.000133)   BEGIN
       +  User Create (0.000261)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:17:48', 'test 3', '2008-11-19 16:17:48')
       +  SQL (0.000794)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000712)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000454)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000164)   ROLLBACK
       +  User Load (0.000243)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000222)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000676)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000256)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000719)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Destroy (0.000346)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000703)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000293)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:17:48', 'test 1', '2008-11-26 16:17:48')
       +  SQL (0.000562)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Create (0.000230)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:17:48', 'test 2', '2008-11-19 16:17:48')
       +  SQL (0.000648)   COMMIT
       +  SQL (0.000229)   BEGIN
       +  User Create (0.000263)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:17:48', 'test 3', '2008-11-19 16:17:48')
       +  SQL (0.000619)   COMMIT
       +  SQL (0.000145)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000565)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000473)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000170)   ROLLBACK
       +  User Load (0.000253)   SELECT * FROM `users` 
       +  SQL (0.000122)   BEGIN
       +  User Destroy (0.000242)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000695)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000233)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000562)   COMMIT
       +  SQL (0.000998)   BEGIN
       +  User Destroy (0.000384)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000726)   COMMIT
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002857)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000163)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000451)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000093)   COMMIT
       +  SQL (0.000107)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000350)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000105)   COMMIT
       +  SQL (0.000134)   BEGIN
       +  User Create (0.000210)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:17:48', 'test 1', '2008-11-26 16:17:48')
       +  SQL (0.000782)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Create (0.000248)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:17:48', 'test 2', '2008-11-19 16:17:48')
       +  SQL (0.000758)   COMMIT
       +  SQL (0.000268)   BEGIN
       +  User Create (0.000265)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:17:48', 'test 3', '2008-11-19 16:17:48')
       +  SQL (0.000740)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000581)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000356)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000112)   COMMIT
       +  User Load (0.000251)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000205)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000589)   COMMIT
       +  SQL (0.000105)   BEGIN
       +  User Destroy (0.000130)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.001133)   COMMIT
       +  SQL (0.000567)   BEGIN
       +  User Destroy (0.000574)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000561)   COMMIT
       +  SQL (0.000111)   BEGIN
       +  User Create (0.000344)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:17:48', 'test 1', '2008-11-26 16:17:48')
       +  SQL (0.000551)   COMMIT
       +  SQL (0.000082)   BEGIN
       +  User Create (0.000175)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:17:48', 'test 2', '2008-11-19 16:17:48')
       +  SQL (0.002224)   COMMIT
       +  SQL (0.000183)   BEGIN
       +  User Create (0.000296)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:17:48', 'test 3', '2008-11-19 16:17:48')
       +  SQL (0.000497)   COMMIT
       +  SQL (0.000070)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000453)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000349)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000243)   ROLLBACK
       +  User Load (0.000309)   SELECT * FROM `users` 
       +  SQL (0.000102)   BEGIN
       +  User Destroy (0.000179)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000674)   COMMIT
       +  SQL (0.000292)   BEGIN
       +  User Destroy (0.000244)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000661)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000226)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000694)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000277)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:17:48', 'test 1', '2008-11-26 16:17:48')
       +  SQL (0.001425)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Create (0.000255)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:17:48', 'test 2', '2008-11-19 16:17:48')
       +  SQL (0.000652)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:17:48', 'test 3', '2008-11-19 16:17:48')
       +  SQL (0.000590)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000609)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000451)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000158)   ROLLBACK
       +  User Load (0.000257)   SELECT * FROM `users` 
       +  SQL (0.000093)   BEGIN
       +  User Destroy (0.000243)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000666)   COMMIT
       +  SQL (0.000146)   BEGIN
       +  User Destroy (0.000238)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000679)   COMMIT
       +  SQL (0.000187)   BEGIN
       +  User Destroy (0.000458)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000780)   COMMIT
       +  SQL (0.000163)   BEGIN
       +  User Create (0.000260)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:17:48', 'test 1', '2008-11-26 16:17:48')
       +  SQL (0.000702)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Create (0.000228)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:17:48', 'test 2', '2008-11-19 16:17:48')
       +  SQL (0.000696)   COMMIT
       +  SQL (0.000128)   BEGIN
       +  User Create (0.000214)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:17:48', 'test 3', '2008-11-19 16:17:48')
       +  SQL (0.000719)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000606)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.001631)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000292)   ROLLBACK
       +  User Load (0.000336)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000305)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000769)   COMMIT
       +  SQL (0.000105)   BEGIN
       +  User Destroy (0.000211)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000609)   COMMIT
       +  SQL (0.000194)   BEGIN
       +  User Destroy (0.000162)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000658)   COMMIT
       +  SQL (0.000730)   SHOW TABLES
       +  SQL (0.000528)   SHOW TABLES
       +  SQL (0.000749)   SHOW TABLES
       +  SQL (0.000459)   SHOW TABLES
       +  SQL (0.000581)   SHOW TABLES
       +  SQL (0.000964)   SHOW TABLES
       +  SQL (0.000251)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000550)   SHOW TABLES
       +  SQL (0.050046)   DROP TABLE `users`
       +  SQL (0.291011)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000745)   SHOW TABLES
       +  SQL (0.071029)   DROP TABLE `report_caches`
       +  SQL (0.255355)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.111170)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.153663)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.001152)   SHOW TABLES
       +  SQL (0.000401)   SELECT version FROM `schema_migrations`
       +  SQL (0.000112)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.001203)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.002324)   SHOW FIELDS FROM `users`
       +  SQL (0.000488)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000121)   ROLLBACK
       +  SQL (0.000083)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000373)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000240)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000084)   ROLLBACK
       +  SQL (0.000153)   BEGIN
       +  User Create (0.000220)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:18:06', 'test 1', '2008-11-26 16:18:06')
       +  SQL (0.001058)   COMMIT
       +  SQL (0.000193)   BEGIN
       +  User Create (0.000242)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:18:06', 'test 2', '2008-11-19 16:18:06')
       +  SQL (0.000826)   COMMIT
       +  SQL (0.000211)   BEGIN
       +  User Create (0.000217)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:18:06', 'test 3', '2008-11-19 16:18:06')
       +  SQL (0.000483)   COMMIT
       +  SQL (0.000179)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.002736)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000443)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000125)   ROLLBACK
       +  User Load (0.000220)   SELECT * FROM `users` 
       +  SQL (0.000099)   BEGIN
       +  User Destroy (0.000220)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000508)   COMMIT
       +  SQL (0.000095)   BEGIN
       +  User Destroy (0.000312)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000533)   COMMIT
       +  SQL (0.000091)   BEGIN
       +  User Destroy (0.000227)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000527)   COMMIT
       +  SQL (0.000115)   BEGIN
       +  User Create (0.000200)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:18:06', 'test 1', '2008-11-26 16:18:06')
       +  SQL (0.000528)   COMMIT
       +  SQL (0.000119)   BEGIN
       +  User Create (0.000183)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:18:06', 'test 2', '2008-11-19 16:18:06')
       +  SQL (0.000688)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000242)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:18:06', 'test 3', '2008-11-19 16:18:06')
       +  SQL (0.001121)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000602)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000457)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000195)   ROLLBACK
       +  User Load (0.000238)   SELECT * FROM `users` 
       +  SQL (0.000106)   BEGIN
       +  User Destroy (0.000212)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000674)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  User Destroy (0.000270)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000579)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Destroy (0.000242)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000685)   COMMIT
       +  SQL (0.000606)   BEGIN
       +  User Create (0.000274)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:18:06', 'test 1', '2008-11-26 16:18:06')
       +  SQL (0.000710)   COMMIT
       +  SQL (0.000115)   BEGIN
       +  User Create (0.000243)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:18:06', 'test 2', '2008-11-19 16:18:06')
       +  SQL (0.000611)   COMMIT
       +  SQL (0.000171)   BEGIN
       +  User Create (0.000254)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:18:06', 'test 3', '2008-11-19 16:18:06')
       +  SQL (0.000643)   COMMIT
       +  SQL (0.000201)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000568)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000545)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000176)   ROLLBACK
       +  User Load (0.000268)   SELECT * FROM `users` 
       +  SQL (0.000145)   BEGIN
       +  User Destroy (0.000248)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000692)   COMMIT
       +  SQL (0.000184)   BEGIN
       +  User Destroy (0.000380)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000727)   COMMIT
       +  SQL (0.001144)   BEGIN
       +  User Destroy (0.000406)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000617)   COMMIT
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002794)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.002017)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000459)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000098)   ROLLBACK
       +  SQL (0.000084)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000899)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000560)   ROLLBACK
       +  SQL (0.000130)   BEGIN
       +  User Create (0.000314)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:18:06', 'test 1', '2008-11-26 16:18:06')
       +  SQL (0.000716)   COMMIT
       +  SQL (0.000112)   BEGIN
       +  User Create (0.000221)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:18:06', 'test 2', '2008-11-19 16:18:06')
       +  SQL (0.000692)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  User Create (0.000260)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:18:06', 'test 3', '2008-11-19 16:18:06')
       +  SQL (0.000576)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000686)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000362)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000148)   ROLLBACK
       +  User Load (0.000233)   SELECT * FROM `users` 
       +  SQL (0.000129)   BEGIN
       +  User Destroy (0.000218)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000763)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000228)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.001374)   COMMIT
       +  SQL (0.000224)   BEGIN
       +  User Destroy (0.000304)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000707)   COMMIT
       +  SQL (0.000243)   BEGIN
       +  User Create (0.000299)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:18:06', 'test 1', '2008-11-26 16:18:06')
       +  SQL (0.000705)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  User Create (0.000354)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:18:06', 'test 2', '2008-11-19 16:18:06')
       +  SQL (0.000632)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  User Create (0.000322)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:18:06', 'test 3', '2008-11-19 16:18:06')
       +  SQL (0.001070)   COMMIT
       +  SQL (0.000118)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000621)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000515)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000105)   ROLLBACK
       +  User Load (0.000188)   SELECT * FROM `users` 
       +  SQL (0.000083)   BEGIN
       +  User Destroy (0.000181)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000590)   COMMIT
       +  SQL (0.000069)   BEGIN
       +  User Destroy (0.000216)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000611)   COMMIT
       +  SQL (0.000227)   BEGIN
       +  User Destroy (0.000244)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000698)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  User Create (0.000284)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:18:06', 'test 1', '2008-11-26 16:18:06')
       +  SQL (0.000664)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000268)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:18:06', 'test 2', '2008-11-19 16:18:06')
       +  SQL (0.000643)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Create (0.000240)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:18:06', 'test 3', '2008-11-19 16:18:06')
       +  SQL (0.000719)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000576)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000459)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000163)   ROLLBACK
       +  User Load (0.000245)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000180)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000621)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  User Destroy (0.000237)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000586)   COMMIT
       +  SQL (0.000230)   BEGIN
       +  User Destroy (0.000351)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000816)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Create (0.000256)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:18:06', 'test 1', '2008-11-26 16:18:06')
       +  SQL (0.000712)   COMMIT
       +  SQL (0.000123)   BEGIN
       +  User Create (0.000268)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:18:06', 'test 2', '2008-11-19 16:18:06')
       +  SQL (0.000615)   COMMIT
       +  SQL (0.000265)   BEGIN
       +  User Create (0.000235)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:18:06', 'test 3', '2008-11-19 16:18:06')
       +  SQL (0.000598)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000654)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.001543)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000172)   ROLLBACK
       +  User Load (0.000574)   SELECT * FROM `users` 
       +  SQL (0.000145)   BEGIN
       +  User Destroy (0.000312)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000776)   COMMIT
       +  SQL (0.000104)   BEGIN
       +  User Destroy (0.000216)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000549)   COMMIT
       +  SQL (0.000107)   BEGIN
       +  User Destroy (0.000211)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000444)   COMMIT
       +  SQL (0.000239)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000695)   SHOW TABLES
       +  SQL (0.040748)   DROP TABLE `users`
       +  SQL (0.059685)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000813)   SHOW TABLES
       +  SQL (0.002913)   DROP TABLE `report_caches`
       +  SQL (0.115568)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.125902)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.122635)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.001319)   SHOW TABLES
       +  SQL (0.000911)   SELECT version FROM `schema_migrations`
       +  SQL (0.000093)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000873)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.038941)   SHOW FIELDS FROM `users`
       +  SQL (0.050356)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000291)   COMMIT
       +  SQL (0.000244)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000611)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000416)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000156)   COMMIT
       +  SQL (0.000187)   BEGIN
       +  User Create (0.000281)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:18:20', 'test 1', '2008-11-26 16:18:20')
       +  SQL (0.031018)   COMMIT
       +  SQL (0.000188)   BEGIN
       +  User Create (0.000295)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:18:20', 'test 2', '2008-11-19 16:18:20')
       +  SQL (0.103464)   COMMIT
       +  SQL (0.000122)   BEGIN
       +  User Create (0.000237)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:18:20', 'test 3', '2008-11-19 16:18:20')
       +  SQL (0.046418)   COMMIT
       +  SQL (0.000231)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000639)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000489)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.034661)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000343)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:18:20', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:18:20')
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000191)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:18:20', 'cumulated_registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:18:20')
       +  SQL (0.000499)   COMMIT
       +  User Load (0.000219)   SELECT * FROM `users` 
       +  SQL (0.000070)   BEGIN
       +  User Destroy (0.000208)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000502)   COMMIT
       +  SQL (0.000068)   BEGIN
       +  User Destroy (0.000245)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000682)   COMMIT
       +  SQL (0.000215)   BEGIN
       +  User Destroy (0.000248)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000574)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000284)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:18:20', 'test 1', '2008-11-26 16:18:20')
       +  SQL (0.000669)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Create (0.000252)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:18:20', 'test 2', '2008-11-19 16:18:20')
       +  SQL (0.000607)   COMMIT
       +  SQL (0.000133)   BEGIN
       +  User Create (0.000240)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:18:20', 'test 3', '2008-11-19 16:18:20')
       +  SQL (0.000671)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000638)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000226)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000651)   SHOW TABLES
       +  SQL (0.030662)   DROP TABLE `users`
       +  SQL (0.080067)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000632)   SHOW TABLES
       +  SQL (0.001873)   DROP TABLE `report_caches`
       +  SQL (0.242783)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.136195)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.269392)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.001259)   SHOW TABLES
       +  SQL (0.000356)   SELECT version FROM `schema_migrations`
       +  SQL (0.000106)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000780)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.021451)   SHOW FIELDS FROM `users`
       +  SQL (0.069212)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000289)   COMMIT
       +  SQL (0.000140)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000563)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000353)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000138)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Create (0.000221)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:18:48', 'test 1', '2008-11-26 16:18:48')
       +  SQL (0.051887)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000230)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:18:48', 'test 2', '2008-11-19 16:18:48')
       +  SQL (0.038160)   COMMIT
       +  SQL (0.000187)   BEGIN
       +  User Create (0.000279)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:18:48', 'test 3', '2008-11-19 16:18:48')
       +  SQL (0.049138)   COMMIT
       +  SQL (0.000900)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.001017)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000495)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000345)   COMMIT
       +  User Load (0.000247)   SELECT * FROM `users` 
       +  SQL (0.000220)   BEGIN
       +  User Destroy (0.000269)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000761)   COMMIT
       +  SQL (0.000210)   BEGIN
       +  User Destroy (0.000258)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000732)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000421)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000559)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Create (0.000268)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:18:48', 'test 1', '2008-11-26 16:18:48')
       +  SQL (0.000750)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Create (0.000237)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:18:48', 'test 2', '2008-11-19 16:18:48')
       +  SQL (0.000537)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000236)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:18:48', 'test 3', '2008-11-19 16:18:48')
       +  SQL (0.000690)   COMMIT
       +  SQL (0.000294)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000830)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000551)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000275)   COMMIT
       +  User Load (0.000333)   SELECT * FROM `users` 
       +  SQL (0.000159)   BEGIN
       +  User Destroy (0.000271)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000699)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  User Destroy (0.000240)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000668)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000614)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000276)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:18:48', 'test 1', '2008-11-26 16:18:48')
       +  SQL (0.000699)   COMMIT
       +  SQL (0.000215)   BEGIN
       +  User Create (0.000298)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:18:48', 'test 2', '2008-11-19 16:18:48')
       +  SQL (0.000682)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Create (0.000308)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:18:48', 'test 3', '2008-11-19 16:18:48')
       +  SQL (0.000651)   COMMIT
       +  SQL (0.000120)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000546)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000503)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000171)   COMMIT
       +  User Load (0.000275)   SELECT * FROM `users` 
       +  SQL (0.000135)   BEGIN
       +  User Destroy (0.000201)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000726)   COMMIT
       +  SQL (0.000217)   BEGIN
       +  User Destroy (0.000393)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000683)   COMMIT
       +  SQL (0.000191)   BEGIN
       +  User Destroy (0.000424)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.001353)   COMMIT
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.001886)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000138)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000409)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000113)   COMMIT
       +  SQL (0.000077)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000339)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000113)   COMMIT
       +  SQL (0.000123)   BEGIN
       +  User Create (0.000222)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:18:48', 'test 1', '2008-11-26 16:18:48')
       +  SQL (0.000872)   COMMIT
       +  SQL (0.000106)   BEGIN
       +  User Create (0.000179)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:18:48', 'test 2', '2008-11-19 16:18:48')
       +  SQL (0.000600)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Create (0.000241)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:18:48', 'test 3', '2008-11-19 16:18:48')
       +  SQL (0.000718)   COMMIT
       +  SQL (0.000216)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.001055)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000523)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000109)   COMMIT
       +  User Load (0.000275)   SELECT * FROM `users` 
       +  SQL (0.000117)   BEGIN
       +  User Destroy (0.000421)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000557)   COMMIT
       +  SQL (0.000090)   BEGIN
       +  User Destroy (0.000187)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000507)   COMMIT
       +  SQL (0.000088)   BEGIN
       +  User Destroy (0.000565)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000780)   COMMIT
       +  SQL (0.000122)   BEGIN
       +  User Create (0.000210)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:18:48', 'test 1', '2008-11-26 16:18:48')
       +  SQL (0.000662)   COMMIT
       +  SQL (0.000136)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:18:48', 'test 2', '2008-11-19 16:18:48')
       +  SQL (0.000587)   COMMIT
       +  SQL (0.000139)   BEGIN
       +  User Create (0.000233)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:18:48', 'test 3', '2008-11-19 16:18:48')
       +  SQL (0.000672)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000660)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000589)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000245)   COMMIT
       +  User Load (0.000261)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000179)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000676)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Destroy (0.000232)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000658)   COMMIT
       +  SQL (0.000176)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000618)   COMMIT
       +  SQL (0.000171)   BEGIN
       +  User Create (0.000265)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:18:48', 'test 1', '2008-11-26 16:18:48')
       +  SQL (0.000538)   COMMIT
       +  SQL (0.000132)   BEGIN
       +  User Create (0.000275)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:18:48', 'test 2', '2008-11-19 16:18:48')
       +  SQL (0.000720)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Create (0.000233)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:18:48', 'test 3', '2008-11-19 16:18:48')
       +  SQL (0.000596)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000567)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000450)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000135)   COMMIT
       +  User Load (0.000258)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000276)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000662)   COMMIT
       +  SQL (0.000214)   BEGIN
       +  User Destroy (0.000359)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000748)   COMMIT
       +  SQL (0.000117)   BEGIN
       +  User Destroy (0.000481)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000606)   COMMIT
       +  SQL (0.000619)   BEGIN
       +  User Create (0.000288)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:18:48', 'test 1', '2008-11-26 16:18:48')
       +  SQL (0.000583)   COMMIT
       +  SQL (0.000128)   BEGIN
       +  User Create (0.000254)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:18:48', 'test 2', '2008-11-19 16:18:48')
       +  SQL (0.000672)   COMMIT
       +  SQL (0.000225)   BEGIN
       +  User Create (0.000256)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:18:48', 'test 3', '2008-11-19 16:18:48')
       +  SQL (0.000780)   COMMIT
       +  SQL (0.000210)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000631)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000566)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000144)   COMMIT
       +  User Load (0.000246)   SELECT * FROM `users` 
       +  SQL (0.000134)   BEGIN
       +  User Destroy (0.000240)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000773)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000550)   COMMIT
       +  SQL (0.000108)   BEGIN
       +  User Destroy (0.000259)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000754)   COMMIT
       +  SQL (0.000242)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000560)   SHOW TABLES
       +  SQL (0.002168)   DROP TABLE `users`
       +  SQL (0.101716)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000821)   SHOW TABLES
       +  SQL (0.028702)   DROP TABLE `report_caches`
       +  SQL (0.204683)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.124994)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.120482)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.001340)   SHOW TABLES
       +  SQL (0.000793)   SELECT version FROM `schema_migrations`
       +  SQL (0.000121)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000673)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.051457)   SHOW FIELDS FROM `users`
       +  SQL (0.070994)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000175)   COMMIT
       +  SQL (0.000134)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000549)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000338)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000138)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000220)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:23:01', 'test 1', '2008-11-26 16:23:01')
       +  SQL (0.047852)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  User Create (0.000319)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:23:01', 'test 2', '2008-11-19 16:23:01')
       +  SQL (0.078819)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000327)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:23:01', 'test 3', '2008-11-19 16:23:01')
       +  SQL (0.027292)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000602)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000735)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000462)   COMMIT
       +  User Load (0.000225)   SELECT * FROM `users` 
       +  SQL (0.000153)   BEGIN
       +  User Destroy (0.000207)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.052622)   COMMIT
       +  SQL (0.000218)   BEGIN
       +  User Destroy (0.000340)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000760)   COMMIT
       +  SQL (0.000179)   BEGIN
       +  User Destroy (0.000373)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000666)   COMMIT
       +  SQL (0.000169)   BEGIN
       +  User Create (0.000259)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:23:02', 'test 1', '2008-11-26 16:23:02')
       +  SQL (0.000664)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  User Create (0.000595)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:23:02', 'test 2', '2008-11-19 16:23:02')
       +  SQL (0.000512)   COMMIT
       +  SQL (0.000141)   BEGIN
       +  User Create (0.000228)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:23:02', 'test 3', '2008-11-19 16:23:02')
       +  SQL (0.000498)   COMMIT
       +  SQL (0.000085)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000361)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000324)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000072)   COMMIT
       +  User Load (0.000185)   SELECT * FROM `users` 
       +  SQL (0.000102)   BEGIN
       +  User Destroy (0.000166)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000586)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000224)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.001470)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Destroy (0.000275)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000719)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Create (0.000467)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:23:02', 'test 1', '2008-11-26 16:23:02')
       +  SQL (0.000693)   COMMIT
       +  SQL (0.000216)   BEGIN
       +  User Create (0.000246)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:23:02', 'test 2', '2008-11-19 16:23:02')
       +  SQL (0.000748)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Create (0.000249)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:23:02', 'test 3', '2008-11-19 16:23:02')
       +  SQL (0.000649)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000694)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000539)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000231)   COMMIT
       +  User Load (0.000269)   SELECT * FROM `users` 
       +  SQL (0.000181)   BEGIN
       +  User Destroy (0.000309)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000730)   COMMIT
       +  SQL (0.000125)   BEGIN
       +  User Destroy (0.000232)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000535)   COMMIT
       +  SQL (0.000067)   BEGIN
       +  User Destroy (0.000182)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000391)   COMMIT
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.001981)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000134)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000538)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000662)   COMMIT
       +  SQL (0.000123)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000562)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000108)   COMMIT
       +  SQL (0.000122)   BEGIN
       +  User Create (0.000233)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:23:02', 'test 1', '2008-11-26 16:23:02')
       +  SQL (0.000807)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000260)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:23:02', 'test 2', '2008-11-19 16:23:02')
       +  SQL (0.000636)   COMMIT
       +  SQL (0.000189)   BEGIN
       +  User Create (0.000238)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:23:02', 'test 3', '2008-11-19 16:23:02')
       +  SQL (0.000730)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000583)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000384)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000136)   COMMIT
       +  User Load (0.000233)   SELECT * FROM `users` 
       +  SQL (0.000128)   BEGIN
       +  User Destroy (0.000232)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000639)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  User Destroy (0.000234)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000656)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  User Destroy (0.000224)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000625)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000317)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:23:02', 'test 1', '2008-11-26 16:23:02')
       +  SQL (0.000667)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Create (0.000252)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:23:02', 'test 2', '2008-11-19 16:23:02')
       +  SQL (0.000802)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  User Create (0.000234)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:23:02', 'test 3', '2008-11-19 16:23:02')
       +  SQL (0.000660)   COMMIT
       +  SQL (0.000685)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000672)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000670)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000227)   COMMIT
       +  User Load (0.000381)   SELECT * FROM `users` 
       +  SQL (0.000127)   BEGIN
       +  User Destroy (0.000190)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000757)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000632)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Destroy (0.000380)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000658)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Create (0.000272)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:23:02', 'test 1', '2008-11-26 16:23:02')
       +  SQL (0.000683)   COMMIT
       +  SQL (0.000139)   BEGIN
       +  User Create (0.000257)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:23:02', 'test 2', '2008-11-19 16:23:02')
       +  SQL (0.000601)   COMMIT
       +  SQL (0.000134)   BEGIN
       +  User Create (0.000240)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:23:02', 'test 3', '2008-11-19 16:23:02')
       +  SQL (0.000668)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000585)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000460)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000134)   COMMIT
       +  User Load (0.000255)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000222)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000749)   COMMIT
       +  SQL (0.000100)   BEGIN
       +  User Destroy (0.000154)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000528)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000311)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000643)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Create (0.000268)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:23:02', 'test 1', '2008-11-26 16:23:02')
       +  SQL (0.000747)   COMMIT
       +  SQL (0.000220)   BEGIN
       +  User Create (0.000271)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:23:02', 'test 2', '2008-11-19 16:23:02')
       +  SQL (0.001479)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000302)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:23:02', 'test 3', '2008-11-19 16:23:02')
       +  SQL (0.000851)   COMMIT
       +  SQL (0.000118)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000504)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000428)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000133)   COMMIT
       +  User Load (0.000262)   SELECT * FROM `users` 
       +  SQL (0.000100)   BEGIN
       +  User Destroy (0.000198)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000778)   COMMIT
       +  SQL (0.000279)   BEGIN
       +  User Destroy (0.000262)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000682)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000233)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000600)   COMMIT
       +  SQL (0.000247)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000549)   SHOW TABLES
       +  SQL (0.321151)   DROP TABLE `users`
       +  SQL (0.433389)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.003572)   SHOW TABLES
       +  SQL (0.006509)   DROP TABLE `report_caches`
       +  SQL (0.265288)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.184539)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.328014)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.000709)   SHOW TABLES
       +  SQL (0.000285)   SELECT version FROM `schema_migrations`
       +  SQL (0.000085)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000663)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.024842)   SHOW FIELDS FROM `users`
       +  SQL (0.013029)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000089)   COMMIT
       +  SQL (0.000081)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000367)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000696)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000087)   COMMIT
       +  SQL (0.000132)   BEGIN
       +  User Create (0.000213)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:24:22', 'test 1', '2008-11-26 16:24:22')
       +  SQL (0.000859)   COMMIT
       +  SQL (0.000086)   BEGIN
       +  User Create (0.000167)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:24:22', 'test 2', '2008-11-19 16:24:22')
       +  SQL (0.000530)   COMMIT
       +  SQL (0.000073)   BEGIN
       +  User Create (0.000151)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:24:22', 'test 3', '2008-11-19 16:24:22')
       +  SQL (0.000419)   COMMIT
       +  SQL (0.000067)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000366)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000340)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000240)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000225)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000311)   COMMIT
       +  User Load (0.000288)   SELECT * FROM `users` 
       +  SQL (0.000092)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.041511)   COMMIT
       +  SQL (0.000095)   BEGIN
       +  User Destroy (0.000217)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000395)   COMMIT
       +  SQL (0.000067)   BEGIN
       +  User Destroy (0.000147)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000376)   COMMIT
       +  SQL (0.000161)   BEGIN
       +  User Create (0.000187)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:24:22', 'test 1', '2008-11-26 16:24:22')
       +  SQL (0.000755)   COMMIT
       +  SQL (0.000080)   BEGIN
       +  User Create (0.000167)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:24:22', 'test 2', '2008-11-19 16:24:22')
       +  SQL (0.001886)   COMMIT
       +  SQL (0.000087)   BEGIN
       +  User Create (0.000179)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:24:22', 'test 3', '2008-11-19 16:24:22')
       +  SQL (0.001560)   COMMIT
       +  SQL (0.000078)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000398)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000340)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000231)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000201)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000072)   COMMIT
       +  User Load (0.000150)   SELECT * FROM `users` 
       +  SQL (0.000067)   BEGIN
       +  User Destroy (0.000149)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.001191)   COMMIT
       +  SQL (0.000072)   BEGIN
       +  User Destroy (0.000173)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000447)   COMMIT
       +  SQL (0.000067)   BEGIN
       +  User Destroy (0.000293)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000395)   COMMIT
       +  SQL (0.000087)   BEGIN
       +  User Create (0.000176)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:24:22', 'test 1', '2008-11-26 16:24:22')
       +  SQL (0.000406)   COMMIT
       +  SQL (0.000073)   BEGIN
       +  User Create (0.000151)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:24:22', 'test 2', '2008-11-19 16:24:22')
       +  SQL (0.000361)   COMMIT
       +  SQL (0.000070)   BEGIN
       +  User Create (0.000141)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:24:22', 'test 3', '2008-11-19 16:24:22')
       +  SQL (0.000410)   COMMIT
       +  SQL (0.000067)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000366)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000342)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000239)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000199)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000070)   COMMIT
       +  User Load (0.000167)   SELECT * FROM `users` 
       +  SQL (0.000068)   BEGIN
       +  User Destroy (0.000152)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000395)   COMMIT
       +  SQL (0.000067)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000452)   COMMIT
       +  SQL (0.000066)   BEGIN
       +  User Destroy (0.000165)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000383)   COMMIT
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.001690)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.003384)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000451)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000082)   COMMIT
       +  SQL (0.000139)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000340)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000077)   COMMIT
       +  SQL (0.001691)   BEGIN
       +  User Create (0.000211)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:24:22', 'test 1', '2008-11-26 16:24:22')
       +  SQL (0.001078)   COMMIT
       +  SQL (0.000085)   BEGIN
       +  User Create (0.000176)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:24:22', 'test 2', '2008-11-19 16:24:22')
       +  SQL (0.006116)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  User Create (0.000201)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:24:22', 'test 3', '2008-11-19 16:24:22')
       +  SQL (0.078110)   COMMIT
       +  SQL (0.000097)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000430)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000347)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000075)   COMMIT
       +  User Load (0.000150)   SELECT * FROM `users` 
       +  SQL (0.000067)   BEGIN
       +  User Destroy (0.000152)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.050068)   COMMIT
       +  SQL (0.000085)   BEGIN
       +  User Destroy (0.000311)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.054315)   COMMIT
       +  SQL (0.000087)   BEGIN
       +  User Destroy (0.000217)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.081861)   COMMIT
       +  SQL (0.000101)   BEGIN
       +  User Create (0.000207)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:24:22', 'test 1', '2008-11-26 16:24:22')
       +  SQL (0.069240)   COMMIT
       +  SQL (0.000094)   BEGIN
       +  User Create (0.000196)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:24:22', 'test 2', '2008-11-19 16:24:22')
       +  SQL (0.069786)   COMMIT
       +  SQL (0.000136)   BEGIN
       +  User Create (0.000296)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:24:23', 'test 3', '2008-11-19 16:24:23')
       +  SQL (0.124731)   COMMIT
       +  SQL (0.000091)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000393)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000335)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000224)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000252)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000071)   COMMIT
       +  User Load (0.000152)   SELECT * FROM `users` 
       +  SQL (0.000066)   BEGIN
       +  User Destroy (0.000149)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.064036)   COMMIT
       +  SQL (0.000476)   BEGIN
       +  User Destroy (0.000734)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.009580)   COMMIT
       +  SQL (0.000088)   BEGIN
       +  User Destroy (0.000270)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.066313)   COMMIT
       +  SQL (0.000169)   BEGIN
       +  User Create (0.000400)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:24:23', 'test 1', '2008-11-26 16:24:23')
       +  SQL (0.000803)   COMMIT
       +  SQL (0.000190)   BEGIN
       +  User Create (0.000272)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:24:23', 'test 2', '2008-11-19 16:24:23')
       +  SQL (0.025776)   COMMIT
       +  SQL (0.000265)   BEGIN
       +  User Create (0.000384)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:24:23', 'test 3', '2008-11-19 16:24:23')
       +  SQL (0.003403)   COMMIT
       +  SQL (0.000697)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.001110)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000699)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000310)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000196)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000079)   COMMIT
       +  User Load (0.000157)   SELECT * FROM `users` 
       +  SQL (0.000073)   BEGIN
       +  User Destroy (0.000186)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000845)   COMMIT
       +  SQL (0.000081)   BEGIN
       +  User Destroy (0.000141)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000881)   COMMIT
       +  SQL (0.000067)   BEGIN
       +  User Destroy (0.000194)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000706)   COMMIT
       +  SQL (0.000091)   BEGIN
       +  User Create (0.000199)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:24:23', 'test 1', '2008-11-26 16:24:23')
       +  SQL (0.003665)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  User Create (0.000257)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:24:23', 'test 2', '2008-11-19 16:24:23')
       +  SQL (0.000887)   COMMIT
       +  SQL (0.000131)   BEGIN
       +  User Create (0.000281)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:24:23', 'test 3', '2008-11-19 16:24:23')
       +  SQL (0.001178)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000592)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000523)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000369)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000224)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000073)   COMMIT
       +  User Load (0.000154)   SELECT * FROM `users` 
       +  SQL (0.000076)   BEGIN
       +  User Destroy (0.000182)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000710)   COMMIT
       +  SQL (0.000134)   BEGIN
       +  User Destroy (0.000168)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000873)   COMMIT
       +  SQL (0.000095)   BEGIN
       +  User Destroy (0.000132)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000929)   COMMIT
       +  SQL (0.000240)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000581)   SHOW TABLES
       +  SQL (0.002292)   DROP TABLE `users`
       +  SQL (0.134255)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000805)   SHOW TABLES
       +  SQL (0.001750)   DROP TABLE `report_caches`
       +  SQL (0.328202)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.117968)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.132737)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.000994)   SHOW TABLES
       +  SQL (0.000305)   SELECT version FROM `schema_migrations`
       +  SQL (0.000094)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000616)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.023993)   SHOW FIELDS FROM `users`
       +  SQL (0.099593)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000163)   COMMIT
       +  SQL (0.000134)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000514)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000351)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000138)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Create (0.000295)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:24:54', 'test 1', '2008-11-26 16:24:54')
       +  SQL (0.030759)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000272)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:24:54', 'test 2', '2008-11-19 16:24:54')
       +  SQL (0.052007)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000327)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:24:54', 'test 3', '2008-11-19 16:24:54')
       +  SQL (0.066604)   COMMIT
       +  SQL (0.000101)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000456)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000418)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000238)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000225)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000104)   COMMIT
       +  User Load (0.000168)   SELECT * FROM `users` 
       +  SQL (0.000099)   BEGIN
       +  User Destroy (0.000227)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.061827)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Destroy (0.000295)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000654)   COMMIT
       +  SQL (0.000108)   BEGIN
       +  User Destroy (0.000286)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.061073)   COMMIT
       +  SQL (0.000175)   BEGIN
       +  User Create (0.000281)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:24:54', 'test 1', '2008-11-26 16:24:54')
       +  SQL (0.000655)   COMMIT
       +  SQL (0.000127)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:24:54', 'test 2', '2008-11-19 16:24:54')
       +  SQL (0.000629)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000227)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:24:54', 'test 3', '2008-11-19 16:24:54')
       +  SQL (0.000719)   COMMIT
       +  SQL (0.000217)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000573)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000507)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000406)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000321)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000137)   COMMIT
       +  User Load (0.000234)   SELECT * FROM `users` 
       +  SQL (0.000130)   BEGIN
       +  User Destroy (0.000177)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000635)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Destroy (0.000260)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000575)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  User Destroy (0.000236)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000666)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000236)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:24:54', 'test 1', '2008-11-26 16:24:54')
       +  SQL (0.000540)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  User Create (0.000201)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:24:54', 'test 2', '2008-11-19 16:24:54')
       +  SQL (0.000475)   COMMIT
       +  SQL (0.000104)   BEGIN
       +  User Create (0.000195)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:24:54', 'test 3', '2008-11-19 16:24:54')
       +  SQL (0.000635)   COMMIT
       +  SQL (0.000105)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000566)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000668)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000369)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.001188)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000136)   COMMIT
       +  User Load (0.000185)   SELECT * FROM `users` 
       +  SQL (0.000099)   BEGIN
       +  User Destroy (0.000177)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000668)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Destroy (0.000258)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000665)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000277)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000609)   COMMIT
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002990)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000164)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000656)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000116)   COMMIT
       +  SQL (0.000078)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000414)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000139)   COMMIT
       +  SQL (0.000126)   BEGIN
       +  User Create (0.000184)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:24:54', 'test 1', '2008-11-26 16:24:54')
       +  SQL (0.000711)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  User Create (0.000239)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:24:54', 'test 2', '2008-11-19 16:24:54')
       +  SQL (0.000643)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Create (0.000238)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:24:54', 'test 3', '2008-11-19 16:24:54')
       +  SQL (0.000648)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000558)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000431)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000147)   COMMIT
       +  User Load (0.000257)   SELECT * FROM `users` 
       +  SQL (0.000130)   BEGIN
       +  User Destroy (0.000180)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.001137)   COMMIT
       +  SQL (0.000211)   BEGIN
       +  User Destroy (0.000306)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000590)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Destroy (0.000313)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000705)   COMMIT
       +  SQL (0.000387)   BEGIN
       +  User Create (0.008336)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:24:54', 'test 1', '2008-11-26 16:24:54')
       +  SQL (0.000739)   COMMIT
       +  SQL (0.000085)   BEGIN
       +  User Create (0.000205)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:24:54', 'test 2', '2008-11-19 16:24:54')
       +  SQL (0.000790)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  User Create (0.000277)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:24:54', 'test 3', '2008-11-19 16:24:54')
       +  SQL (0.000720)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000607)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000441)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000329)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000291)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000134)   COMMIT
       +  User Load (0.000165)   SELECT * FROM `users` 
       +  SQL (0.000098)   BEGIN
       +  User Destroy (0.000274)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000677)   COMMIT
       +  SQL (0.000183)   BEGIN
       +  User Destroy (0.000357)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000722)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000226)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000664)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000281)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:24:54', 'test 1', '2008-11-26 16:24:54')
       +  SQL (0.000902)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  User Create (0.000260)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:24:54', 'test 2', '2008-11-19 16:24:54')
       +  SQL (0.000776)   COMMIT
       +  SQL (0.000178)   BEGIN
       +  User Create (0.000242)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:24:54', 'test 3', '2008-11-19 16:24:54')
       +  SQL (0.000638)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000608)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000455)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000332)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000324)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000122)   COMMIT
       +  User Load (0.000247)   SELECT * FROM `users` 
       +  SQL (0.000098)   BEGIN
       +  User Destroy (0.000164)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000746)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000625)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Destroy (0.000287)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000632)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000262)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:24:54', 'test 1', '2008-11-26 16:24:54')
       +  SQL (0.000644)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Create (0.000227)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:24:55', 'test 2', '2008-11-19 16:24:54')
       +  SQL (0.000697)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000375)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:24:55', 'test 3', '2008-11-19 16:24:55')
       +  SQL (0.000822)   COMMIT
       +  SQL (0.000633)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000676)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000615)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000358)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000322)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000127)   COMMIT
       +  User Load (0.000176)   SELECT * FROM `users` 
       +  SQL (0.000082)   BEGIN
       +  User Destroy (0.000196)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000747)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Destroy (0.000243)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000733)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Destroy (0.000217)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000817)   COMMIT
       +  SQL (0.000303)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000576)   SHOW TABLES
       +  SQL (0.068838)   DROP TABLE `users`
       +  SQL (0.190531)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000925)   SHOW TABLES
       +  SQL (0.091637)   DROP TABLE `report_caches`
       +  SQL (0.359837)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.211883)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.146570)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.001145)   SHOW TABLES
       +  SQL (0.000298)   SELECT version FROM `schema_migrations`
       +  SQL (0.000099)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000655)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.003035)   SHOW FIELDS FROM `users`
       +  SQL (0.000438)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000156)   COMMIT
       +  SQL (0.000132)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000529)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000328)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000136)   COMMIT
       +  SQL (0.000170)   BEGIN
       +  User Create (0.000224)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:25:30', 'test 1', '2008-11-26 16:25:30')
       +  SQL (0.000724)   COMMIT
       +  SQL (0.000178)   BEGIN
       +  User Create (0.000958)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:25:30', 'test 2', '2008-11-19 16:25:30')
       +  SQL (0.000937)   COMMIT
       +  SQL (0.000225)   BEGIN
       +  User Create (0.000296)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:25:30', 'test 3', '2008-11-19 16:25:30')
       +  SQL (0.000717)   COMMIT
       +  SQL (0.000111)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000528)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000615)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000296)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002882)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000354)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:25:30', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:25:30')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000453)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000257)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:25:30', 'cumulated_registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:25:30')
       +  SQL (0.000705)   COMMIT
       +  User Load (0.000198)   SELECT * FROM `users` 
       +  SQL (0.000100)   BEGIN
       +  User Destroy (0.000172)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000642)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000294)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000676)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000655)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000258)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:25:30', 'test 1', '2008-11-26 16:25:30')
       +  SQL (0.000686)   COMMIT
       +  SQL (0.000244)   BEGIN
       +  User Create (0.000205)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:25:30', 'test 2', '2008-11-19 16:25:30')
       +  SQL (0.000621)   COMMIT
       +  SQL (0.000114)   BEGIN
       +  User Create (0.000193)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:25:30', 'test 3', '2008-11-19 16:25:30')
       +  SQL (0.000513)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000540)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000250)   ROLLBACK
       +  User Load (0.000251)   SELECT * FROM `users` 
       +  SQL (0.000103)   BEGIN
       +  User Destroy (0.000190)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.001165)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  User Destroy (0.000296)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000870)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000645)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  User Create (0.000266)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:25:31', 'test 1', '2008-11-26 16:25:31')
       +  SQL (0.000694)   COMMIT
       +  SQL (0.000216)   BEGIN
       +  User Create (0.000236)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:25:31', 'test 2', '2008-11-19 16:25:31')
       +  SQL (0.000594)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:25:31', 'test 3', '2008-11-19 16:25:31')
       +  SQL (0.000621)   COMMIT
       +  SQL (0.000145)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000713)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000194)   ROLLBACK
       +  User Load (0.000245)   SELECT * FROM `users` 
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000214)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.001459)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Destroy (0.000255)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000604)   COMMIT
       +  SQL (0.000142)   BEGIN
       +  User Destroy (0.000300)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000661)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000437)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000081)   COMMIT
       +  SQL (0.000395)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000396)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000112)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000207)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:25:33', 'test 1', '2008-11-26 16:25:33')
       +  SQL (0.000675)   COMMIT
       +  SQL (0.000101)   BEGIN
       +  User Create (0.000153)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:25:33', 'test 2', '2008-11-19 16:25:33')
       +  SQL (0.000678)   COMMIT
       +  SQL (0.000228)   BEGIN
       +  User Create (0.000233)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:25:33', 'test 3', '2008-11-19 16:25:33')
       +  SQL (0.000734)   COMMIT
       +  SQL (0.000211)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000578)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000376)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000138)   COMMIT
       +  User Load (0.000233)   SELECT * FROM `users` 
       +  SQL (0.000130)   BEGIN
       +  User Destroy (0.000219)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000706)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  User Destroy (0.000308)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000727)   COMMIT
       +  SQL (0.000253)   BEGIN
       +  User Destroy (0.000376)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000705)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000266)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:25:33', 'test 1', '2008-11-26 16:25:33')
       +  SQL (0.001567)   COMMIT
       +  SQL (0.000173)   BEGIN
       +  User Create (0.000354)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:25:33', 'test 2', '2008-11-19 16:25:33')
       +  SQL (0.000588)   COMMIT
       +  SQL (0.000118)   BEGIN
       +  User Create (0.000223)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:25:33', 'test 3', '2008-11-19 16:25:33')
       +  SQL (0.000554)   COMMIT
       +  SQL (0.000091)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000809)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000451)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000308)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000292)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:25:33', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:25:33')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000265)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000184)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:25:33', 'registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:25:33')
       +  SQL (0.000737)   COMMIT
       +  User Load (0.000422)   SELECT * FROM `users` 
       +  SQL (0.000157)   BEGIN
       +  User Destroy (0.000362)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000788)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000664)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000711)   COMMIT
       +  SQL (0.000240)   BEGIN
       +  User Create (0.000274)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:25:33', 'test 1', '2008-11-26 16:25:33')
       +  SQL (0.000570)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000214)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:25:33', 'test 2', '2008-11-19 16:25:33')
       +  SQL (0.000718)   COMMIT
       +  SQL (0.000146)   BEGIN
       +  User Create (0.000226)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:25:33', 'test 3', '2008-11-19 16:25:33')
       +  SQL (0.000782)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000682)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000196)   ROLLBACK
       +  User Load (0.000248)   SELECT * FROM `users` 
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000190)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.001477)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Destroy (0.000246)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000603)   COMMIT
       +  SQL (0.000141)   BEGIN
       +  User Destroy (0.000288)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000607)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Create (0.000268)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:25:34', 'test 1', '2008-11-26 16:25:34')
       +  SQL (0.000624)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Create (0.000260)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:25:34', 'test 2', '2008-11-19 16:25:34')
       +  SQL (0.000610)   COMMIT
       +  SQL (0.000146)   BEGIN
       +  User Create (0.000227)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:25:34', 'test 3', '2008-11-19 16:25:34')
       +  SQL (0.000712)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000651)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000174)   ROLLBACK
       +  User Load (0.000260)   SELECT * FROM `users` 
       +  SQL (0.000102)   BEGIN
       +  User Destroy (0.000199)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.001140)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  User Destroy (0.000236)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000848)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000672)   COMMIT
       +  SQL (0.000239)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000552)   SHOW TABLES
       +  SQL (0.002116)   DROP TABLE `users`
       +  SQL (0.133985)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000975)   SHOW TABLES
       +  SQL (0.002060)   DROP TABLE `report_caches`
       +  SQL (0.194444)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.147154)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.276320)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.001229)   SHOW TABLES
       +  SQL (0.000343)   SELECT version FROM `schema_migrations`
       +  SQL (0.000121)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000701)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.043004)   SHOW FIELDS FROM `users`
       +  SQL (0.140316)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000161)   COMMIT
       +  SQL (0.000126)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000511)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000403)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000096)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:25:52', 'test 1', '2008-11-26 16:25:52')
       +  SQL (0.028033)   COMMIT
       +  SQL (0.000178)   BEGIN
       +  User Create (0.000314)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:25:52', 'test 2', '2008-11-19 16:25:52')
       +  SQL (0.000693)   COMMIT
       +  SQL (0.000219)   BEGIN
       +  User Create (0.000246)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:25:52', 'test 3', '2008-11-19 16:25:52')
       +  SQL (0.000682)   COMMIT
       +  SQL (0.000145)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000578)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000536)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000339)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002473)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000414)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000150)   COMMIT
       +  User Load (0.000247)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000152)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.001109)   COMMIT
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000161)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000592)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000689)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000263)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:25:52', 'test 1', '2008-11-26 16:25:52')
       +  SQL (0.000731)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Create (0.000228)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:25:52', 'test 2', '2008-11-19 16:25:52')
       +  SQL (0.000626)   COMMIT
       +  SQL (0.000210)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:25:52', 'test 3', '2008-11-19 16:25:52')
       +  SQL (0.000597)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000591)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000453)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000413)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000319)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000149)   COMMIT
       +  User Load (0.000248)   SELECT * FROM `users` 
       +  SQL (0.000132)   BEGIN
       +  User Destroy (0.000223)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000697)   COMMIT
       +  SQL (0.000211)   BEGIN
       +  User Destroy (0.000255)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000685)   COMMIT
       +  SQL (0.000282)   BEGIN
       +  User Destroy (0.000215)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000693)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000289)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:25:52', 'test 1', '2008-11-26 16:25:52')
       +  SQL (0.000665)   COMMIT
       +  SQL (0.000169)   BEGIN
       +  User Create (0.000248)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:25:52', 'test 2', '2008-11-19 16:25:52')
       +  SQL (0.000669)   COMMIT
       +  SQL (0.000190)   BEGIN
       +  User Create (0.000343)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:25:52', 'test 3', '2008-11-19 16:25:52')
       +  SQL (0.000624)   COMMIT
       +  SQL (0.000113)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000650)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000715)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000347)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000261)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000109)   COMMIT
       +  User Load (0.000177)   SELECT * FROM `users` 
       +  SQL (0.000089)   BEGIN
       +  User Destroy (0.000219)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000611)   COMMIT
       +  SQL (0.000076)   BEGIN
       +  User Destroy (0.000218)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000635)   COMMIT
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000160)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000627)   COMMIT
       +  SQL (0.000136)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000420)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000081)   COMMIT
       +  SQL (0.000140)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000486)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000134)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  User Create (0.000259)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:25:52', 'test 1', '2008-11-26 16:25:52')
       +  SQL (0.002794)   COMMIT
       +  SQL (0.000178)   BEGIN
       +  User Create (0.000263)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:25:52', 'test 2', '2008-11-19 16:25:52')
       +  SQL (0.000688)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Create (0.000294)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:25:52', 'test 3', '2008-11-19 16:25:52')
       +  SQL (0.000716)   COMMIT
       +  SQL (0.000114)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000587)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000365)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000136)   COMMIT
       +  User Load (0.000232)   SELECT * FROM `users` 
       +  SQL (0.000129)   BEGIN
       +  User Destroy (0.000220)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000708)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000645)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000337)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000756)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  User Create (0.000259)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:25:52', 'test 1', '2008-11-26 16:25:52')
       +  SQL (0.000593)   COMMIT
       +  SQL (0.000084)   BEGIN
       +  User Create (0.000152)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:25:52', 'test 2', '2008-11-19 16:25:52')
       +  SQL (0.000472)   COMMIT
       +  SQL (0.000070)   BEGIN
       +  User Create (0.000172)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:25:52', 'test 3', '2008-11-19 16:25:52')
       +  SQL (0.000608)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000572)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.001655)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000484)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000450)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000168)   COMMIT
       +  User Load (0.000237)   SELECT * FROM `users` 
       +  SQL (0.000080)   BEGIN
       +  User Destroy (0.000210)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000849)   COMMIT
       +  SQL (0.000069)   BEGIN
       +  User Destroy (0.000257)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000369)   COMMIT
       +  SQL (0.000064)   BEGIN
       +  User Destroy (0.000121)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000379)   COMMIT
       +  SQL (0.000079)   BEGIN
       +  User Create (0.000231)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:25:52', 'test 1', '2008-11-26 16:25:52')
       +  SQL (0.000726)   COMMIT
       +  SQL (0.000171)   BEGIN
       +  User Create (0.000250)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:25:52', 'test 2', '2008-11-19 16:25:52')
       +  SQL (0.000730)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  User Create (0.000245)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:25:52', 'test 3', '2008-11-19 16:25:52')
       +  SQL (0.000557)   COMMIT
       +  SQL (0.000126)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000511)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000466)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000339)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000322)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000146)   COMMIT
       +  User Load (0.000254)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000226)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000738)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  User Destroy (0.000245)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000667)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000289)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000683)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000266)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:25:52', 'test 1', '2008-11-26 16:25:52')
       +  SQL (0.000744)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Create (0.000228)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:25:52', 'test 2', '2008-11-19 16:25:52')
       +  SQL (0.000618)   COMMIT
       +  SQL (0.000131)   BEGIN
       +  User Create (0.000494)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:25:52', 'test 3', '2008-11-19 16:25:52')
       +  SQL (0.000597)   COMMIT
       +  SQL (0.000122)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000625)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000530)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000335)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000287)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000109)   COMMIT
       +  User Load (0.000185)   SELECT * FROM `users` 
       +  SQL (0.000105)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000785)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000242)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000669)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Destroy (0.000244)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000639)   COMMIT
       +  SQL (0.000246)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000551)   SHOW TABLES
       +  SQL (0.111126)   DROP TABLE `users`
       +  SQL (0.184588)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000761)   SHOW TABLES
       +  SQL (0.060222)   DROP TABLE `report_caches`
       +  SQL (0.176803)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.136974)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.131710)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.000842)   SHOW TABLES
       +  SQL (0.000305)   SELECT version FROM `schema_migrations`
       +  SQL (0.000121)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000738)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.002700)   SHOW FIELDS FROM `users`
       +  SQL (0.000320)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000072)   COMMIT
       +  SQL (0.000075)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000384)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000235)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000104)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000232)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:26:09', 'test 1', '2008-11-26 16:26:09')
       +  SQL (0.000743)   COMMIT
       +  SQL (0.000156)   BEGIN
       +  User Create (0.000237)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:26:09', 'test 2', '2008-11-19 16:26:09')
       +  SQL (0.000659)   COMMIT
       +  SQL (0.000145)   BEGIN
       +  User Create (0.000225)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:26:09', 'test 3', '2008-11-19 16:26:09')
       +  SQL (0.000587)   COMMIT
       +  SQL (0.000268)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000581)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000646)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000464)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002254)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000345)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000094)   COMMIT
       +  User Load (0.000194)   SELECT * FROM `users` 
       +  SQL (0.000100)   BEGIN
       +  User Destroy (0.000265)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000721)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000292)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000649)   COMMIT
       +  SQL (0.000145)   BEGIN
       +  User Destroy (0.000285)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000669)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000308)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:26:09', 'test 1', '2008-11-26 16:26:09')
       +  SQL (0.000697)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000243)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:26:09', 'test 2', '2008-11-19 16:26:09')
       +  SQL (0.000637)   COMMIT
       +  SQL (0.000188)   BEGIN
       +  User Create (0.000233)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:26:09', 'test 3', '2008-11-19 16:26:09')
       +  SQL (0.000659)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000662)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000455)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000331)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000355)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000129)   COMMIT
       +  User Load (0.000254)   SELECT * FROM `users` 
       +  SQL (0.000132)   BEGIN
       +  User Destroy (0.000226)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000794)   COMMIT
       +  SQL (0.000161)   BEGIN
       +  User Destroy (0.000654)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000752)   COMMIT
       +  SQL (0.000121)   BEGIN
       +  User Destroy (0.000301)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000661)   COMMIT
       +  SQL (0.000138)   BEGIN
       +  User Create (0.000260)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:26:10', 'test 1', '2008-11-26 16:26:10')
       +  SQL (0.000492)   COMMIT
       +  SQL (0.000112)   BEGIN
       +  User Create (0.000335)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:26:10', 'test 2', '2008-11-19 16:26:10')
       +  SQL (0.000701)   COMMIT
       +  SQL (0.000221)   BEGIN
       +  User Create (0.000246)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:26:10', 'test 3', '2008-11-19 16:26:10')
       +  SQL (0.000613)   COMMIT
       +  SQL (0.000140)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000542)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000489)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000313)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000336)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000094)   COMMIT
       +  User Load (0.000188)   SELECT * FROM `users` 
       +  SQL (0.000100)   BEGIN
       +  User Destroy (0.000170)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000678)   COMMIT
       +  SQL (0.000201)   BEGIN
       +  User Destroy (0.000241)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000682)   COMMIT
       +  SQL (0.000177)   BEGIN
       +  User Destroy (0.000356)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000726)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000417)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000112)   COMMIT
       +  SQL (0.000107)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000315)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000104)   COMMIT
       +  SQL (0.000092)   BEGIN
       +  User Create (0.000195)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:26:10', 'test 1', '2008-11-26 16:26:10')
       +  SQL (0.000634)   COMMIT
       +  SQL (0.000068)   BEGIN
       +  User Create (0.000130)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:26:10', 'test 2', '2008-11-19 16:26:10')
       +  SQL (0.000559)   COMMIT
       +  SQL (0.000106)   BEGIN
       +  User Create (0.000161)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:26:10', 'test 3', '2008-11-19 16:26:10')
       +  SQL (0.000660)   COMMIT
       +  SQL (0.000329)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000899)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000537)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000106)   COMMIT
       +  User Load (0.000213)   SELECT * FROM `users` 
       +  SQL (0.000093)   BEGIN
       +  User Destroy (0.000205)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000969)   COMMIT
       +  SQL (0.000104)   BEGIN
       +  User Destroy (0.000202)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000529)   COMMIT
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000310)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000614)   COMMIT
       +  SQL (0.000146)   BEGIN
       +  User Create (0.000216)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:26:10', 'test 1', '2008-11-26 16:26:10')
       +  SQL (0.000646)   COMMIT
       +  SQL (0.000270)   BEGIN
       +  User Create (0.000285)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:26:10', 'test 2', '2008-11-19 16:26:10')
       +  SQL (0.000786)   COMMIT
       +  SQL (0.000135)   BEGIN
       +  User Create (0.000222)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:26:10', 'test 3', '2008-11-19 16:26:10')
       +  SQL (0.000484)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000677)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000507)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000338)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000330)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000134)   COMMIT
       +  User Load (0.000258)   SELECT * FROM `users` 
       +  SQL (0.000131)   BEGIN
       +  User Destroy (0.000222)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000722)   COMMIT
       +  SQL (0.000176)   BEGIN
       +  User Destroy (0.000154)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000571)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000439)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000729)   COMMIT
       +  SQL (0.000223)   BEGIN
       +  User Create (0.000252)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:26:10', 'test 1', '2008-11-26 16:26:10')
       +  SQL (0.000666)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Create (0.000240)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:26:10', 'test 2', '2008-11-19 16:26:10')
       +  SQL (0.000805)   COMMIT
       +  SQL (0.000224)   BEGIN
       +  User Create (0.000337)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:26:10', 'test 3', '2008-11-19 16:26:10')
       +  SQL (0.000625)   COMMIT
       +  SQL (0.000112)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000535)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000477)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000385)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000261)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000115)   COMMIT
       +  User Load (0.000164)   SELECT * FROM `users` 
       +  SQL (0.000106)   BEGIN
       +  User Destroy (0.000178)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000574)   COMMIT
       +  SQL (0.000077)   BEGIN
       +  User Destroy (0.000212)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000597)   COMMIT
       +  SQL (0.000218)   BEGIN
       +  User Destroy (0.000308)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000622)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  User Create (0.000268)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:26:10', 'test 1', '2008-11-26 16:26:10')
       +  SQL (0.000797)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Create (0.000241)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:26:10', 'test 2', '2008-11-19 16:26:10')
       +  SQL (0.000599)   COMMIT
       +  SQL (0.000226)   BEGIN
       +  User Create (0.000235)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:26:10', 'test 3', '2008-11-19 16:26:10')
       +  SQL (0.000657)   COMMIT
       +  SQL (0.000200)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000554)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000443)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000369)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000338)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000130)   COMMIT
       +  User Load (0.000254)   SELECT * FROM `users` 
       +  SQL (0.000130)   BEGIN
       +  User Destroy (0.000312)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000761)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000604)   COMMIT
       +  SQL (0.000142)   BEGIN
       +  User Destroy (0.000228)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000608)   COMMIT
       +  SQL (0.000240)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000575)   SHOW TABLES
       +  SQL (0.002118)   DROP TABLE `users`
       +  SQL (0.080725)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000727)   SHOW TABLES
       +  SQL (0.028257)   DROP TABLE `report_caches`
       +  SQL (0.144684)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.126636)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.121339)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.001055)   SHOW TABLES
       +  SQL (0.000321)   SELECT version FROM `schema_migrations`
       +  SQL (0.000142)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000651)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.003321)   SHOW FIELDS FROM `users`
       +  SQL (0.000458)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000165)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000694)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000380)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000144)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Create (0.000219)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:26:30', 'test 1', '2008-11-26 16:26:30')
       +  SQL (0.000755)   COMMIT
       +  SQL (0.000139)   BEGIN
       +  User Create (0.000611)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:26:30', 'test 2', '2008-11-19 16:26:30')
       +  SQL (0.000731)   COMMIT
       +  SQL (0.000125)   BEGIN
       +  User Create (0.000249)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:26:30', 'test 3', '2008-11-19 16:26:30')
       +  SQL (0.000581)   COMMIT
       +  SQL (0.000104)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000540)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000540)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000349)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002886)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000319)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:26:30', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:26:30')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000404)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000253)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:26:30', 'cumulated_registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:26:30')
       +  SQL (0.000520)   COMMIT
       +  User Load (0.000203)   SELECT * FROM `users` 
       +  SQL (0.000126)   BEGIN
       +  User Destroy (0.000189)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000647)   COMMIT
       +  SQL (0.000192)   BEGIN
       +  User Destroy (0.000388)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000656)   COMMIT
       +  SQL (0.000119)   BEGIN
       +  User Destroy (0.000218)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000829)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Create (0.000282)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:26:30', 'test 1', '2008-11-26 16:26:30')
       +  SQL (0.000632)   COMMIT
       +  SQL (0.000173)   BEGIN
       +  User Create (0.000233)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:26:30', 'test 2', '2008-11-19 16:26:30')
       +  SQL (0.000664)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Create (0.000222)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:26:30', 'test 3', '2008-11-19 16:26:30')
       +  SQL (0.000676)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000613)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000189)   ROLLBACK
       +  User Load (0.000244)   SELECT * FROM `users` 
       +  SQL (0.000074)   BEGIN
       +  User Destroy (0.000190)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.001239)   COMMIT
       +  SQL (0.000078)   BEGIN
       +  User Destroy (0.000195)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000402)   COMMIT
       +  SQL (0.000069)   BEGIN
       +  User Destroy (0.000166)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000568)   COMMIT
       +  SQL (0.000147)   BEGIN
       +  User Create (0.000224)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:26:33', 'test 1', '2008-11-26 16:26:33')
       +  SQL (0.000685)   COMMIT
       +  SQL (0.000094)   BEGIN
       +  User Create (0.000207)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:26:33', 'test 2', '2008-11-19 16:26:33')
       +  SQL (0.000507)   COMMIT
       +  SQL (0.000092)   BEGIN
       +  User Create (0.000209)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:26:33', 'test 3', '2008-11-19 16:26:33')
       +  SQL (0.000526)   COMMIT
       +  SQL (0.000071)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000685)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000179)   ROLLBACK
       +  User Load (0.000245)   SELECT * FROM `users` 
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000186)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000710)   COMMIT
       +  SQL (0.000210)   BEGIN
       +  User Destroy (0.000251)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000664)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000282)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000712)   COMMIT
       +  SQL (0.000169)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000422)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000107)   COMMIT
       +  SQL (0.000114)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000336)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000104)   COMMIT
       +  SQL (0.000125)   BEGIN
       +  User Create (0.000208)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:26:34', 'test 1', '2008-11-26 16:26:34')
       +  SQL (0.000712)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Create (0.000299)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:26:34', 'test 2', '2008-11-19 16:26:34')
       +  SQL (0.000641)   COMMIT
       +  SQL (0.000137)   BEGIN
       +  User Create (0.000206)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:26:34', 'test 3', '2008-11-19 16:26:34')
       +  SQL (0.000558)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000560)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000378)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000137)   COMMIT
       +  User Load (0.000232)   SELECT * FROM `users` 
       +  SQL (0.000111)   BEGIN
       +  User Destroy (0.000168)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000756)   COMMIT
       +  SQL (0.000211)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000588)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  User Destroy (0.000240)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.001410)   COMMIT
       +  SQL (0.000186)   BEGIN
       +  User Create (0.000309)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:26:34', 'test 1', '2008-11-26 16:26:34')
       +  SQL (0.000603)   COMMIT
       +  SQL (0.000132)   BEGIN
       +  User Create (0.000362)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:26:34', 'test 2', '2008-11-19 16:26:34')
       +  SQL (0.000681)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  User Create (0.000189)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:26:34', 'test 3', '2008-11-19 16:26:34')
       +  SQL (0.000681)   COMMIT
       +  SQL (0.000101)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000375)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000310)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000271)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000213)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:26:34', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:26:34')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000274)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000212)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:26:34', 'registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:26:34')
       +  SQL (0.000799)   COMMIT
       +  User Load (0.000446)   SELECT * FROM `users` 
       +  SQL (0.000200)   BEGIN
       +  User Destroy (0.000405)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000564)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000661)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Destroy (0.000234)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000629)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000351)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:26:34', 'test 1', '2008-11-26 16:26:34')
       +  SQL (0.000698)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:26:34', 'test 2', '2008-11-19 16:26:34')
       +  SQL (0.000658)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  User Create (0.000232)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:26:34', 'test 3', '2008-11-19 16:26:34')
       +  SQL (0.001233)   COMMIT
       +  SQL (0.000216)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000670)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000180)   ROLLBACK
       +  User Load (0.000245)   SELECT * FROM `users` 
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000188)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.001118)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Destroy (0.000255)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000564)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Destroy (0.000289)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000667)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000228)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:26:34', 'test 1', '2008-11-26 16:26:34')
       +  SQL (0.000681)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Create (0.000262)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:26:34', 'test 2', '2008-11-19 16:26:34')
       +  SQL (0.000740)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  User Create (0.000238)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:26:34', 'test 3', '2008-11-19 16:26:34')
       +  SQL (0.000675)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000711)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000182)   ROLLBACK
       +  User Load (0.000246)   SELECT * FROM `users` 
       +  SQL (0.000102)   BEGIN
       +  User Destroy (0.000188)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000802)   COMMIT
       +  SQL (0.000099)   BEGIN
       +  User Destroy (0.000159)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000670)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000575)   COMMIT
       +  SQL (0.000238)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000553)   SHOW TABLES
       +  SQL (0.002297)   DROP TABLE `users`
       +  SQL (0.106490)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000701)   SHOW TABLES
       +  SQL (0.002664)   DROP TABLE `report_caches`
       +  SQL (0.139273)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.127425)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.119759)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.001352)   SHOW TABLES
       +  SQL (0.000281)   SELECT version FROM `schema_migrations`
       +  SQL (0.000122)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000971)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.002378)   SHOW FIELDS FROM `users`
       +  SQL (0.000317)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000111)   COMMIT
       +  SQL (0.000103)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000347)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000219)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000133)   COMMIT
       +  SQL (0.000156)   BEGIN
       +  User Create (0.000222)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:27:23', 'test 1', '2008-11-26 16:27:23')
       +  SQL (0.000717)   COMMIT
       +  SQL (0.000222)   BEGIN
       +  User Create (0.000249)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:27:24', 'test 2', '2008-11-19 16:27:23')
       +  SQL (0.000681)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Create (0.000255)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:27:24', 'test 3', '2008-11-19 16:27:24')
       +  SQL (0.000665)   COMMIT
       +  SQL (0.000280)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000583)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000510)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000324)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002757)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000801)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000772)   COMMIT
       +  User Load (0.000318)   SELECT * FROM `users` 
       +  SQL (0.000087)   BEGIN
       +  User Destroy (0.000216)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000581)   COMMIT
       +  SQL (0.000083)   BEGIN
       +  User Destroy (0.000190)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000536)   COMMIT
       +  SQL (0.000071)   BEGIN
       +  User Destroy (0.000165)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000598)   COMMIT
       +  SQL (0.000681)   BEGIN
       +  User Create (0.000235)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:27:24', 'test 1', '2008-11-26 16:27:24')
       +  SQL (0.000546)   COMMIT
       +  SQL (0.000085)   BEGIN
       +  User Create (0.000205)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:27:24', 'test 2', '2008-11-19 16:27:24')
       +  SQL (0.000504)   COMMIT
       +  SQL (0.000084)   BEGIN
       +  User Create (0.000189)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:27:24', 'test 3', '2008-11-19 16:27:24')
       +  SQL (0.000518)   COMMIT
       +  SQL (0.000071)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000473)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000445)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000293)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000320)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000115)   COMMIT
       +  User Load (0.000212)   SELECT * FROM `users` 
       +  SQL (0.000071)   BEGIN
       +  User Destroy (0.000289)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000537)   COMMIT
       +  SQL (0.000071)   BEGIN
       +  User Destroy (0.000176)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000460)   COMMIT
       +  SQL (0.000069)   BEGIN
       +  User Destroy (0.000159)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000562)   COMMIT
       +  SQL (0.000299)   BEGIN
       +  User Create (0.000212)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:27:24', 'test 1', '2008-11-26 16:27:24')
       +  SQL (0.000532)   COMMIT
       +  SQL (0.000083)   BEGIN
       +  User Create (0.000194)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:27:24', 'test 2', '2008-11-19 16:27:24')
       +  SQL (0.000514)   COMMIT
       +  SQL (0.000093)   BEGIN
       +  User Create (0.000196)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:27:24', 'test 3', '2008-11-19 16:27:24')
       +  SQL (0.000476)   COMMIT
       +  SQL (0.000074)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000399)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000631)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000354)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.001260)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000132)   COMMIT
       +  User Load (0.000326)   SELECT * FROM `users` 
       +  SQL (0.000084)   BEGIN
       +  User Destroy (0.000221)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000631)   COMMIT
       +  SQL (0.000081)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000937)   COMMIT
       +  SQL (0.000103)   BEGIN
       +  User Destroy (0.000219)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.105650)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000457)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000109)   COMMIT
       +  SQL (0.000107)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000377)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000092)   COMMIT
       +  SQL (0.000137)   BEGIN
       +  User Create (0.000207)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:27:24', 'test 1', '2008-11-26 16:27:24')
       +  SQL (0.021528)   COMMIT
       +  SQL (0.000178)   BEGIN
       +  User Create (0.000314)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:27:24', 'test 2', '2008-11-19 16:27:24')
       +  SQL (0.068458)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Create (0.000272)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:27:24', 'test 3', '2008-11-19 16:27:24')
       +  SQL (0.052256)   COMMIT
       +  SQL (0.000227)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000654)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000469)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000147)   COMMIT
       +  User Load (0.000381)   SELECT * FROM `users` 
       +  SQL (0.000106)   BEGIN
       +  User Destroy (0.000179)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.064297)   COMMIT
       +  SQL (0.000171)   BEGIN
       +  User Destroy (0.000500)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.069917)   COMMIT
       +  SQL (0.000171)   BEGIN
       +  User Destroy (0.000383)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.070059)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000285)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:27:24', 'test 1', '2008-11-26 16:27:24')
       +  SQL (0.068568)   COMMIT
       +  SQL (0.000175)   BEGIN
       +  User Create (0.000257)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:27:24', 'test 2', '2008-11-19 16:27:24')
       +  SQL (0.050401)   COMMIT
       +  SQL (0.000257)   BEGIN
       +  User Create (0.000289)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:27:24', 'test 3', '2008-11-19 16:27:24')
       +  SQL (0.000600)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000607)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000439)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000329)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000375)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000136)   COMMIT
       +  User Load (0.000245)   SELECT * FROM `users` 
       +  SQL (0.000141)   BEGIN
       +  User Destroy (0.000237)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000751)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Destroy (0.000326)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000696)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  User Destroy (0.000241)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000704)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000262)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:27:24', 'test 1', '2008-11-26 16:27:24')
       +  SQL (0.000626)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  User Create (0.000237)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:27:24', 'test 2', '2008-11-19 16:27:24')
       +  SQL (0.000757)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Create (0.000249)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:27:24', 'test 3', '2008-11-19 16:27:24')
       +  SQL (0.000612)   COMMIT
       +  SQL (0.000142)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000558)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000432)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000305)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000338)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000134)   COMMIT
       +  User Load (0.000280)   SELECT * FROM `users` 
       +  SQL (0.000137)   BEGIN
       +  User Destroy (0.000229)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000777)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000256)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000650)   COMMIT
       +  SQL (0.000177)   BEGIN
       +  User Destroy (0.000959)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000658)   COMMIT
       +  SQL (0.000145)   BEGIN
       +  User Create (0.000266)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:27:24', 'test 1', '2008-11-26 16:27:24')
       +  SQL (0.000746)   COMMIT
       +  SQL (0.000113)   BEGIN
       +  User Create (0.000616)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:27:24', 'test 2', '2008-11-19 16:27:24')
       +  SQL (0.000599)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  User Create (0.000262)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:27:24', 'test 3', '2008-11-19 16:27:24')
       +  SQL (0.000762)   COMMIT
       +  SQL (0.000282)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000589)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000459)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000383)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000346)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000126)   COMMIT
       +  User Load (0.000256)   SELECT * FROM `users` 
       +  SQL (0.000132)   BEGIN
       +  User Destroy (0.000351)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000735)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000234)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000679)   COMMIT
       +  SQL (0.000186)   BEGIN
       +  User Destroy (0.000350)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000684)   COMMIT
       +  SQL (0.000251)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000579)   SHOW TABLES
       +  SQL (0.027832)   DROP TABLE `users`
       +  SQL (0.096160)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000754)   SHOW TABLES
       +  SQL (0.002105)   DROP TABLE `report_caches`
       +  SQL (0.197335)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.147543)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.287618)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.001127)   SHOW TABLES
       +  SQL (0.000689)   SELECT version FROM `schema_migrations`
       +  SQL (0.000087)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000736)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.039598)   SHOW FIELDS FROM `users`
       +  SQL (0.069639)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000183)   COMMIT
       +  SQL (0.000132)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000586)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000924)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000152)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Create (0.000223)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:39:07', 'test 1', '2008-11-26 16:39:07')
       +  SQL (0.051942)   COMMIT
       +  SQL (0.000214)   BEGIN
       +  User Create (0.000509)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:39:08', 'test 2', '2008-11-19 16:39:08')
       +  SQL (0.050753)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  User Create (0.000280)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:39:08', 'test 3', '2008-11-19 16:39:08')
       +  SQL (0.000790)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000636)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000490)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000339)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002915)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000388)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000150)   COMMIT
       +  User Load (0.000249)   SELECT * FROM `users` 
       +  SQL (0.000130)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000571)   COMMIT
       +  SQL (0.000235)   BEGIN
       +  User Destroy (0.000173)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000653)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000228)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000656)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  User Create (0.000287)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:39:08', 'test 1', '2008-11-26 16:39:08')
       +  SQL (0.000564)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Create (0.000206)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:39:08', 'test 2', '2008-11-19 16:39:08')
       +  SQL (0.000656)   COMMIT
       +  SQL (0.000187)   BEGIN
       +  User Create (0.000227)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:39:08', 'test 3', '2008-11-19 16:39:08')
       +  SQL (0.000684)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000548)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000543)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000315)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000313)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000138)   COMMIT
       +  User Load (0.000302)   SELECT * FROM `users` 
       +  SQL (0.000133)   BEGIN
       +  User Destroy (0.000176)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000644)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000228)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000675)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  User Destroy (0.000225)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000679)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Create (0.000274)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:39:08', 'test 1', '2008-11-26 16:39:08')
       +  SQL (0.000821)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Create (0.000266)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:39:08', 'test 2', '2008-11-19 16:39:08')
       +  SQL (0.000651)   COMMIT
       +  SQL (0.000210)   BEGIN
       +  User Create (0.000354)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:39:08', 'test 3', '2008-11-19 16:39:08')
       +  SQL (0.000621)   COMMIT
       +  SQL (0.000133)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000576)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000638)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000346)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000280)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000125)   COMMIT
       +  User Load (0.000173)   SELECT * FROM `users` 
       +  SQL (0.000098)   BEGIN
       +  User Destroy (0.000173)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000659)   COMMIT
       +  SQL (0.000181)   BEGIN
       +  User Destroy (0.000584)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000719)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Destroy (0.000342)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.001355)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000426)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000629)   COMMIT
       +  SQL (0.000122)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000531)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000119)   COMMIT
       +  SQL (0.000139)   BEGIN
       +  User Create (0.000242)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:39:08', 'test 1', '2008-11-26 16:39:08')
       +  SQL (0.000898)   COMMIT
       +  SQL (0.000170)   BEGIN
       +  User Create (0.000256)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:39:08', 'test 2', '2008-11-19 16:39:08')
       +  SQL (0.000749)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Create (0.000257)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:39:08', 'test 3', '2008-11-19 16:39:08')
       +  SQL (0.000716)   COMMIT
       +  SQL (0.000210)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000575)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000381)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000136)   COMMIT
       +  User Load (0.000213)   SELECT * FROM `users` 
       +  SQL (0.000098)   BEGIN
       +  User Destroy (0.000164)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000646)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000223)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000593)   COMMIT
       +  SQL (0.000194)   BEGIN
       +  User Destroy (0.000227)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000649)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Create (0.000263)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:39:08', 'test 1', '2008-11-26 16:39:08')
       +  SQL (0.000709)   COMMIT
       +  SQL (0.000289)   BEGIN
       +  User Create (0.000251)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:39:08', 'test 2', '2008-11-19 16:39:08')
       +  SQL (0.000666)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Create (0.000224)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:39:08', 'test 3', '2008-11-19 16:39:08')
       +  SQL (0.000626)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000653)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000829)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000366)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000345)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000130)   COMMIT
       +  User Load (0.000209)   SELECT * FROM `users` 
       +  SQL (0.000100)   BEGIN
       +  User Destroy (0.000175)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000687)   COMMIT
       +  SQL (0.000129)   BEGIN
       +  User Destroy (0.000281)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000561)   COMMIT
       +  SQL (0.000103)   BEGIN
       +  User Destroy (0.000185)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.001708)   COMMIT
       +  SQL (0.000110)   BEGIN
       +  User Create (0.000213)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:39:08', 'test 1', '2008-11-26 16:39:08')
       +  SQL (0.000717)   COMMIT
       +  SQL (0.000094)   BEGIN
       +  User Create (0.000188)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:39:08', 'test 2', '2008-11-19 16:39:08')
       +  SQL (0.000676)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Create (0.000248)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:39:08', 'test 3', '2008-11-19 16:39:08')
       +  SQL (0.000662)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000561)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000531)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000328)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000319)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000147)   COMMIT
       +  User Load (0.000244)   SELECT * FROM `users` 
       +  SQL (0.000128)   BEGIN
       +  User Destroy (0.000223)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000695)   COMMIT
       +  SQL (0.000097)   BEGIN
       +  User Destroy (0.000143)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000673)   COMMIT
       +  SQL (0.000270)   BEGIN
       +  User Destroy (0.000313)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000601)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  User Create (0.000242)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:39:08', 'test 1', '2008-11-26 16:39:08')
       +  SQL (0.000661)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Create (0.000258)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:39:08', 'test 2', '2008-11-19 16:39:08')
       +  SQL (0.000694)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Create (0.000228)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:39:08', 'test 3', '2008-11-19 16:39:08')
       +  SQL (0.000630)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000547)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000849)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000409)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000368)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000140)   COMMIT
       +  User Load (0.000204)   SELECT * FROM `users` 
       +  SQL (0.000099)   BEGIN
       +  User Destroy (0.000176)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000654)   COMMIT
       +  SQL (0.000072)   BEGIN
       +  User Destroy (0.000152)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000665)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Destroy (0.000140)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000629)   COMMIT
       +  SQL (0.000251)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000577)   SHOW TABLES
       +  SQL (0.036822)   DROP TABLE `users`
       +  SQL (0.191034)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000994)   SHOW TABLES
       +  SQL (0.083636)   DROP TABLE `report_caches`
       +  SQL (0.364552)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.201618)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.145563)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.001107)   SHOW TABLES
       +  SQL (0.000368)   SELECT version FROM `schema_migrations`
       +  SQL (0.000094)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000805)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.002425)   SHOW FIELDS FROM `users`
       +  SQL (0.000803)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000109)   COMMIT
       +  SQL (0.000104)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000338)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000222)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000102)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Create (0.000221)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:45:51', 'test 1', '2008-11-26 16:45:51')
       +  SQL (0.000758)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Create (0.000242)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:45:51', 'test 2', '2008-11-19 16:45:51')
       +  SQL (0.000675)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  User Create (0.000253)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:45:51', 'test 3', '2008-11-19 16:45:51')
       +  SQL (0.000736)   COMMIT
       +  SQL (0.000222)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000579)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000434)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000346)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.003483)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000580)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000131)   COMMIT
       +  User Load (0.000216)   SELECT * FROM `users` 
       +  SQL (0.000102)   BEGIN
       +  User Destroy (0.000191)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000732)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Destroy (0.000335)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000729)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Destroy (0.000244)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000684)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000260)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:45:51', 'test 1', '2008-11-26 16:45:51')
       +  SQL (0.000680)   COMMIT
       +  SQL (0.000214)   BEGIN
       +  User Create (0.000235)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:45:51', 'test 2', '2008-11-19 16:45:51')
       +  SQL (0.000634)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000259)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:45:51', 'test 3', '2008-11-19 16:45:51')
       +  SQL (0.000604)   COMMIT
       +  SQL (0.000163)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000618)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000448)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000323)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000339)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000149)   COMMIT
       +  User Load (0.000245)   SELECT * FROM `users` 
       +  SQL (0.000130)   BEGIN
       +  User Destroy (0.000224)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.001185)   COMMIT
       +  SQL (0.000229)   BEGIN
       +  User Destroy (0.000355)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000731)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Destroy (0.000225)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000725)   COMMIT
       +  SQL (0.000227)   BEGIN
       +  User Create (0.000256)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:45:51', 'test 1', '2008-11-26 16:45:51')
       +  SQL (0.000711)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Create (0.001175)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:45:51', 'test 2', '2008-11-19 16:45:51')
       +  SQL (0.000686)   COMMIT
       +  SQL (0.000174)   BEGIN
       +  User Create (0.000295)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:45:51', 'test 3', '2008-11-19 16:45:51')
       +  SQL (0.000701)   COMMIT
       +  SQL (0.000106)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000539)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000689)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000328)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000258)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000106)   COMMIT
       +  User Load (0.000171)   SELECT * FROM `users` 
       +  SQL (0.000099)   BEGIN
       +  User Destroy (0.000168)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000829)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Destroy (0.000277)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000707)   COMMIT
       +  SQL (0.000197)   BEGIN
       +  User Destroy (0.000301)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000558)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000436)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000105)   COMMIT
       +  SQL (0.000108)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000379)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000084)   COMMIT
       +  SQL (0.000122)   BEGIN
       +  User Create (0.000202)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:45:51', 'test 1', '2008-11-26 16:45:51')
       +  SQL (0.000716)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000283)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:45:51', 'test 2', '2008-11-19 16:45:51')
       +  SQL (0.000601)   COMMIT
       +  SQL (0.000136)   BEGIN
       +  User Create (0.000226)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:45:51', 'test 3', '2008-11-19 16:45:51')
       +  SQL (0.000492)   COMMIT
       +  SQL (0.000107)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000488)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000393)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000132)   COMMIT
       +  User Load (0.000159)   SELECT * FROM `users` 
       +  SQL (0.000099)   BEGIN
       +  User Destroy (0.000221)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000670)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000726)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000570)   COMMIT
       +  SQL (0.000125)   BEGIN
       +  User Create (0.000245)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:45:51', 'test 1', '2008-11-26 16:45:51')
       +  SQL (0.000629)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  User Create (0.000350)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:45:51', 'test 2', '2008-11-19 16:45:51')
       +  SQL (0.000981)   COMMIT
       +  SQL (0.000141)   BEGIN
       +  User Create (0.000236)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:45:51', 'test 3', '2008-11-19 16:45:51')
       +  SQL (0.000532)   COMMIT
       +  SQL (0.000093)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000582)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000454)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000267)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000228)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000110)   COMMIT
       +  User Load (0.000183)   SELECT * FROM `users` 
       +  SQL (0.000099)   BEGIN
       +  User Destroy (0.000170)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000733)   COMMIT
       +  SQL (0.000188)   BEGIN
       +  User Destroy (0.000357)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000586)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Destroy (0.000273)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000685)   COMMIT
       +  SQL (0.000168)   BEGIN
       +  User Create (0.000287)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:45:51', 'test 1', '2008-11-26 16:45:51')
       +  SQL (0.000749)   COMMIT
       +  SQL (0.000218)   BEGIN
       +  User Create (0.000253)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:45:51', 'test 2', '2008-11-19 16:45:51')
       +  SQL (0.000627)   COMMIT
       +  SQL (0.000196)   BEGIN
       +  User Create (0.000232)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:45:51', 'test 3', '2008-11-19 16:45:51')
       +  SQL (0.000638)   COMMIT
       +  SQL (0.000142)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000573)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000444)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000335)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000321)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000138)   COMMIT
       +  User Load (0.000319)   SELECT * FROM `users` 
       +  SQL (0.000105)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000706)   COMMIT
       +  SQL (0.000265)   BEGIN
       +  User Destroy (0.000296)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000721)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Destroy (0.000289)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000753)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000270)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:45:51', 'test 1', '2008-11-26 16:45:51')
       +  SQL (0.001189)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Create (0.000278)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:45:51', 'test 2', '2008-11-19 16:45:51')
       +  SQL (0.001574)   COMMIT
       +  SQL (0.000161)   BEGIN
       +  User Create (0.000538)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:45:51', 'test 3', '2008-11-19 16:45:51')
       +  SQL (0.000641)   COMMIT
       +  SQL (0.000112)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000540)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000547)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000343)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000329)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000142)   COMMIT
       +  User Load (0.000185)   SELECT * FROM `users` 
       +  SQL (0.000104)   BEGIN
       +  User Destroy (0.000185)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000778)   COMMIT
       +  SQL (0.000248)   BEGIN
       +  User Destroy (0.000378)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000728)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  User Destroy (0.000237)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000630)   COMMIT
       +  SQL (0.000238)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000567)   SHOW TABLES
       +  SQL (0.002339)   DROP TABLE `users`
       +  SQL (0.107163)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000802)   SHOW TABLES
       +  SQL (0.002199)   DROP TABLE `report_caches`
       +  SQL (0.169817)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.136348)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.198067)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.001239)   SHOW TABLES
       +  SQL (0.000457)   SELECT version FROM `schema_migrations`
       +  SQL (0.000100)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000887)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.088948)   SHOW FIELDS FROM `users`
       +  SQL (0.119832)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000098)   COMMIT
       +  SQL (0.000098)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000399)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000246)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000103)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  User Create (0.000228)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:46:19', 'test 1', '2008-11-26 16:46:19')
       +  SQL (0.053645)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  User Create (0.000287)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:46:19', 'test 2', '2008-11-19 16:46:19')
       +  SQL (0.050563)   COMMIT
       +  SQL (0.000176)   BEGIN
       +  User Create (0.000317)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:46:19', 'test 3', '2008-11-19 16:46:19')
       +  SQL (0.000755)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000580)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000433)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000475)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002857)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000308)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:46:19', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:46:19')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000338)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000279)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:46:19', 'cumulated_registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:46:19')
       +  SQL (0.000838)   COMMIT
       +  User Load (0.000530)   SELECT * FROM `users` 
       +  SQL (0.000211)   BEGIN
       +  User Destroy (0.000294)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.001276)   COMMIT
       +  SQL (0.000211)   BEGIN
       +  User Destroy (0.000355)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000721)   COMMIT
       +  SQL (0.000262)   BEGIN
       +  User Destroy (0.000260)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000675)   COMMIT
       +  SQL (0.000182)   BEGIN
       +  User Create (0.000268)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:46:19', 'test 1', '2008-11-26 16:46:19')
       +  SQL (0.000706)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  User Create (0.000223)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:46:19', 'test 2', '2008-11-19 16:46:19')
       +  SQL (0.000525)   COMMIT
       +  SQL (0.000104)   BEGIN
       +  User Create (0.000186)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:46:19', 'test 3', '2008-11-19 16:46:19')
       +  SQL (0.000557)   COMMIT
       +  SQL (0.000105)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000539)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000217)   ROLLBACK
       +  User Load (0.000244)   SELECT * FROM `users` 
       +  SQL (0.000100)   BEGIN
       +  User Destroy (0.000185)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.001086)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Destroy (0.000254)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000767)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Destroy (0.000222)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000726)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Create (0.000242)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:46:22', 'test 1', '2008-11-26 16:46:22')
       +  SQL (0.000665)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Create (0.000234)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:46:22', 'test 2', '2008-11-19 16:46:22')
       +  SQL (0.000671)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Create (0.000227)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:46:22', 'test 3', '2008-11-19 16:46:22')
       +  SQL (0.000561)   COMMIT
       +  SQL (0.000129)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000634)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000238)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000557)   SHOW TABLES
       +  SQL (0.002178)   DROP TABLE `users`
       +  SQL (0.122437)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000809)   SHOW TABLES
       +  SQL (0.002095)   DROP TABLE `report_caches`
       +  SQL (0.155915)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.125262)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.265915)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.000936)   SHOW TABLES
       +  SQL (0.000732)   SELECT version FROM `schema_migrations`
       +  SQL (0.000107)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000657)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.058334)   SHOW FIELDS FROM `users`
       +  SQL (0.071648)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000157)   COMMIT
       +  SQL (0.000135)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000513)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.005159)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000108)   COMMIT
       +  SQL (0.000177)   BEGIN
       +  User Create (0.000248)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:47:53', 'test 1', '2008-11-26 16:47:53')
       +  SQL (0.028165)   COMMIT
       +  SQL (0.000176)   BEGIN
       +  User Create (0.000289)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:47:53', 'test 2', '2008-11-19 16:47:53')
       +  SQL (0.000697)   COMMIT
       +  SQL (0.000161)   BEGIN
       +  User Create (0.000245)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:47:53', 'test 3', '2008-11-19 16:47:53')
       +  SQL (0.000640)   COMMIT
       +  SQL (0.000185)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000858)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000533)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000335)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002491)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000319)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:47:53', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26 00:00:00', '2008-12-03 16:47:53')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000340)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000259)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:47:53', 'cumulated_registrations', 'User', 2.0, 'day', '2008-11-19 00:00:00', '2008-12-03 16:47:53')
       +  SQL (0.000662)   COMMIT
       +  User Load (0.000425)   SELECT * FROM `users` 
       +  SQL (0.000191)   BEGIN
       +  User Destroy (0.000416)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000645)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Destroy (0.000242)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000696)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000655)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000280)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:47:53', 'test 1', '2008-11-26 16:47:53')
       +  SQL (0.000724)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  User Create (0.000242)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:47:53', 'test 2', '2008-11-19 16:47:53')
       +  SQL (0.000658)   COMMIT
       +  SQL (0.000193)   BEGIN
       +  User Create (0.000243)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:47:53', 'test 3', '2008-11-19 16:47:53')
       +  SQL (0.000682)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000620)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000200)   ROLLBACK
       +  User Load (0.000254)   SELECT * FROM `users` 
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000174)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.001198)   COMMIT
       +  SQL (0.000171)   BEGIN
       +  User Destroy (0.000288)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000838)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000232)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000701)   COMMIT
       +  SQL (0.000168)   BEGIN
       +  User Create (0.000249)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:47:56', 'test 1', '2008-11-26 16:47:56')
       +  SQL (0.000687)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  User Create (0.000275)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:47:56', 'test 2', '2008-11-19 16:47:56')
       +  SQL (0.000728)   COMMIT
       +  SQL (0.000201)   BEGIN
       +  User Create (0.000260)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:47:56', 'test 3', '2008-11-19 16:47:56')
       +  SQL (0.000707)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000626)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000182)   ROLLBACK
       +  User Load (0.000359)   SELECT * FROM `users` 
       +  SQL (0.000073)   BEGIN
       +  User Destroy (0.000193)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.029190)   COMMIT
       +  SQL (0.000230)   BEGIN
       +  User Destroy (0.000383)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.070054)   COMMIT
       +  SQL (0.000175)   BEGIN
       +  User Destroy (0.000371)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.069919)   COMMIT
       +  SQL (0.000252)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000549)   SHOW TABLES
       +  SQL (0.059865)   DROP TABLE `users`
       +  SQL (0.202223)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001785)   SHOW TABLES
       +  SQL (0.002486)   DROP TABLE `report_caches`
       +  SQL (0.167060)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.403286)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.199486)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.000828)   SHOW TABLES
       +  SQL (0.000249)   SELECT version FROM `schema_migrations`
       +  SQL (0.000092)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.001125)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.002406)   SHOW FIELDS FROM `users`
       +  SQL (0.000415)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000110)   COMMIT
       +  SQL (0.000075)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000349)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000297)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000105)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Create (0.000233)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:48:05', 'test 1', '2008-11-26 16:48:05')
       +  SQL (0.000792)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Create (0.000216)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:48:05', 'test 2', '2008-11-19 16:48:05')
       +  SQL (0.000672)   COMMIT
       +  SQL (0.000221)   BEGIN
       +  User Create (0.000256)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:48:05', 'test 3', '2008-11-19 16:48:05')
       +  SQL (0.000711)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000580)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000420)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000315)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002893)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000586)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:48:05', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26 00:00:00', '2008-12-03 16:48:05')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000358)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000264)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:48:05', 'cumulated_registrations', 'User', 2.0, 'day', '2008-11-19 00:00:00', '2008-12-03 16:48:05')
       +  SQL (0.000842)   COMMIT
       +  User Load (0.000514)   SELECT * FROM `users` 
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000275)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000732)   COMMIT
       +  SQL (0.000225)   BEGIN
       +  User Destroy (0.000277)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000721)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  User Destroy (0.000242)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000733)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000290)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:48:05', 'test 1', '2008-11-26 16:48:05')
       +  SQL (0.000714)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:48:05', 'test 2', '2008-11-19 16:48:05')
       +  SQL (0.000712)   COMMIT
       +  SQL (0.000178)   BEGIN
       +  User Create (0.000246)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:48:06', 'test 3', '2008-11-19 16:48:05')
       +  SQL (0.000690)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000641)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000217)   ROLLBACK
       +  User Load (0.000243)   SELECT * FROM `users` 
       +  SQL (0.000108)   BEGIN
       +  User Destroy (0.000200)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.002183)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000442)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000835)   COMMIT
       +  SQL (0.000210)   BEGIN
       +  User Destroy (0.000238)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000645)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  User Create (0.000250)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:48:09', 'test 1', '2008-11-26 16:48:09')
       +  SQL (0.000591)   COMMIT
       +  SQL (0.000152)   BEGIN
       +  User Create (0.000234)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:48:09', 'test 2', '2008-11-19 16:48:09')
       +  SQL (0.000683)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000237)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:48:09', 'test 3', '2008-11-19 16:48:09')
       +  SQL (0.000691)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000625)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000192)   ROLLBACK
       +  User Load (0.000245)   SELECT * FROM `users` 
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000185)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.001133)   COMMIT
       +  SQL (0.000202)   BEGIN
       +  User Destroy (0.000245)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000803)   COMMIT
       +  SQL (0.000201)   BEGIN
       +  User Destroy (0.000271)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000611)   COMMIT
       +  SQL (0.000165)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000450)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000117)   COMMIT
       +  SQL (0.000081)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000394)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000112)   COMMIT
       +  SQL (0.000122)   BEGIN
       +  User Create (0.000194)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:48:10', 'test 1', '2008-11-26 16:48:10')
       +  SQL (0.000715)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Create (0.000253)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:48:10', 'test 2', '2008-11-19 16:48:10')
       +  SQL (0.000746)   COMMIT
       +  SQL (0.000214)   BEGIN
       +  User Create (0.000257)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:48:10', 'test 3', '2008-11-19 16:48:10')
       +  SQL (0.000760)   COMMIT
       +  SQL (0.000203)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000563)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000374)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000109)   COMMIT
       +  User Load (0.000243)   SELECT * FROM `users` 
       +  SQL (0.000111)   BEGIN
       +  User Destroy (0.000280)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000744)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000240)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.001446)   COMMIT
       +  SQL (0.000148)   BEGIN
       +  User Destroy (0.000319)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000667)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:48:10', 'test 1', '2008-11-26 16:48:10')
       +  SQL (0.000489)   COMMIT
       +  SQL (0.000073)   BEGIN
       +  User Create (0.000148)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:48:10', 'test 2', '2008-11-19 16:48:10')
       +  SQL (0.000917)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  User Create (0.000280)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:48:10', 'test 3', '2008-11-19 16:48:10')
       +  SQL (0.000701)   COMMIT
       +  SQL (0.000225)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000668)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000456)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000364)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000311)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:48:10', 'registrations', 'User', 1.0, 'day', '2008-11-26 00:00:00', '2008-12-03 16:48:10')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000350)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000263)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:48:10', 'registrations', 'User', 2.0, 'day', '2008-11-19 00:00:00', '2008-12-03 16:48:10')
       +  SQL (0.000762)   COMMIT
       +  User Load (0.000417)   SELECT * FROM `users` 
       +  SQL (0.000221)   BEGIN
       +  User Destroy (0.000397)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000834)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000617)   COMMIT
       +  SQL (0.000142)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000720)   COMMIT
       +  SQL (0.000163)   BEGIN
       +  User Create (0.000256)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:48:10', 'test 1', '2008-11-26 16:48:10')
       +  SQL (0.000647)   COMMIT
       +  SQL (0.000216)   BEGIN
       +  User Create (0.000238)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:48:10', 'test 2', '2008-11-19 16:48:10')
       +  SQL (0.021667)   COMMIT
       +  SQL (0.000185)   BEGIN
       +  User Create (0.000342)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:48:10', 'test 3', '2008-11-19 16:48:10')
       +  SQL (0.000653)   COMMIT
       +  SQL (0.000144)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000637)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000159)   ROLLBACK
       +  User Load (0.000296)   SELECT * FROM `users` 
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000187)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.001145)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000240)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000818)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Destroy (0.000342)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000769)   COMMIT
       +  SQL (0.000177)   BEGIN
       +  User Create (0.000295)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:48:10', 'test 1', '2008-11-26 16:48:10')
       +  SQL (0.000697)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  User Create (0.000241)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:48:10', 'test 2', '2008-11-19 16:48:10')
       +  SQL (0.000629)   COMMIT
       +  SQL (0.000262)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:48:10', 'test 3', '2008-11-19 16:48:10')
       +  SQL (0.000805)   COMMIT
       +  SQL (0.000211)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000675)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000183)   ROLLBACK
       +  User Load (0.000245)   SELECT * FROM `users` 
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000190)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.015159)   COMMIT
       +  SQL (0.000174)   BEGIN
       +  User Destroy (0.000326)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.093424)   COMMIT
       +  SQL (0.000167)   BEGIN
       +  User Destroy (0.000391)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.070202)   COMMIT
       +  SQL (0.000237)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000689)   SHOW TABLES
       +  SQL (0.002001)   DROP TABLE `users`
       +  SQL (0.110961)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000852)   SHOW TABLES
       +  SQL (0.002006)   DROP TABLE `report_caches`
       +  SQL (0.147378)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001193)   SHOW TABLES
       +  SQL (0.000291)   SELECT version FROM `schema_migrations`
       +  SQL (0.000122)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000973)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.073799)   SHOW FIELDS FROM `users`
       +  SQL (0.067173)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000161)   COMMIT
       +  SQL (0.000413)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000560)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000346)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000136)   COMMIT
       +  SQL (0.000155)   BEGIN
       +  User Create (0.000227)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:49:17', 'test 1', '2008-11-26 16:49:17')
       +  SQL (0.026391)   COMMIT
       +  SQL (0.000134)   BEGIN
       +  User Create (0.000346)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:49:17', 'test 2', '2008-11-19 16:49:17')
       +  SQL (0.086592)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000321)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:49:17', 'test 3', '2008-11-19 16:49:17')
       +  SQL (0.039787)   COMMIT
       +  SQL (0.000245)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000550)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000485)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.002314)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000315)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000100)   COMMIT
       +  User Load (0.000807)   SELECT * FROM `users` 
       +  SQL (0.000094)   BEGIN
       +  User Destroy (0.000198)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.040167)   COMMIT
       +  SQL (0.000180)   BEGIN
       +  User Destroy (0.000335)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000812)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  User Destroy (0.000242)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000604)   COMMIT
       +  SQL (0.000154)   BEGIN
       +  User Create (0.000258)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:49:17', 'test 1', '2008-11-26 16:49:17')
       +  SQL (0.000718)   COMMIT
       +  SQL (0.000181)   BEGIN
       +  User Create (0.000333)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:49:17', 'test 2', '2008-11-19 16:49:17')
       +  SQL (0.000748)   COMMIT
       +  SQL (0.000180)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:49:17', 'test 3', '2008-11-19 16:49:17')
       +  SQL (0.000792)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000533)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000450)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000311)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000322)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000136)   COMMIT
       +  User Load (0.000230)   SELECT * FROM `users` 
       +  SQL (0.000130)   BEGIN
       +  User Destroy (0.000223)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.000629)   COMMIT
       +  SQL (0.000108)   BEGIN
       +  User Destroy (0.000153)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000616)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Destroy (0.000231)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000684)   COMMIT
       +  SQL (0.000174)   BEGIN
       +  User Create (0.000276)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:49:17', 'test 1', '2008-11-26 16:49:17')
       +  SQL (0.000697)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Create (0.000244)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:49:17', 'test 2', '2008-11-19 16:49:17')
       +  SQL (0.001344)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Create (0.001287)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:49:17', 'test 3', '2008-11-19 16:49:17')
       +  SQL (0.000693)   COMMIT
       +  SQL (0.000113)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000563)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000493)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000359)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000493)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000141)   COMMIT
       +  User Load (0.000225)   SELECT * FROM `users` 
       +  SQL (0.000090)   BEGIN
       +  User Destroy (0.000220)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.000835)   COMMIT
       +  SQL (0.000204)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000701)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Destroy (0.000271)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000623)   COMMIT
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.001960)   SHOW FIELDS FROM `report_caches`
       +  SQL (0.000168)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000372)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000117)   COMMIT
       +  SQL (0.000112)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000287)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000105)   COMMIT
       +  SQL (0.000125)   BEGIN
       +  User Create (0.000198)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:49:17', 'test 1', '2008-11-26 16:49:17')
       +  SQL (0.000772)   COMMIT
       +  SQL (0.000193)   BEGIN
       +  User Create (0.000239)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:49:17', 'test 2', '2008-11-19 16:49:17')
       +  SQL (0.000665)   COMMIT
       +  SQL (0.000172)   BEGIN
       +  User Create (0.000240)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:49:17', 'test 3', '2008-11-19 16:49:17')
       +  SQL (0.000566)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000460)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000428)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000150)   COMMIT
       +  User Load (0.000322)   SELECT * FROM `users` 
       +  SQL (0.000151)   BEGIN
       +  User Destroy (0.000256)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000742)   COMMIT
       +  SQL (0.000211)   BEGIN
       +  User Destroy (0.000239)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000701)   COMMIT
       +  SQL (0.000142)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000872)   COMMIT
       +  SQL (0.000162)   BEGIN
       +  User Create (0.000273)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:49:17', 'test 1', '2008-11-26 16:49:17')
       +  SQL (0.000734)   COMMIT
       +  SQL (0.000193)   BEGIN
       +  User Create (0.000434)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:49:17', 'test 2', '2008-11-19 16:49:17')
       +  SQL (0.000931)   COMMIT
       +  SQL (0.000141)   BEGIN
       +  User Create (0.000255)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:49:17', 'test 3', '2008-11-19 16:49:17')
       +  SQL (0.002144)   COMMIT
       +  SQL (0.000075)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000322)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000308)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000218)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000227)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000105)   COMMIT
       +  User Load (0.000165)   SELECT * FROM `users` 
       +  SQL (0.000098)   BEGIN
       +  User Destroy (0.000171)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000644)   COMMIT
       +  SQL (0.000114)   BEGIN
       +  User Destroy (0.000284)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000734)   COMMIT
       +  SQL (0.000213)   BEGIN
       +  User Destroy (0.000263)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000706)   COMMIT
       +  SQL (0.000261)   BEGIN
       +  User Create (0.000284)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:49:17', 'test 1', '2008-11-26 16:49:17')
       +  SQL (0.000749)   COMMIT
       +  SQL (0.000178)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:49:17', 'test 2', '2008-11-19 16:49:17')
       +  SQL (0.000753)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:49:17', 'test 3', '2008-11-19 16:49:17')
       +  SQL (0.000748)   COMMIT
       +  SQL (0.000185)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000468)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000434)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000332)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000412)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000142)   COMMIT
       +  User Load (0.000234)   SELECT * FROM `users` 
       +  SQL (0.000117)   BEGIN
       +  User Destroy (0.000171)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000679)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000656)   COMMIT
       +  SQL (0.000141)   BEGIN
       +  User Destroy (0.000311)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.001282)   COMMIT
       +  SQL (0.000181)   BEGIN
       +  User Create (0.000297)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:49:17', 'test 1', '2008-11-26 16:49:17')
       +  SQL (0.000758)   COMMIT
       +  SQL (0.000153)   BEGIN
       +  User Create (0.000237)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:49:17', 'test 2', '2008-11-19 16:49:17')
       +  SQL (0.000527)   COMMIT
       +  SQL (0.000109)   BEGIN
       +  User Create (0.000202)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:49:17', 'test 3', '2008-11-19 16:49:17')
       +  SQL (0.000608)   COMMIT
       +  SQL (0.000138)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000367)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000626)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (login IN ('test 1','test 2') AND created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000484)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000250)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  SQL (0.000074)   COMMIT
       +  User Load (0.000297)   SELECT * FROM `users` 
       +  SQL (0.000093)   BEGIN
       +  User Destroy (0.000198)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.000678)   COMMIT
       +  SQL (0.000098)   BEGIN
       +  User Destroy (0.000151)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.000583)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000227)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.000655)   COMMIT
       +  SQL (0.000238)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000543)   SHOW TABLES
       +  SQL (0.002263)   DROP TABLE `users`
       +  SQL (0.117251)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000916)   SHOW TABLES
       +  SQL (0.001681)   DROP TABLE `report_caches`
       +  SQL (0.157479)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.001169)   SHOW TABLES
       +  SQL (0.000300)   SELECT version FROM `schema_migrations`
       +  SQL (0.000122)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000600)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.033341)   SHOW FIELDS FROM `users`
       +  SQL (0.123700)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000246)   COMMIT
       +  SQL (0.000133)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000446)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000342)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000145)   COMMIT
       +  SQL (0.000184)   BEGIN
       +  User Create (0.000283)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:49:31', 'test 1', '2008-11-26 16:49:31')
       +  SQL (0.040788)   COMMIT
       +  SQL (0.000192)   BEGIN
       +  User Create (0.000289)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:49:31', 'test 2', '2008-11-19 16:49:31')
       +  SQL (0.068204)   COMMIT
       +  SQL (0.000164)   BEGIN
       +  User Create (0.000275)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:49:31', 'test 3', '2008-11-19 16:49:31')
       +  SQL (0.004033)   COMMIT
       +  SQL (0.000110)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000428)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000650)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000313)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.040904)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000317)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:49:31', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:49:31')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000479)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000240)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:49:31', 'cumulated_registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:49:31')
       +  SQL (0.000742)   COMMIT
       +  User Load (0.000337)   SELECT * FROM `users` 
       +  SQL (0.000146)   BEGIN
       +  User Destroy (0.000276)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000770)   COMMIT
       +  SQL (0.000210)   BEGIN
       +  User Destroy (0.000218)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000671)   COMMIT
       +  SQL (0.000208)   BEGIN
       +  User Destroy (0.000309)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000779)   COMMIT
       +  SQL (0.000169)   BEGIN
       +  User Create (0.000269)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:49:31', 'test 1', '2008-11-26 16:49:31')
       +  SQL (0.000694)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Create (0.000228)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:49:31', 'test 2', '2008-11-19 16:49:31')
       +  SQL (0.000613)   COMMIT
       +  SQL (0.000146)   BEGIN
       +  User Create (0.000223)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:49:31', 'test 3', '2008-11-19 16:49:31')
       +  SQL (0.000685)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000519)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000181)   ROLLBACK
       +  User Load (0.000231)   SELECT * FROM `users` 
       +  SQL (0.000141)   BEGIN
       +  User Destroy (0.000178)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.001160)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000249)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000879)   COMMIT
       +  SQL (0.000209)   BEGIN
       +  User Destroy (0.000234)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000641)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Create (0.000252)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:49:33', 'test 1', '2008-11-26 16:49:33')
       +  SQL (0.000722)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  User Create (0.000241)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:49:33', 'test 2', '2008-11-19 16:49:33')
       +  SQL (0.000741)   COMMIT
       +  SQL (0.000212)   BEGIN
       +  User Create (0.000231)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:49:33', 'test 3', '2008-11-19 16:49:33')
       +  SQL (0.000584)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000519)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000180)   ROLLBACK
       +  User Load (0.000245)   SELECT * FROM `users` 
       +  SQL (0.000100)   BEGIN
       +  User Destroy (0.000190)    DELETE FROM `users`
       + WHERE `id` = 7
       +
       +  SQL (0.001146)   COMMIT
       +  SQL (0.000309)   BEGIN
       +  User Destroy (0.000303)    DELETE FROM `users`
       + WHERE `id` = 8
       +
       +  SQL (0.000857)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  User Destroy (0.000284)    DELETE FROM `users`
       + WHERE `id` = 9
       +
       +  SQL (0.000707)   COMMIT
       +  SQL (0.000159)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000405)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000108)   COMMIT
       +  SQL (0.000104)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000294)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000104)   COMMIT
       +  SQL (0.000131)   BEGIN
       +  User Create (0.000221)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:49:33', 'test 1', '2008-11-26 16:49:33')
       +  SQL (0.000762)   COMMIT
       +  SQL (0.000174)   BEGIN
       +  User Create (0.000238)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:49:33', 'test 2', '2008-11-19 16:49:33')
       +  SQL (0.000728)   COMMIT
       +  SQL (0.000336)   BEGIN
       +  User Create (0.000282)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:49:33', 'test 3', '2008-11-19 16:49:33')
       +  SQL (0.000806)   COMMIT
       +  SQL (0.000210)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000492)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 3
       +  SQL (0.000352)   SELECT sum(`users`.profile_visits) AS sum_profile_visits, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-11-30') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000142)   COMMIT
       +  User Load (0.000235)   SELECT * FROM `users` 
       +  SQL (0.000179)   BEGIN
       +  User Destroy (0.000233)    DELETE FROM `users`
       + WHERE `id` = 10
       +
       +  SQL (0.000785)   COMMIT
       +  SQL (0.000066)   BEGIN
       +  User Destroy (0.000190)    DELETE FROM `users`
       + WHERE `id` = 11
       +
       +  SQL (0.000645)   COMMIT
       +  SQL (0.000087)   BEGIN
       +  User Destroy (0.000240)    DELETE FROM `users`
       + WHERE `id` = 12
       +
       +  SQL (0.000603)   COMMIT
       +  SQL (0.000110)   BEGIN
       +  User Create (0.000200)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:49:33', 'test 1', '2008-11-26 16:49:33')
       +  SQL (0.000860)   COMMIT
       +  SQL (0.000141)   BEGIN
       +  User Create (0.000194)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:49:33', 'test 2', '2008-11-19 16:49:33')
       +  SQL (0.000629)   COMMIT
       +  SQL (0.000103)   BEGIN
       +  User Create (0.000149)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:49:33', 'test 3', '2008-11-19 16:49:33')
       +  SQL (0.000641)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000496)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000427)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000389)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000289)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:49:33', 'registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:49:33')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000271)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000165)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:49:33', 'registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:49:33')
       +  SQL (0.000732)   COMMIT
       +  User Load (0.000409)   SELECT * FROM `users` 
       +  SQL (0.000243)   BEGIN
       +  User Destroy (0.000258)    DELETE FROM `users`
       + WHERE `id` = 13
       +
       +  SQL (0.000664)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Destroy (0.000256)    DELETE FROM `users`
       + WHERE `id` = 14
       +
       +  SQL (0.000680)   COMMIT
       +  SQL (0.000199)   BEGIN
       +  User Destroy (0.000235)    DELETE FROM `users`
       + WHERE `id` = 15
       +
       +  SQL (0.000662)   COMMIT
       +  SQL (0.000223)   BEGIN
       +  User Create (0.000264)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:49:33', 'test 1', '2008-11-26 16:49:33')
       +  SQL (0.000685)   COMMIT
       +  SQL (0.000241)   BEGIN
       +  User Create (0.000244)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:49:33', 'test 2', '2008-11-19 16:49:33')
       +  SQL (0.000667)   COMMIT
       +  SQL (0.000150)   BEGIN
       +  User Create (0.000251)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:49:33', 'test 3', '2008-11-19 16:49:33')
       +  SQL (0.000641)   COMMIT
       +  SQL (0.000287)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000756)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000154)   ROLLBACK
       +  User Load (0.000283)   SELECT * FROM `users` 
       +  SQL (0.000103)   BEGIN
       +  User Destroy (0.000193)    DELETE FROM `users`
       + WHERE `id` = 16
       +
       +  SQL (0.000761)   COMMIT
       +  SQL (0.000198)   BEGIN
       +  User Destroy (0.000236)    DELETE FROM `users`
       + WHERE `id` = 17
       +
       +  SQL (0.000720)   COMMIT
       +  SQL (0.000195)   BEGIN
       +  User Destroy (0.000286)    DELETE FROM `users`
       + WHERE `id` = 18
       +
       +  SQL (0.000591)   COMMIT
       +  SQL (0.000173)   BEGIN
       +  User Create (0.000278)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:49:33', 'test 1', '2008-11-26 16:49:33')
       +  SQL (0.000699)   COMMIT
       +  SQL (0.000160)   BEGIN
       +  User Create (0.000254)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:49:33', 'test 2', '2008-11-19 16:49:33')
       +  SQL (0.000766)   COMMIT
       +  SQL (0.000145)   BEGIN
       +  User Create (0.000226)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:49:33', 'test 3', '2008-11-19 16:49:33')
       +  SQL (0.000497)   COMMIT
       +  SQL (0.000121)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000517)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000205)   ROLLBACK
       +  User Load (0.000253)   SELECT * FROM `users` 
       +  SQL (0.000101)   BEGIN
       +  User Destroy (0.000192)    DELETE FROM `users`
       + WHERE `id` = 19
       +
       +  SQL (0.043717)   COMMIT
       +  SQL (0.000176)   BEGIN
       +  User Destroy (0.000321)    DELETE FROM `users`
       + WHERE `id` = 20
       +
       +  SQL (0.071525)   COMMIT
       +  SQL (0.000246)   BEGIN
       +  User Destroy (0.000324)    DELETE FROM `users`
       + WHERE `id` = 21
       +
       +  SQL (0.071100)   COMMIT
       +  SQL (0.000244)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000563)   SHOW TABLES
       +  SQL (0.106377)   DROP TABLE `users`
       +  SQL (0.203985)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000817)   SHOW TABLES
       +  SQL (0.001916)   DROP TABLE `report_caches`
       +  SQL (0.126033)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.135183)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.134548)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.000935)   SHOW TABLES
       +  SQL (0.000738)   SELECT version FROM `schema_migrations`
       +  SQL (0.000089)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000689)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.037518)   SHOW FIELDS FROM `users`
       +  SQL (0.126798)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000165)   COMMIT
       +  SQL (0.000136)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000531)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000332)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000135)   COMMIT
       +  SQL (0.000151)   BEGIN
       +  User Create (0.000231)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:50:52', 'test 1', '2008-11-26 16:50:52')
       +  SQL (0.086052)   COMMIT
       +  SQL (0.000219)   BEGIN
       +  User Create (0.000329)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:50:52', 'test 2', '2008-11-19 16:50:52')
       +  SQL (0.050958)   COMMIT
       +  SQL (0.000140)   BEGIN
       +  User Create (0.000272)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:50:52', 'test 3', '2008-11-19 16:50:52')
       +  SQL (0.000703)   COMMIT
       +  SQL (0.000205)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000577)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000432)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000330)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002346)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000328)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:50:52', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:50:52')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000373)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000260)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:50:52', 'cumulated_registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:50:52')
       +  SQL (0.000682)   COMMIT
       +  User Load (0.000328)   SELECT * FROM `users` 
       +  SQL (0.000146)   BEGIN
       +  User Destroy (0.000262)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000683)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000230)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000557)   COMMIT
       +  SQL (0.000149)   BEGIN
       +  User Destroy (0.000240)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000632)   COMMIT
       +  SQL (0.000166)   BEGIN
       +  User Create (0.000314)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:50:52', 'test 1', '2008-11-26 16:50:52')
       +  SQL (0.000667)   COMMIT
       +  SQL (0.000178)   BEGIN
       +  User Create (0.000265)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:50:52', 'test 2', '2008-11-19 16:50:52')
       +  SQL (0.000757)   COMMIT
       +  SQL (0.000228)   BEGIN
       +  User Create (0.000248)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:50:52', 'test 3', '2008-11-19 16:50:52')
       +  SQL (0.000637)   COMMIT
       +  SQL (0.000207)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000616)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000256)   ROLLBACK
       +  User Load (0.000257)   SELECT * FROM `users` 
       +  SQL (0.000100)   BEGIN
       +  User Destroy (0.000188)    DELETE FROM `users`
       + WHERE `id` = 4
       +
       +  SQL (0.001182)   COMMIT
       +  SQL (0.000206)   BEGIN
       +  User Destroy (0.000241)    DELETE FROM `users`
       + WHERE `id` = 5
       +
       +  SQL (0.000747)   COMMIT
       +  SQL (0.000179)   BEGIN
       +  User Destroy (0.000359)    DELETE FROM `users`
       + WHERE `id` = 6
       +
       +  SQL (0.000724)   COMMIT
       +  SQL (0.000161)   BEGIN
       +  User Create (0.000263)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:50:55', 'test 1', '2008-11-26 16:50:55')
       +  SQL (0.000721)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Create (0.000246)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:50:55', 'test 2', '2008-11-19 16:50:55')
       +  SQL (0.000636)   COMMIT
       +  SQL (0.000211)   BEGIN
       +  User Create (0.000252)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:50:55', 'test 3', '2008-11-19 16:50:55')
       +  SQL (0.001221)   COMMIT
       +  SQL (0.000344)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000700)   SELECT * FROM `report_caches` WHERE (`report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day' AND `report_caches`.`model_name` = 'User') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000228)   SET SQL_AUTO_IS_NULL=0
       +  SQL (0.000633)   SHOW TABLES
       +  SQL (0.037223)   DROP TABLE `users`
       +  SQL (0.097620)   CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `login` varchar(255) NOT NULL, `profile_visits` int(11) DEFAULT 0 NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.000782)   SHOW TABLES
       +  SQL (0.002915)   DROP TABLE `report_caches`
       +  SQL (0.264445)   CREATE TABLE `report_caches` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `model_name` varchar(255) NOT NULL, `report_name` varchar(255) NOT NULL, `report_grouping` varchar(255) NOT NULL, `value` float DEFAULT 0 NOT NULL, `reporting_period` datetime NOT NULL, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
       +  SQL (0.145725)   CREATE INDEX `report_caches_name_klass_grouping` ON `report_caches` (`model_name`, `report_name`, `report_grouping`)
       +  SQL (0.236565)   CREATE UNIQUE INDEX `report_caches_name_klass_grouping_period` ON `report_caches` (`model_name`, `report_name`, `report_grouping`, `reporting_period`)
       +  SQL (0.000710)   SHOW TABLES
       +  SQL (0.000208)   SELECT version FROM `schema_migrations`
       +  SQL (0.000090)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000631)   SELECT * FROM `report_caches` WHERE (`report_caches`.`model_name` = 'User' AND `report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day') ORDER BY created_at DESC LIMIT 100
       +  User Columns (0.053432)   SHOW FIELDS FROM `users`
       +  SQL (0.132426)   SELECT sum(`users`.id) AS sum_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000173)   COMMIT
       +  SQL (0.000133)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000649)   SELECT * FROM `report_caches` WHERE (`report_caches`.`model_name` = 'User' AND `report_caches`.`report_name` = 'registrations' AND `report_caches`.`report_grouping` = 'day') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000341)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  SQL (0.000110)   COMMIT
       +  SQL (0.000157)   BEGIN
       +  User Create (0.000247)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:55:42', 'test 1', '2008-11-26 16:55:42')
       +  SQL (0.035337)   COMMIT
       +  SQL (0.000125)   BEGIN
       +  User Create (0.000357)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:55:43', 'test 2', '2008-11-19 16:55:43')
       +  SQL (0.067920)   COMMIT
       +  SQL (0.000424)   BEGIN
       +  User Create (0.000271)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:55:43', 'test 3', '2008-11-19 16:55:43')
       +  SQL (0.056893)   COMMIT
       +  SQL (0.000163)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000657)   SELECT * FROM `report_caches` WHERE (`report_caches`.`model_name` = 'User' AND `report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day') ORDER BY created_at DESC LIMIT 100
       +  SQL (0.000466)   SELECT count(`users`.id) AS count_id, DATE_FORMAT(created_at, '%Y/%m/%d') AS date_format_created_at_y_m_d FROM `users` WHERE (created_at >= '2008-08-25') GROUP BY DATE_FORMAT(created_at, '%Y/%m/%d') ORDER BY created_at DESC 
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000438)   SELECT * FROM `report_caches` WHERE (`report_caches`.`reporting_period` = '2008-11-26' AND `report_caches`.`model_name` = 'User' AND `report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Columns (0.002909)   SHOW FIELDS FROM `report_caches`
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000319)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:55:43', 'cumulated_registrations', 'User', 1.0, 'day', '2008-11-26', '2008-12-03 16:55:43')
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000368)   SELECT * FROM `report_caches` WHERE (`report_caches`.`reporting_period` = '2008-11-19' AND `report_caches`.`model_name` = 'User' AND `report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day') LIMIT 1
       +  Kvlr::ReportsAsSparkline::ReportCache Create (0.000275)   INSERT INTO `report_caches` (`updated_at`, `report_name`, `model_name`, `value`, `report_grouping`, `reporting_period`, `created_at`) VALUES('2008-12-03 16:55:43', 'cumulated_registrations', 'User', 2.0, 'day', '2008-11-19', '2008-12-03 16:55:43')
       +  SQL (0.001027)   COMMIT
       +  User Load (0.000365)   SELECT * FROM `users` 
       +  SQL (0.000125)   BEGIN
       +  User Destroy (0.000257)    DELETE FROM `users`
       + WHERE `id` = 1
       +
       +  SQL (0.000678)   COMMIT
       +  SQL (0.000112)   BEGIN
       +  User Destroy (0.000359)    DELETE FROM `users`
       + WHERE `id` = 2
       +
       +  SQL (0.000684)   COMMIT
       +  SQL (0.000107)   BEGIN
       +  User Destroy (0.000216)    DELETE FROM `users`
       + WHERE `id` = 3
       +
       +  SQL (0.000499)   COMMIT
       +  SQL (0.000143)   BEGIN
       +  User Create (0.000193)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(1, '2008-12-03 16:55:43', 'test 1', '2008-11-26 16:55:43')
       +  SQL (0.000607)   COMMIT
       +  SQL (0.000267)   BEGIN
       +  User Create (0.000372)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(2, '2008-12-03 16:55:43', 'test 2', '2008-11-19 16:55:43')
       +  SQL (0.000608)   COMMIT
       +  SQL (0.000158)   BEGIN
       +  User Create (0.000229)   INSERT INTO `users` (`profile_visits`, `updated_at`, `login`, `created_at`) VALUES(3, '2008-12-03 16:55:43', 'test 3', '2008-11-19 16:55:43')
       +  SQL (0.000646)   COMMIT
       +  SQL (0.000193)   BEGIN
       +  Kvlr::ReportsAsSparkline::ReportCache Load (0.000647)   SELECT * FROM `report_caches` WHERE (`report_caches`.`model_name` = 'User' AND `report_caches`.`report_name` = 'cumulated_registrations' AND `report_caches`.`report_grouping` = 'day') ORDER BY created_at DESC LIMIT 100
 (DIR) diff --git a/spec/models/report_method_spec.rb b/spec/models/report_method_spec.rb
       @@ -22,10 +22,6 @@ describe Kvlr::ReportsAsSparkline do
              lambda { User.registrations_report }.should_not raise_error(ArgumentError)
            end
        
       -    it 'should return an ordered hash' do
       -      User.registrations_report.class.should == ActiveSupport::OrderedHash
       -    end
       -
          end
        
        end
 (DIR) diff --git a/spec/other/grouping_spec.rb b/spec/other/grouping_spec.rb
       @@ -51,34 +51,34 @@ describe Kvlr::ReportsAsSparkline::Grouping do
        
          end
        
       -  describe '.previous_reporting_period' do
       +  describe '.next_reporting_period' do
        
       -    it 'should return the first day of the month before the specified period for grouping :month' do
       +    it 'should return the first day of the month after the specified period for grouping :month' do
              grouping = Kvlr::ReportsAsSparkline::Grouping.new(:month)
              period = grouping.to_reporting_period(Time.now)
        
       -      grouping.previous_reporting_period(period).should == Date.new((period - 1.month).year, (period - 1.month).month, 1)
       +      grouping.next_reporting_period(period).should == Date.new((period + 1.month).year, (period + 1.month).month, 1)
            end
        
       -    it 'should return the date 1 week before the specified period for grouping :week' do
       +    it 'should return the date 1 week after the specified period for grouping :week' do
              grouping = Kvlr::ReportsAsSparkline::Grouping.new(:week)
              period = grouping.to_reporting_period(Time.now)
        
       -      grouping.previous_reporting_period(period).should == Date.new((period - 1.week).year, (period - 1.week).month, (period - 1.week).day)
       +      grouping.next_reporting_period(period).should == Date.new((period + 1.week).year, (period + 1.week).month, (period + 1.week).day)
            end
        
       -    it 'should return the date 1 day before the specified period for grouping :day' do
       +    it 'should return the date 1 day after the specified period for grouping :day' do
              grouping = Kvlr::ReportsAsSparkline::Grouping.new(:day)
              period = grouping.to_reporting_period(Time.now)
        
       -      grouping.previous_reporting_period(period).should == Date.new((period - 1.day).year, (period - 1.day).month, (period - 1.day).day)
       +      grouping.next_reporting_period(period).should == Date.new((period + 1.day).year, (period + 1.day).month, (period + 1.day).day)
            end
        
       -    it 'should return the date and time 1 hour before the specified period for grouping :hour' do
       -      grouping = Kvlr::ReportsAsSparkline::Grouping.new(:day)
       +    it 'should return the date and time 1 hour after the specified period for grouping :hour' do
       +      grouping = Kvlr::ReportsAsSparkline::Grouping.new(:hour)
              period = grouping.to_reporting_period(Time.now)
        
       -      grouping.previous_reporting_period(period).should == Date.new((period - 1.hour).year, (period - 1.hour).month, (period - 1.hour).day, (period - 1.hour).hour)
       +      grouping.next_reporting_period(period).should == DateTime.new((period + 1.hour).year, (period + 1.hour).month, (period + 1.hour).day, (period + 1.hour).hour)
            end
        
          end
 (DIR) diff --git a/spec/other/report_cache_spec.rb b/spec/other/report_cache_spec.rb
       @@ -31,26 +31,26 @@ describe Kvlr::ReportsAsSparkline::ReportCache do
            it 'should correctly return the last reporting period that is in the cache' do
              cached_data = [
                Kvlr::ReportsAsSparkline::ReportCache.new(:reporting_period => @grouping.to_reporting_period(Time.now - 2.days)),
       -        Kvlr::ReportsAsSparkline::ReportCache.new(:reporting_period => @grouping.to_reporting_period(Time.now - 3.day))
       +        Kvlr::ReportsAsSparkline::ReportCache.new(:reporting_period => @grouping.to_reporting_period(Time.now - 3.days))
              ]
        
              Kvlr::ReportsAsSparkline::ReportCache.send(
                :get_last_reporting_period,
                cached_data,
       -        @grouping
       +        @grouping,
       +        @grouping.first_reporting_period(3)
              ).should == @grouping.to_reporting_period(Time.now - 2.days)
            end
        
       -    it 'should return the current reporting period if the cache is empty' do
       +    it 'should return the first reporting period for (Time.now - limit * day/week/month/year) if the cache is empty' do
              Kvlr::ReportsAsSparkline::ReportCache.send(
                :get_last_reporting_period,
                [],
       -        @grouping
       -      ).should == @grouping.to_reporting_period(Time.now)
       +        @grouping,
       +        @grouping.first_reporting_period(3)
       +      ).should == @grouping.to_reporting_period(Time.now - 3.days)
            end
        
          end
        
        end
       -
       -class YieldCheckException < Exception; end
 (DIR) diff --git a/spec/other/report_spec.rb b/spec/other/report_spec.rb
       @@ -9,14 +9,14 @@ describe Kvlr::ReportsAsSparkline::Report do
          describe '.run' do
        
            it 'should invoke the default aggregation method on the model' do
       -      User.should_receive(:count).once
       +      User.should_receive(:count).once.and_return([])
        
              @report.run
            end
        
            it 'should invoke the custom aggregation method on the model if one is specified' do
              @report = Kvlr::ReportsAsSparkline::Report.new(User, :registrations, :aggregation => :sum)
       -      User.should_receive(:sum).once
       +      User.should_receive(:sum).once.and_return([])
        
              @report.run
            end