multi_bit_field 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +22 -0
- data/lib/multi_bit_field.rb +57 -3
- data/lib/multi_bit_field/version.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +750 -0
- data/test/multi_bit_field_test.rb +32 -0
- metadata +11 -13
data/README.markdown
CHANGED
@@ -63,6 +63,8 @@ person.counter.to_s(2)
|
|
63
63
|
|
64
64
|
We also provide convenient methods for resetting and incrementing fields. These methods require active-record and active-relation since they use the "update_attributes" and "update_all" methods.
|
65
65
|
|
66
|
+
When only the columnn name is supplied, it will increment or reset all of the fields.
|
67
|
+
|
66
68
|
```ruby
|
67
69
|
peron.reset(:counter, :daily)
|
68
70
|
person.daily
|
@@ -70,10 +72,22 @@ person.daily
|
|
70
72
|
person.monthly
|
71
73
|
=> 4
|
72
74
|
|
75
|
+
person.reset(:counter)
|
76
|
+
person.daily
|
77
|
+
=> 0
|
78
|
+
person.monthly
|
79
|
+
=> 0
|
80
|
+
|
73
81
|
person.increment(:counter, :daily)
|
74
82
|
person.daily
|
75
83
|
=> 1
|
76
84
|
|
85
|
+
person.increment(:counter)
|
86
|
+
person.daily
|
87
|
+
=> 2
|
88
|
+
person.monthly
|
89
|
+
=> 1
|
90
|
+
|
77
91
|
person.reset(:counter, :daily, :monthly)
|
78
92
|
person.daily
|
79
93
|
=> 0
|
@@ -101,6 +115,14 @@ By the way, these methods all work with your chainable active-relation query met
|
|
101
115
|
Person.where(:daily => 0).increment_bitfield(:counter, :daily)
|
102
116
|
```
|
103
117
|
|
118
|
+
We also support some cool counting features -- be sure to admire the nice clean SQL:
|
119
|
+
|
120
|
+
```ruby
|
121
|
+
Person.count_by(:counter, :monthly)
|
122
|
+
(0.4ms) SELECT count(id) as daily_count, (counter & 31744)/1024 as daily FROM "people" GROUP BY daily
|
123
|
+
=> [{"daily_count" => 2, "daily" => 5}, {"daily_count" => 3, "daily" => 1}]
|
124
|
+
```
|
125
|
+
|
104
126
|
One limitation you should be aware of:
|
105
127
|
|
106
128
|
Since this technique pins the counters/limits to specific bits, you will need to plan the size of integer you intend to store in each field. For instance, if you need numbers 0-7, you can store that in 3 bits, if you need 0-31, you'll need 5 bits, etc.
|
data/lib/multi_bit_field.rb
CHANGED
@@ -50,6 +50,19 @@ module MultiBitField
|
|
50
50
|
@@bitfields[column_name].values.sum.count
|
51
51
|
end
|
52
52
|
|
53
|
+
# Returns the field names for the bitfield column
|
54
|
+
#
|
55
|
+
# +bitfields
|
56
|
+
#
|
57
|
+
# @example
|
58
|
+
# user.bitfields :counter
|
59
|
+
#
|
60
|
+
# @param [ Symbol ] column_name column name that stores the bitfield integer
|
61
|
+
#
|
62
|
+
def bitfields column_name
|
63
|
+
@@bitfields[column_name].keys
|
64
|
+
end
|
65
|
+
|
53
66
|
# Returns a "reset mask" for a list of fields
|
54
67
|
#
|
55
68
|
# +reset_mask_for :fields
|
@@ -60,6 +73,7 @@ module MultiBitField
|
|
60
73
|
# @param [ Symbol ] column name of the column these fields are in
|
61
74
|
# @param [ Symbol ] field(s) name of the field(s) for the mask
|
62
75
|
def reset_mask_for column_name, *fields
|
76
|
+
fields = bitfields if fields.empty?
|
63
77
|
fields.inject("1" * bitfield_size(column_name)) do |mask, field_name|
|
64
78
|
column = @@bitfields[column_name]
|
65
79
|
raise ArgumentError, "Unknown column for bitfield: #{column_name}" if column.nil?
|
@@ -80,6 +94,7 @@ module MultiBitField
|
|
80
94
|
# @param [ Symbol ] column name of the column these fields are in
|
81
95
|
# @param [ Symbol ] field(s) name of the field(s) for the mask
|
82
96
|
def increment_mask_for column_name, *fields
|
97
|
+
fields = bitfields if fields.empty?
|
83
98
|
fields.inject("0" * bitfield_size(column_name)) do |mask, field_name|
|
84
99
|
column = @@bitfields[column_name]
|
85
100
|
raise ArgumentError, "Unknown column for bitfield: #{column_name}" if column.nil?
|
@@ -90,6 +105,27 @@ module MultiBitField
|
|
90
105
|
end.to_i(2)
|
91
106
|
end
|
92
107
|
|
108
|
+
# Returns an "only mask" for a list of fields
|
109
|
+
#
|
110
|
+
# +only_mask_for :fields
|
111
|
+
#
|
112
|
+
# @example
|
113
|
+
# user.only_mask_for :field
|
114
|
+
#
|
115
|
+
# @param [ Symbol ] column name of the column these fields are in
|
116
|
+
# @param [ Symbol ] field(s) name of the field(s) for the mask
|
117
|
+
def only_mask_for column_name, *fields
|
118
|
+
fields = bitfields if fields.empty?
|
119
|
+
fields.inject("0" * bitfield_size(column_name)) do |mask, field_name|
|
120
|
+
column = @@bitfields[column_name]
|
121
|
+
raise ArgumentError, "Unknown column for bitfield: #{column_name}" if column.nil?
|
122
|
+
raise ArugmentError, "Unknown field: #{field_name} for column #{column_name}" if column[field_name].nil?
|
123
|
+
range = column[field_name]
|
124
|
+
mask[range] = "1" * range.count
|
125
|
+
mask
|
126
|
+
end.to_i(2)
|
127
|
+
end
|
128
|
+
|
93
129
|
# Sets one or more bitfields to 0 within a column
|
94
130
|
#
|
95
131
|
# +reset_bitfield :column, :fields
|
@@ -120,6 +156,25 @@ module MultiBitField
|
|
120
156
|
end
|
121
157
|
alias :increment_bitfield :increment_bitfields
|
122
158
|
|
159
|
+
# Counts resources grouped by a bitfield
|
160
|
+
#
|
161
|
+
# +count_by :column, :fields
|
162
|
+
#
|
163
|
+
# @example
|
164
|
+
# user.count_by :counter, :monthly
|
165
|
+
#
|
166
|
+
# @param [ Symbol ] column name of the column these fields are in
|
167
|
+
# @param [ Symbol ] field(s) name of the field(s) to reset
|
168
|
+
def count_by column_name, field
|
169
|
+
inc = increment_mask_for column_name, field
|
170
|
+
only = only_mask_for column_name, field
|
171
|
+
# Create super-special-bitfield-grouping-query w/ AREL
|
172
|
+
sql = arel_table.
|
173
|
+
project("count(#{primary_key}) as #{field}_count, (#{column_name} & #{only})/#{inc} as #{field}").
|
174
|
+
group(field).to_sql
|
175
|
+
connection.send :select, sql, 'AREL' # Execute the query
|
176
|
+
end
|
177
|
+
|
123
178
|
private
|
124
179
|
|
125
180
|
def bitfield_setup! column, fields
|
@@ -128,7 +183,7 @@ module MultiBitField
|
|
128
183
|
else
|
129
184
|
@@bitfields = { column => fields }
|
130
185
|
end
|
131
|
-
end
|
186
|
+
end
|
132
187
|
end
|
133
188
|
|
134
189
|
module InstanceMethods
|
@@ -190,8 +245,7 @@ module MultiBitField
|
|
190
245
|
|
191
246
|
# replace with integer value
|
192
247
|
self[column] = temp_field.to_i(2)
|
193
|
-
end
|
194
|
-
|
248
|
+
end
|
195
249
|
end
|
196
250
|
|
197
251
|
def self.included(receiver)
|
Binary file
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -978,3 +978,753 @@
|
|
978
978
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
979
979
|
[1m[35mSQL (0.2ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 119]]
|
980
980
|
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
981
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
982
|
+
[1m[35mSQL (126.8ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00]]
|
983
|
+
[1m[36m (22.2ms)[0m [1mcommit transaction[0m
|
984
|
+
[1m[35m (0.1ms)[0m begin transaction
|
985
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "people" SET "birthday" = 240, "updated_at" = '2012-03-12 01:06:59.630366' WHERE "people"."id" = 120[0m
|
986
|
+
[1m[35m (1.3ms)[0m commit transaction
|
987
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 120]]
|
988
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
989
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
990
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 120]]
|
991
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
992
|
+
[1m[35m (0.1ms)[0m begin transaction
|
993
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 409], ["created_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00]]
|
994
|
+
[1m[35m (1.3ms)[0m commit transaction
|
995
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
996
|
+
[1m[35m (0.5ms)[0m UPDATE "people" SET "birthday" = 25, "updated_at" = '2012-03-12 01:06:59.650114' WHERE "people"."id" = 121
|
997
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
998
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 121]]
|
999
|
+
[1m[36mPerson Load (0.5ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1000
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1001
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 121]]
|
1002
|
+
[1m[35m (1.8ms)[0m commit transaction
|
1003
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1004
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00]]
|
1005
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
1006
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1007
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 92], ["created_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00]]
|
1008
|
+
[1m[35m (1.2ms)[0m commit transaction
|
1009
|
+
[1m[36mSQL (1.5ms)[0m [1mUPDATE "people" SET birthday = birthday + 32[0m
|
1010
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1011
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1012
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1013
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 122]]
|
1014
|
+
[1m[35m (1.2ms)[0m commit transaction
|
1015
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1016
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 123]]
|
1017
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1018
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1019
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 207], ["created_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00]]
|
1020
|
+
[1m[35m (2.0ms)[0m commit transaction
|
1021
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1022
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 92], ["created_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00]]
|
1023
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
1024
|
+
[1m[35mSQL (1.4ms)[0m UPDATE "people" SET birthday = birthday + 32
|
1025
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1026
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people"
|
1027
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1028
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 124]]
|
1029
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1030
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1031
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 125]]
|
1032
|
+
[1m[35m (1.2ms)[0m commit transaction
|
1033
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1034
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00]]
|
1035
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1036
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1037
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 92], ["created_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00]]
|
1038
|
+
[1m[35m (1.5ms)[0m commit transaction
|
1039
|
+
[1m[36mSQL (1.5ms)[0m [1mUPDATE "people" SET birthday = birthday & 31[0m
|
1040
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1041
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1042
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1043
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 126]]
|
1044
|
+
[1m[35m (1.2ms)[0m commit transaction
|
1045
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1046
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 127]]
|
1047
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
1048
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1049
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 207], ["created_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00]]
|
1050
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1051
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1052
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 92], ["created_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00]]
|
1053
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
1054
|
+
[1m[35mSQL (1.4ms)[0m UPDATE "people" SET birthday = birthday & 31
|
1055
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1056
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people"
|
1057
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1058
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 128]]
|
1059
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
1060
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1061
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 129]]
|
1062
|
+
[1m[35m (2.0ms)[0m commit transaction
|
1063
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1064
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 01:06:59 UTC +00:00]]
|
1065
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1066
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1067
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "people" SET "birthday" = 0, "updated_at" = '2012-03-12 01:06:59.728641' WHERE "people"."id" = 130[0m
|
1068
|
+
[1m[35m (1.2ms)[0m commit transaction
|
1069
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 130]]
|
1070
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people"
|
1071
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1072
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 130]]
|
1073
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
1074
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1075
|
+
[1m[35mSQL (34.9ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00]]
|
1076
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
1077
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1078
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "people" SET "birthday" = 240, "updated_at" = '2012-03-12 03:32:52.747143' WHERE "people"."id" = 131[0m
|
1079
|
+
[1m[35m (1.5ms)[0m commit transaction
|
1080
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 131]]
|
1081
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1082
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1083
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 131]]
|
1084
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
1085
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1086
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 409], ["created_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00]]
|
1087
|
+
[1m[35m (1.6ms)[0m commit transaction
|
1088
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1089
|
+
[1m[35m (0.4ms)[0m UPDATE "people" SET "birthday" = 25, "updated_at" = '2012-03-12 03:32:52.768064' WHERE "people"."id" = 132
|
1090
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
1091
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 132]]
|
1092
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1093
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1094
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 132]]
|
1095
|
+
[1m[35m (1.2ms)[0m commit transaction
|
1096
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1097
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00]]
|
1098
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
1099
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1100
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00]]
|
1101
|
+
[1m[35m (1.5ms)[0m commit transaction
|
1102
|
+
[1m[36mSQL (1.6ms)[0m [1mUPDATE "people" SET birthday = birthday + 32[0m
|
1103
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1104
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1105
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1106
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 133]]
|
1107
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1108
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1109
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 134]]
|
1110
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
1111
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1112
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00]]
|
1113
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1114
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1115
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00]]
|
1116
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
1117
|
+
[1m[35mSQL (1.5ms)[0m UPDATE "people" SET birthday = birthday + 32
|
1118
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1119
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people"
|
1120
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1121
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 135]]
|
1122
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1123
|
+
[1m[35m (0.3ms)[0m begin transaction
|
1124
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 136]]
|
1125
|
+
[1m[35m (2.1ms)[0m commit transaction
|
1126
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1127
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00]]
|
1128
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1129
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1130
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00]]
|
1131
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1132
|
+
[1m[36mSQL (5.8ms)[0m [1mUPDATE "people" SET birthday = birthday & 31[0m
|
1133
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1134
|
+
[1m[36mPerson Load (1.1ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1135
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1136
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 137]]
|
1137
|
+
[1m[35m (2.3ms)[0m commit transaction
|
1138
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1139
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 138]]
|
1140
|
+
[1m[36m (7.9ms)[0m [1mcommit transaction[0m
|
1141
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1142
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00]]
|
1143
|
+
[1m[35m (1.7ms)[0m commit transaction
|
1144
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1145
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00]]
|
1146
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
1147
|
+
[1m[35mSQL (1.9ms)[0m UPDATE "people" SET birthday = birthday & 31
|
1148
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1149
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1150
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1151
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 139]]
|
1152
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1153
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1154
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 140]]
|
1155
|
+
[1m[35m (1.5ms)[0m commit transaction
|
1156
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1157
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:32:52 UTC +00:00]]
|
1158
|
+
[1m[36m (2.2ms)[0m [1mcommit transaction[0m
|
1159
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1160
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "people" SET "birthday" = 0, "updated_at" = '2012-03-12 03:32:52.860179' WHERE "people"."id" = 141[0m
|
1161
|
+
[1m[35m (1.6ms)[0m commit transaction
|
1162
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 141]]
|
1163
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1164
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1165
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 141]]
|
1166
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
1167
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1168
|
+
[1m[35mSQL (16.9ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 205], ["created_at", Mon, 12 Mar 2012 03:39:37 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:37 UTC +00:00]]
|
1169
|
+
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
1170
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1171
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 156], ["created_at", Mon, 12 Mar 2012 03:39:37 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:37 UTC +00:00]]
|
1172
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1173
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1174
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 145], ["created_at", Mon, 12 Mar 2012 03:39:37 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:37 UTC +00:00]]
|
1175
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
1176
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people"
|
1177
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1178
|
+
[1m[35mSQL (0.6ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 142]]
|
1179
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
1180
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1181
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 143]]
|
1182
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1183
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1184
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 144]]
|
1185
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
1186
|
+
[1m[35m (0.2ms)[0m begin transaction
|
1187
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:39:37 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:37 UTC +00:00]]
|
1188
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1189
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1190
|
+
[1m[35m (0.5ms)[0m UPDATE "people" SET "birthday" = 240, "updated_at" = '2012-03-12 03:39:37.994244' WHERE "people"."id" = 145
|
1191
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
1192
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 145]]
|
1193
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1194
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1195
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 145]]
|
1196
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1197
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1198
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 409], ["created_at", Mon, 12 Mar 2012 03:39:38 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:38 UTC +00:00]]
|
1199
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1200
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1201
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "people" SET "birthday" = 25, "updated_at" = '2012-03-12 03:39:38.014599' WHERE "people"."id" = 146[0m
|
1202
|
+
[1m[35m (1.2ms)[0m commit transaction
|
1203
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 146]]
|
1204
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people"
|
1205
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1206
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 146]]
|
1207
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
1208
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1209
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:39:38 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:38 UTC +00:00]]
|
1210
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1211
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1212
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:39:38 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:38 UTC +00:00]]
|
1213
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
1214
|
+
[1m[35mSQL (1.6ms)[0m UPDATE "people" SET birthday = birthday + 32
|
1215
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1216
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people"
|
1217
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1218
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 147]]
|
1219
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
1220
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1221
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 148]]
|
1222
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1223
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1224
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:39:38 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:38 UTC +00:00]]
|
1225
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
1226
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1227
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:39:38 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:38 UTC +00:00]]
|
1228
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1229
|
+
[1m[36mSQL (1.6ms)[0m [1mUPDATE "people" SET birthday = birthday + 32[0m
|
1230
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1231
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1232
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1233
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 149]]
|
1234
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1235
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1236
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 150]]
|
1237
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
1238
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1239
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:39:38 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:38 UTC +00:00]]
|
1240
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1241
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1242
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:39:38 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:38 UTC +00:00]]
|
1243
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1244
|
+
[1m[35mSQL (1.4ms)[0m UPDATE "people" SET birthday = birthday & 31
|
1245
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1246
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1247
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1248
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 151]]
|
1249
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
1250
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1251
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 152]]
|
1252
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1253
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1254
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:39:38 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:38 UTC +00:00]]
|
1255
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1256
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1257
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:39:38 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:38 UTC +00:00]]
|
1258
|
+
[1m[35m (2.1ms)[0m commit transaction
|
1259
|
+
[1m[36mSQL (1.9ms)[0m [1mUPDATE "people" SET birthday = birthday & 31[0m
|
1260
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1261
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1262
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1263
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 153]]
|
1264
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1265
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1266
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 154]]
|
1267
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
1268
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1269
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:39:38 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:38 UTC +00:00]]
|
1270
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1271
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1272
|
+
[1m[35m (0.4ms)[0m UPDATE "people" SET "birthday" = 0, "updated_at" = '2012-03-12 03:39:38.103170' WHERE "people"."id" = 155
|
1273
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1274
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 155]]
|
1275
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1276
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1277
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 155]]
|
1278
|
+
[1m[35m (2.3ms)[0m commit transaction
|
1279
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1280
|
+
[1m[35mSQL (16.4ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 205], ["created_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00]]
|
1281
|
+
[1m[36m (2.9ms)[0m [1mcommit transaction[0m
|
1282
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1283
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 156], ["created_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00]]
|
1284
|
+
[1m[35m (1.6ms)[0m commit transaction
|
1285
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1286
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 145], ["created_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00]]
|
1287
|
+
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
|
1288
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people"
|
1289
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1290
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 156]]
|
1291
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
1292
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1293
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 157]]
|
1294
|
+
[1m[35m (1.7ms)[0m commit transaction
|
1295
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1296
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 158]]
|
1297
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
1298
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1299
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00]]
|
1300
|
+
[1m[35m (1.5ms)[0m commit transaction
|
1301
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1302
|
+
[1m[35m (0.4ms)[0m UPDATE "people" SET "birthday" = 240, "updated_at" = '2012-03-12 03:39:56.729863' WHERE "people"."id" = 159
|
1303
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
1304
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 159]]
|
1305
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1306
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1307
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 159]]
|
1308
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1309
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1310
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 409], ["created_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00]]
|
1311
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
1312
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1313
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "people" SET "birthday" = 25, "updated_at" = '2012-03-12 03:39:56.747868' WHERE "people"."id" = 160[0m
|
1314
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1315
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 160]]
|
1316
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1317
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1318
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 160]]
|
1319
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1320
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1321
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00]]
|
1322
|
+
[1m[35m (1.6ms)[0m commit transaction
|
1323
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1324
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00]]
|
1325
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
1326
|
+
[1m[35mSQL (1.5ms)[0m UPDATE "people" SET birthday = birthday + 32
|
1327
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1328
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people"
|
1329
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1330
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 161]]
|
1331
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
1332
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1333
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 162]]
|
1334
|
+
[1m[35m (1.6ms)[0m commit transaction
|
1335
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1336
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00]]
|
1337
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
1338
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1339
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00]]
|
1340
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1341
|
+
[1m[36mSQL (1.7ms)[0m [1mUPDATE "people" SET birthday = birthday + 32[0m
|
1342
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people"
|
1343
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1344
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1345
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 163]]
|
1346
|
+
[1m[35m (3.0ms)[0m commit transaction
|
1347
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1348
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 164]]
|
1349
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1350
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1351
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00]]
|
1352
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1353
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1354
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00]]
|
1355
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
1356
|
+
[1m[35mSQL (1.6ms)[0m UPDATE "people" SET birthday = birthday & 31
|
1357
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1358
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people"
|
1359
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1360
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 165]]
|
1361
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1362
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1363
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 166]]
|
1364
|
+
[1m[35m (1.2ms)[0m commit transaction
|
1365
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1366
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00]]
|
1367
|
+
[1m[36m (2.2ms)[0m [1mcommit transaction[0m
|
1368
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1369
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00]]
|
1370
|
+
[1m[35m (1.6ms)[0m commit transaction
|
1371
|
+
[1m[36mSQL (1.8ms)[0m [1mUPDATE "people" SET birthday = birthday & 31[0m
|
1372
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1373
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1374
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1375
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 167]]
|
1376
|
+
[1m[35m (1.6ms)[0m commit transaction
|
1377
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1378
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 168]]
|
1379
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
1380
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1381
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:39:56 UTC +00:00]]
|
1382
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1383
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1384
|
+
[1m[35m (0.3ms)[0m UPDATE "people" SET "birthday" = 0, "updated_at" = '2012-03-12 03:39:56.831268' WHERE "people"."id" = 169
|
1385
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1386
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 169]]
|
1387
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1388
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1389
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 169]]
|
1390
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1391
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1392
|
+
[1m[35mSQL (16.1ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 205], ["created_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00]]
|
1393
|
+
[1m[36m (2.9ms)[0m [1mcommit transaction[0m
|
1394
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1395
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 156], ["created_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00]]
|
1396
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1397
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1398
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 145], ["created_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00]]
|
1399
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
1400
|
+
[1m[35mAREL (0.4ms)[0m SELECT count(id) as month_count, (birthday & 480)/32 as month FROM "people" GROUP BY month
|
1401
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1402
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1403
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 170]]
|
1404
|
+
[1m[35m (1.2ms)[0m commit transaction
|
1405
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1406
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 171]]
|
1407
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
1408
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1409
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 172]]
|
1410
|
+
[1m[35m (2.8ms)[0m commit transaction
|
1411
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1412
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00]]
|
1413
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
1414
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1415
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "people" SET "birthday" = 240, "updated_at" = '2012-03-12 03:41:03.843386' WHERE "people"."id" = 173[0m
|
1416
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1417
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 173]]
|
1418
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1419
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1420
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 173]]
|
1421
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
1422
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1423
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 409], ["created_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00]]
|
1424
|
+
[1m[35m (7.0ms)[0m commit transaction
|
1425
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1426
|
+
[1m[35m (0.4ms)[0m UPDATE "people" SET "birthday" = 25, "updated_at" = '2012-03-12 03:41:03.869532' WHERE "people"."id" = 174
|
1427
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
1428
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 174]]
|
1429
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1430
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1431
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 174]]
|
1432
|
+
[1m[35m (1.7ms)[0m commit transaction
|
1433
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1434
|
+
[1m[35mSQL (4.0ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00]]
|
1435
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
1436
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1437
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00]]
|
1438
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1439
|
+
[1m[36mSQL (1.5ms)[0m [1mUPDATE "people" SET birthday = birthday + 32[0m
|
1440
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1441
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1442
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1443
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 175]]
|
1444
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1445
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1446
|
+
[1m[35mSQL (0.9ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 176]]
|
1447
|
+
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
1448
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1449
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00]]
|
1450
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1451
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1452
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00]]
|
1453
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1454
|
+
[1m[35mSQL (1.6ms)[0m UPDATE "people" SET birthday = birthday + 32
|
1455
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1456
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1457
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1458
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 177]]
|
1459
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1460
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1461
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 178]]
|
1462
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1463
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1464
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00]]
|
1465
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
1466
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1467
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00]]
|
1468
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1469
|
+
[1m[36mSQL (1.4ms)[0m [1mUPDATE "people" SET birthday = birthday & 31[0m
|
1470
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1471
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1472
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1473
|
+
[1m[36mSQL (0.7ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 179]]
|
1474
|
+
[1m[35m (2.4ms)[0m commit transaction
|
1475
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1476
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 180]]
|
1477
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
1478
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1479
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00]]
|
1480
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1481
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1482
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00]]
|
1483
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
1484
|
+
[1m[35mSQL (1.4ms)[0m UPDATE "people" SET birthday = birthday & 31
|
1485
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1486
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people"
|
1487
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1488
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 181]]
|
1489
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
1490
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1491
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 182]]
|
1492
|
+
[1m[35m (1.2ms)[0m commit transaction
|
1493
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1494
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:41:03 UTC +00:00]]
|
1495
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
1496
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1497
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "people" SET "birthday" = 0, "updated_at" = '2012-03-12 03:41:03.954735' WHERE "people"."id" = 183[0m
|
1498
|
+
[1m[35m (1.1ms)[0m commit transaction
|
1499
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 183]]
|
1500
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1501
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1502
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 183]]
|
1503
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
1504
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1505
|
+
[1m[35mSQL (17.7ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 205], ["created_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00]]
|
1506
|
+
[1m[36m (2.9ms)[0m [1mcommit transaction[0m
|
1507
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1508
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 156], ["created_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00]]
|
1509
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1510
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1511
|
+
[1m[35mSQL (1.9ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 145], ["created_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00]]
|
1512
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
1513
|
+
Could not log "sql.active_record" event. NoMethodError: undefined method `squeeze' for #<Arel::SelectManager:0x007fa25179a540>
|
1514
|
+
TypeError: can't convert Arel::SelectManager into String: #<Arel::SelectManager:0x007fa25179a540>
|
1515
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1516
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1517
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 184]]
|
1518
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1519
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1520
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 185]]
|
1521
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1522
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1523
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 186]]
|
1524
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1525
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1526
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00]]
|
1527
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1528
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1529
|
+
[1m[35m (0.4ms)[0m UPDATE "people" SET "birthday" = 240, "updated_at" = '2012-03-12 03:47:26.065920' WHERE "people"."id" = 187
|
1530
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
1531
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 187]]
|
1532
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1533
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1534
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 187]]
|
1535
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1536
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1537
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 409], ["created_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00]]
|
1538
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
1539
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1540
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "people" SET "birthday" = 25, "updated_at" = '2012-03-12 03:47:26.087673' WHERE "people"."id" = 188[0m
|
1541
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1542
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 188]]
|
1543
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1544
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1545
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 188]]
|
1546
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1547
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1548
|
+
[1m[36mSQL (2.5ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00]]
|
1549
|
+
[1m[35m (1.6ms)[0m commit transaction
|
1550
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1551
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00]]
|
1552
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1553
|
+
[1m[35mSQL (1.8ms)[0m UPDATE "people" SET birthday = birthday + 32
|
1554
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1555
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1556
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1557
|
+
[1m[35mSQL (0.7ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 189]]
|
1558
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
1559
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1560
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 190]]
|
1561
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1562
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1563
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00]]
|
1564
|
+
[1m[36m (2.5ms)[0m [1mcommit transaction[0m
|
1565
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1566
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00]]
|
1567
|
+
[1m[35m (2.9ms)[0m commit transaction
|
1568
|
+
[1m[36mSQL (2.1ms)[0m [1mUPDATE "people" SET birthday = birthday + 32[0m
|
1569
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1570
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1571
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1572
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 191]]
|
1573
|
+
[1m[35m (1.7ms)[0m commit transaction
|
1574
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1575
|
+
[1m[35mSQL (3.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 192]]
|
1576
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
1577
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1578
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00]]
|
1579
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1580
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1581
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00]]
|
1582
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1583
|
+
[1m[35mSQL (2.0ms)[0m UPDATE "people" SET birthday = birthday & 31
|
1584
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1585
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1586
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1587
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 193]]
|
1588
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
1589
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1590
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 194]]
|
1591
|
+
[1m[35m (1.5ms)[0m commit transaction
|
1592
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1593
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00]]
|
1594
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
1595
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1596
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00]]
|
1597
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1598
|
+
[1m[36mSQL (1.7ms)[0m [1mUPDATE "people" SET birthday = birthday & 31[0m
|
1599
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1600
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1601
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1602
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 195]]
|
1603
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1604
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1605
|
+
[1m[35mSQL (0.9ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 196]]
|
1606
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
1607
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1608
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:26 UTC +00:00]]
|
1609
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1610
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1611
|
+
[1m[35m (0.3ms)[0m UPDATE "people" SET "birthday" = 0, "updated_at" = '2012-03-12 03:47:26.175551' WHERE "people"."id" = 197
|
1612
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
1613
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 197]]
|
1614
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1615
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1616
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 197]]
|
1617
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1618
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1619
|
+
[1m[35mSQL (15.9ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 205], ["created_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00]]
|
1620
|
+
[1m[36m (2.9ms)[0m [1mcommit transaction[0m
|
1621
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1622
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 156], ["created_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00]]
|
1623
|
+
[1m[35m (1.5ms)[0m commit transaction
|
1624
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1625
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 145], ["created_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00]]
|
1626
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
1627
|
+
[1m[35mAREL (0.4ms)[0m SELECT count(id) as month_count, (birthday & 480)/32 as month FROM "people" GROUP BY month
|
1628
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1629
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1630
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 198]]
|
1631
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1632
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1633
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 199]]
|
1634
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
1635
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1636
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 200]]
|
1637
|
+
[1m[35m (1.6ms)[0m commit transaction
|
1638
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1639
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00]]
|
1640
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1641
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1642
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "people" SET "birthday" = 240, "updated_at" = '2012-03-12 03:47:50.623118' WHERE "people"."id" = 201[0m
|
1643
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1644
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 201]]
|
1645
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1646
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1647
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 201]]
|
1648
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1649
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1650
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 409], ["created_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00]]
|
1651
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1652
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1653
|
+
[1m[35m (0.4ms)[0m UPDATE "people" SET "birthday" = 25, "updated_at" = '2012-03-12 03:47:50.642139' WHERE "people"."id" = 202
|
1654
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
1655
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 202]]
|
1656
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1657
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1658
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 202]]
|
1659
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1660
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1661
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00]]
|
1662
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
1663
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1664
|
+
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00]]
|
1665
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1666
|
+
[1m[36mSQL (1.6ms)[0m [1mUPDATE "people" SET birthday = birthday + 32[0m
|
1667
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1668
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1669
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1670
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 203]]
|
1671
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1672
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1673
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 204]]
|
1674
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
1675
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1676
|
+
[1m[36mSQL (3.4ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00]]
|
1677
|
+
[1m[35m (1.6ms)[0m commit transaction
|
1678
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1679
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00]]
|
1680
|
+
[1m[36m (2.5ms)[0m [1mcommit transaction[0m
|
1681
|
+
[1m[35mSQL (1.8ms)[0m UPDATE "people" SET birthday = birthday + 32
|
1682
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1683
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people"
|
1684
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1685
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 205]]
|
1686
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
1687
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1688
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 206]]
|
1689
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1690
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1691
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00]]
|
1692
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
1693
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1694
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00]]
|
1695
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1696
|
+
[1m[36mSQL (1.8ms)[0m [1mUPDATE "people" SET birthday = birthday & 31[0m
|
1697
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people"
|
1698
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1699
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1700
|
+
[1m[36mSQL (0.9ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 207]]
|
1701
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1702
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1703
|
+
[1m[35mSQL (0.7ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 208]]
|
1704
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1705
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1706
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00]]
|
1707
|
+
[1m[35m (1.5ms)[0m commit transaction
|
1708
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1709
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 92], ["created_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00]]
|
1710
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
1711
|
+
[1m[35mSQL (1.6ms)[0m UPDATE "people" SET birthday = birthday & 31
|
1712
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
1713
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people"
|
1714
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1715
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 209]]
|
1716
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
1717
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1718
|
+
[1m[36mSQL (0.8ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 210]]
|
1719
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1720
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1721
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("birthday", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["birthday", 207], ["created_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00], ["name", nil], ["updated_at", Mon, 12 Mar 2012 03:47:50 UTC +00:00]]
|
1722
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
1723
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1724
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "people" SET "birthday" = 0, "updated_at" = '2012-03-12 03:47:50.726059' WHERE "people"."id" = 211[0m
|
1725
|
+
[1m[35m (1.8ms)[0m commit transaction
|
1726
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 211]]
|
1727
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people"
|
1728
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1729
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "people" WHERE "people"."id" = ? [["id", 211]]
|
1730
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
@@ -17,6 +17,10 @@ describe MultiBitField do
|
|
17
17
|
subject.bitfield_size(:birthday).must_equal 9
|
18
18
|
end
|
19
19
|
|
20
|
+
it "implements a bitfields method" do
|
21
|
+
subject.bitfields(:birthday).sort.must_equal [:day, :month]
|
22
|
+
end
|
23
|
+
|
20
24
|
it "implement reset_mask_for with single field" do
|
21
25
|
subject.reset_mask_for(:birthday, :month).must_equal 31
|
22
26
|
end
|
@@ -33,6 +37,13 @@ describe MultiBitField do
|
|
33
37
|
subject.increment_mask_for(:birthday, :month, :day).must_equal 33
|
34
38
|
end
|
35
39
|
|
40
|
+
it "implements only_mask_for with single field" do
|
41
|
+
subject.only_mask_for(:birthday, :month).must_equal 480
|
42
|
+
end
|
43
|
+
|
44
|
+
it "implements only_mask_for with multiple fields" do
|
45
|
+
subject.only_mask_for(:birthday, :month, :day).must_equal 511
|
46
|
+
end
|
36
47
|
end
|
37
48
|
|
38
49
|
describe "instance methods with nil value" do
|
@@ -184,4 +195,25 @@ describe MultiBitField do
|
|
184
195
|
Person.all.map(&:day).must_equal [15, 28]
|
185
196
|
end
|
186
197
|
end
|
198
|
+
|
199
|
+
describe "counting by bitfields" do
|
200
|
+
before do
|
201
|
+
Person.create :month => 6, :day => 13
|
202
|
+
Person.create :month => 4, :day => 28
|
203
|
+
Person.create :month => 4, :day => 17
|
204
|
+
end
|
205
|
+
|
206
|
+
after do
|
207
|
+
Person.destroy_all
|
208
|
+
end
|
209
|
+
|
210
|
+
subject do
|
211
|
+
Person.count_by :birthday, :month
|
212
|
+
end
|
213
|
+
|
214
|
+
it "counts the resources grouped by a bitfield" do
|
215
|
+
subject.must_include({"month_count" => 2, "month" => 4})
|
216
|
+
subject.must_include({"month_count" => 1, "month" => 6})
|
217
|
+
end
|
218
|
+
end
|
187
219
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multi_bit_field
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-03-
|
13
|
-
default_executable:
|
12
|
+
date: 2012-03-12 00:00:00.000000000Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: rails
|
17
|
-
requirement: &
|
16
|
+
requirement: &70173152077400 !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
18
|
requirements:
|
20
19
|
- - ~>
|
@@ -22,10 +21,10 @@ dependencies:
|
|
22
21
|
version: 3.2.1
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements: *
|
24
|
+
version_requirements: *70173152077400
|
26
25
|
- !ruby/object:Gem::Dependency
|
27
26
|
name: sqlite3
|
28
|
-
requirement: &
|
27
|
+
requirement: &70173152076980 !ruby/object:Gem::Requirement
|
29
28
|
none: false
|
30
29
|
requirements:
|
31
30
|
- - ! '>='
|
@@ -33,10 +32,10 @@ dependencies:
|
|
33
32
|
version: '0'
|
34
33
|
type: :development
|
35
34
|
prerelease: false
|
36
|
-
version_requirements: *
|
35
|
+
version_requirements: *70173152076980
|
37
36
|
- !ruby/object:Gem::Dependency
|
38
37
|
name: minitest
|
39
|
-
requirement: &
|
38
|
+
requirement: &70173152076520 !ruby/object:Gem::Requirement
|
40
39
|
none: false
|
41
40
|
requirements:
|
42
41
|
- - ! '>='
|
@@ -44,7 +43,7 @@ dependencies:
|
|
44
43
|
version: '0'
|
45
44
|
type: :development
|
46
45
|
prerelease: false
|
47
|
-
version_requirements: *
|
46
|
+
version_requirements: *70173152076520
|
48
47
|
description: ''
|
49
48
|
email:
|
50
49
|
- spiegela@gmail.com
|
@@ -98,7 +97,6 @@ files:
|
|
98
97
|
- test/minitest_helper.rb
|
99
98
|
- test/multi_bit_field/core_ext_test.rb
|
100
99
|
- test/multi_bit_field_test.rb
|
101
|
-
has_rdoc: true
|
102
100
|
homepage:
|
103
101
|
licenses: []
|
104
102
|
post_install_message:
|
@@ -113,7 +111,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
113
111
|
version: '0'
|
114
112
|
segments:
|
115
113
|
- 0
|
116
|
-
hash:
|
114
|
+
hash: 4583493989101315221
|
117
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
116
|
none: false
|
119
117
|
requirements:
|
@@ -122,10 +120,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
120
|
version: '0'
|
123
121
|
segments:
|
124
122
|
- 0
|
125
|
-
hash:
|
123
|
+
hash: 4583493989101315221
|
126
124
|
requirements: []
|
127
125
|
rubyforge_project:
|
128
|
-
rubygems_version: 1.
|
126
|
+
rubygems_version: 1.8.17
|
129
127
|
signing_key:
|
130
128
|
specification_version: 3
|
131
129
|
summary: Add support for multiple, and varied sized bitfields to Active Record.
|