active-record-query-count 0.1.8 → 0.1.9
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.
- checksums.yaml +4 -4
- data/assets/template_base_query_counter.html.erb +2 -0
- data/lib/active_record_query_count/printer/console.rb +3 -0
- data/lib/active_record_query_count/printer/html.rb +1 -1
- data/lib/active_record_query_count/recording/tracker.rb +3 -2
- data/lib/active_record_query_count/version.rb +1 -1
- data/scripts_for_testing/example_script_optimize.yaml +92 -0
- data/scripts_for_testing/example_script_unoptimize.yaml +62 -0
- data/scripts_for_testing/script_compare_html.rb +2 -0
- data/scripts_for_testing/script_printer_html.rb +2 -0
- data/scripts_for_testing/{scripts_console.rb.rb → scripts_console.rb} +2 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c046d3b131f42ddba7b95dfb268363e8125fb6db8409874391f5b52e49a6a05
|
4
|
+
data.tar.gz: 6d78754de10ab33e69fe52af796b5da3d7aaaf57dca845900ac5e020a4ed2830
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97d92a02a56f4a20c8a93cef3fb3484ccabd7c8c34b8773782b2e50734f02bb6c85d4872f82a70a4d628ed46554d7b27cd81827a3320af1723f02dfc597d834b
|
7
|
+
data.tar.gz: dcffef1c47d8aa2449785ac6a5eae8da89b1910792840815cf66d2f7ba9bd763e70bced85396919e987885ec10c9b50aa9ccf0e09db3b80c0914dbb4a9da427f
|
@@ -20,6 +20,7 @@
|
|
20
20
|
<th id="columnHeader">File Path</th>
|
21
21
|
<th>Method</th>
|
22
22
|
<th>Location Count</th>
|
23
|
+
<th>Cached Query</th>
|
23
24
|
<th>Total Duration(ms)</th>
|
24
25
|
</tr>
|
25
26
|
<% filter_data(data).each_with_index do |(table, info), index| %>
|
@@ -38,6 +39,7 @@
|
|
38
39
|
</td>
|
39
40
|
<td class="method-column"><%= method %></td>
|
40
41
|
<td><%= detail[:count] %></td>
|
42
|
+
<td><%= detail[:cached_query_count] %></td>
|
41
43
|
<td><%= detail[:duration] %></td>
|
42
44
|
</tr>
|
43
45
|
<% end %>
|
@@ -20,6 +20,9 @@ module ActiveRecordQueryCount
|
|
20
20
|
info[:location].each do |loc, details|
|
21
21
|
puts " - File location: #{loc}"
|
22
22
|
puts " Query count: #{details[:count].to_s.colorize(:blue)}"
|
23
|
+
unless (details[:cached_query_count]).zero?
|
24
|
+
puts " Cached: #{details[:cached_query_count].to_s.colorize(:blue)}"
|
25
|
+
end
|
23
26
|
puts " Total Duration(ms): #{details[:duration]}"
|
24
27
|
end
|
25
28
|
puts
|
@@ -46,7 +46,7 @@ module ActiveRecordQueryCount
|
|
46
46
|
chart_data[:labels] << table
|
47
47
|
chart_data[:data] << info[:count]
|
48
48
|
chart_data[:locations][table] = info[:location].map do |loc, detail|
|
49
|
-
{ location: loc, count: detail[:count], duration: detail[:duration] }
|
49
|
+
{ location: loc, count: detail[:count], duration: detail[:duration], cached_query_count: detail[:cached_query_count] }
|
50
50
|
end
|
51
51
|
end
|
52
52
|
chart_data
|
@@ -14,7 +14,7 @@ module ActiveRecordQueryCount
|
|
14
14
|
def reset_query_count
|
15
15
|
@active_record_query_tracker = Hash.new do |hash, key|
|
16
16
|
hash[key] = { count: 0, location: Hash.new do |loc_hash, loc_key|
|
17
|
-
loc_hash[loc_key] = { count: 0, sql: nil }
|
17
|
+
loc_hash[loc_key] = { count: 0, sql: nil, duration: 0, cached_query_count: 0 }
|
18
18
|
end }
|
19
19
|
end
|
20
20
|
end
|
@@ -25,14 +25,15 @@ module ActiveRecordQueryCount
|
|
25
25
|
@subscription = ActiveSupport::Notifications.subscribe('sql.active_record') do |_a, start, finish, _d, payload|
|
26
26
|
caller_from_sql = caller
|
27
27
|
sql = payload[:sql]
|
28
|
+
cached = payload[:cached] ? 1 : 0
|
28
29
|
match = sql.match(REGEX_TABLE_SQL)
|
29
30
|
if match.present? && match[:table]
|
30
31
|
actual_location = Rails.backtrace_cleaner.clean(caller_from_sql).first
|
31
32
|
active_record_query_tracker[match[:table]][:count] += 1
|
32
|
-
active_record_query_tracker[match[:table]][:location][actual_location][:duration] ||= 0
|
33
33
|
active_record_query_tracker[match[:table]][:location][actual_location][:duration] += (finish - start) * 1000
|
34
34
|
active_record_query_tracker[match[:table]][:location][actual_location][:count] += 1
|
35
35
|
active_record_query_tracker[match[:table]][:location][actual_location][:sql] = sql
|
36
|
+
active_record_query_tracker[match[:table]][:location][actual_location][:cached_query_count] += cached
|
36
37
|
end
|
37
38
|
end
|
38
39
|
end
|
@@ -5,213 +5,305 @@ east_caronberg:
|
|
5
5
|
app/models/east_caronberg.rb:47:in `building_number':
|
6
6
|
:count: 1
|
7
7
|
:sql: SELECT * FROM east_caronberg
|
8
|
+
:duration: 1
|
9
|
+
:cached_query_count: 1
|
8
10
|
jerdeburgh:
|
9
11
|
:count: 1
|
10
12
|
:location:
|
11
13
|
app/models/jerdeburgh.rb:13:in `longitude':
|
12
14
|
:count: 1
|
13
15
|
:sql: SELECT * FROM jerdeburgh
|
16
|
+
:duration: 1
|
17
|
+
:cached_query_count: 1
|
14
18
|
new_cyrus:
|
15
19
|
:count: 1
|
16
20
|
:location:
|
17
21
|
app/models/new_cyrus.rb:41:in `state':
|
18
22
|
:count: 1
|
19
23
|
:sql: SELECT * FROM new_cyrus
|
24
|
+
:duration: 1
|
25
|
+
:cached_query_count: 1
|
20
26
|
lake_tyson:
|
21
27
|
:count: 3
|
22
28
|
:location:
|
23
29
|
app/models/lake_tyson.rb:99:in `state':
|
24
30
|
:count: 2
|
25
31
|
:sql: SELECT * FROM lake_tyson
|
32
|
+
:duration: 1
|
33
|
+
:cached_query_count: 1
|
26
34
|
app/models/lake_tyson.rb:66:in `zip_code':
|
27
35
|
:count: 1
|
28
36
|
:sql: SELECT * FROM lake_tyson
|
37
|
+
:duration: 1
|
38
|
+
:cached_query_count: 1
|
29
39
|
new_damionview:
|
30
40
|
:count: 5
|
31
41
|
:location:
|
32
42
|
app/models/new_damionview.rb:91:in `zip_code':
|
33
43
|
:count: 1
|
34
44
|
:sql: SELECT * FROM new_damionview
|
45
|
+
:duration: 1
|
46
|
+
:cached_query_count: 1
|
35
47
|
app/models/new_damionview.rb:79:in `street_name':
|
36
48
|
:count: 1
|
37
49
|
:sql: SELECT * FROM new_damionview
|
50
|
+
:duration: 1
|
51
|
+
:cached_query_count: 1
|
38
52
|
app/models/new_damionview.rb:74:in `street_name':
|
39
53
|
:count: 3
|
40
54
|
:sql: SELECT * FROM new_damionview
|
55
|
+
:duration: 1
|
56
|
+
:cached_query_count: 1
|
41
57
|
jermaineshire:
|
42
58
|
:count: 18
|
43
59
|
:location:
|
44
60
|
app/models/jermaineshire.rb:12:in `city':
|
45
61
|
:count: 1
|
46
62
|
:sql: SELECT * FROM jermaineshire
|
63
|
+
:duration: 1
|
64
|
+
:cached_query_count: 1
|
47
65
|
app/models/jermaineshire.rb:99:in `street_name':
|
48
66
|
:count: 17
|
49
67
|
:sql: SELECT * FROM jermaineshire
|
68
|
+
:duration: 1
|
69
|
+
:cached_query_count: 1
|
50
70
|
kilbacktown:
|
51
71
|
:count: 1
|
52
72
|
:location:
|
53
73
|
app/models/kilbacktown.rb:45:in `latitude':
|
54
74
|
:count: 1
|
55
75
|
:sql: SELECT * FROM kilbacktown
|
76
|
+
:duration: 1
|
77
|
+
:cached_query_count: 1
|
56
78
|
south_brock:
|
57
79
|
:count: 3
|
58
80
|
:location:
|
59
81
|
app/models/south_brock.rb:62:in `building_number':
|
60
82
|
:count: 1
|
61
83
|
:sql: SELECT * FROM south_brock
|
84
|
+
:duration: 1
|
85
|
+
:cached_query_count: 1
|
62
86
|
app/models/south_brock.rb:63:in `city':
|
63
87
|
:count: 2
|
64
88
|
:sql: SELECT * FROM south_brock
|
89
|
+
:duration: 1
|
90
|
+
:cached_query_count: 1
|
65
91
|
lake_arlie:
|
66
92
|
:count: 6
|
67
93
|
:location:
|
68
94
|
app/models/lake_arlie.rb:87:in `longitude':
|
69
95
|
:count: 1
|
70
96
|
:sql: SELECT * FROM lake_arlie
|
97
|
+
:duration: 1
|
98
|
+
:cached_query_count: 1
|
71
99
|
app/models/lake_arlie.rb:74:in `city':
|
72
100
|
:count: 1
|
73
101
|
:sql: SELECT * FROM lake_arlie
|
102
|
+
:duration: 1
|
103
|
+
:cached_query_count: 1
|
74
104
|
app/models/lake_arlie.rb:54:in `street_name':
|
75
105
|
:count: 2
|
76
106
|
:sql: SELECT * FROM lake_arlie
|
107
|
+
:duration: 1
|
108
|
+
:cached_query_count: 1
|
77
109
|
app/models/lake_arlie.rb:43:in `latitude':
|
78
110
|
:count: 2
|
79
111
|
:sql: SELECT * FROM lake_arlie
|
112
|
+
:duration: 1
|
113
|
+
:cached_query_count: 1
|
80
114
|
south_mauricio:
|
81
115
|
:count: 12
|
82
116
|
:location:
|
83
117
|
app/models/south_mauricio.rb:83:in `city':
|
84
118
|
:count: 4
|
85
119
|
:sql: SELECT * FROM south_mauricio
|
120
|
+
:duration: 1
|
121
|
+
:cached_query_count: 1
|
86
122
|
app/models/south_mauricio.rb:59:in `state':
|
87
123
|
:count: 4
|
88
124
|
:sql: SELECT * FROM south_mauricio
|
125
|
+
:duration: 1
|
126
|
+
:cached_query_count: 1
|
89
127
|
app/models/south_mauricio.rb:60:in `longitude':
|
90
128
|
:count: 4
|
91
129
|
:sql: SELECT * FROM south_mauricio
|
130
|
+
:duration: 1
|
131
|
+
:cached_query_count: 1
|
92
132
|
east_curtfort:
|
93
133
|
:count: 8
|
94
134
|
:location:
|
95
135
|
app/models/east_curtfort.rb:37:in `longitude':
|
96
136
|
:count: 1
|
97
137
|
:sql: SELECT * FROM east_curtfort
|
138
|
+
:duration: 1
|
139
|
+
:cached_query_count: 1
|
98
140
|
app/models/east_curtfort.rb:97:in `city':
|
99
141
|
:count: 4
|
100
142
|
:sql: SELECT * FROM east_curtfort
|
143
|
+
:duration: 1
|
144
|
+
:cached_query_count: 1
|
101
145
|
app/models/east_curtfort.rb:56:in `city':
|
102
146
|
:count: 3
|
103
147
|
:sql: SELECT * FROM east_curtfort
|
148
|
+
:duration: 1
|
149
|
+
:cached_query_count: 1
|
104
150
|
hudsonborough:
|
105
151
|
:count: 60
|
106
152
|
:location:
|
107
153
|
app/models/hudsonborough.rb:65:in `latitude':
|
108
154
|
:count: 4
|
109
155
|
:sql: SELECT * FROM hudsonborough
|
156
|
+
:duration: 1
|
157
|
+
:cached_query_count: 1
|
110
158
|
app/models/hudsonborough.rb:19:in `longitude':
|
111
159
|
:count: 4
|
112
160
|
:sql: SELECT * FROM hudsonborough
|
161
|
+
:duration: 1
|
162
|
+
:cached_query_count: 1
|
113
163
|
app/models/hudsonborough.rb:26:in `latitude':
|
114
164
|
:count: 26
|
115
165
|
:sql: SELECT * FROM hudsonborough
|
166
|
+
:duration: 1
|
167
|
+
:cached_query_count: 1
|
116
168
|
app/models/hudsonborough.rb:39:in `zip_code':
|
117
169
|
:count: 26
|
118
170
|
:sql: SELECT * FROM hudsonborough
|
171
|
+
:duration: 1
|
172
|
+
:cached_query_count: 1
|
119
173
|
port_richmouth:
|
120
174
|
:count: 4
|
121
175
|
:location:
|
122
176
|
app/models/port_richmouth.rb:86:in `street_name':
|
123
177
|
:count: 4
|
124
178
|
:sql: SELECT * FROM port_richmouth
|
179
|
+
:duration: 1
|
180
|
+
:cached_query_count: 1
|
125
181
|
north_felica:
|
126
182
|
:count: 4
|
127
183
|
:location:
|
128
184
|
app/models/north_felica.rb:54:in `building_number':
|
129
185
|
:count: 4
|
130
186
|
:sql: SELECT * FROM north_felica
|
187
|
+
:duration: 1
|
188
|
+
:cached_query_count: 1
|
131
189
|
east_arnoldfurt:
|
132
190
|
:count: 8
|
133
191
|
:location:
|
134
192
|
app/models/east_arnoldfurt.rb:13:in `building_number':
|
135
193
|
:count: 4
|
136
194
|
:sql: SELECT * FROM east_arnoldfurt
|
195
|
+
:duration: 1
|
196
|
+
:cached_query_count: 1
|
137
197
|
app/models/east_arnoldfurt.rb:87:in `latitude':
|
138
198
|
:count: 4
|
139
199
|
:sql: SELECT * FROM east_arnoldfurt
|
200
|
+
:duration: 1
|
201
|
+
:cached_query_count: 1
|
140
202
|
new_nga:
|
141
203
|
:count: 13
|
142
204
|
:location:
|
143
205
|
app/models/new_nga.rb:74:in `zip_code':
|
144
206
|
:count: 4
|
145
207
|
:sql: SELECT * FROM new_nga
|
208
|
+
:duration: 1
|
209
|
+
:cached_query_count: 1
|
146
210
|
app/models/new_nga.rb:18:in `country':
|
147
211
|
:count: 4
|
148
212
|
:sql: SELECT * FROM new_nga
|
213
|
+
:duration: 1
|
214
|
+
:cached_query_count: 1
|
149
215
|
app/models/new_nga.rb:58:in `street_name':
|
150
216
|
:count: 1
|
151
217
|
:sql: SELECT * FROM new_nga
|
218
|
+
:duration: 1
|
219
|
+
:cached_query_count: 1
|
152
220
|
app/models/new_nga.rb:43:in `building_number':
|
153
221
|
:count: 1
|
154
222
|
:sql: SELECT * FROM new_nga
|
223
|
+
:duration: 1
|
224
|
+
:cached_query_count: 1
|
155
225
|
app/models/new_nga.rb:85:in `longitude':
|
156
226
|
:count: 3
|
157
227
|
:sql: SELECT * FROM new_nga
|
228
|
+
:duration: 1
|
229
|
+
:cached_query_count: 1
|
158
230
|
port_allenastad:
|
159
231
|
:count: 4
|
160
232
|
:location:
|
161
233
|
app/models/port_allenastad.rb:95:in `longitude':
|
162
234
|
:count: 4
|
163
235
|
:sql: SELECT * FROM port_allenastad
|
236
|
+
:duration: 1
|
237
|
+
:cached_query_count: 1
|
164
238
|
north_tad:
|
165
239
|
:count: 4
|
166
240
|
:location:
|
167
241
|
app/models/north_tad.rb:64:in `street_name':
|
168
242
|
:count: 4
|
169
243
|
:sql: SELECT * FROM north_tad
|
244
|
+
:duration: 1
|
245
|
+
:cached_query_count: 1
|
170
246
|
vanmouth:
|
171
247
|
:count: 4
|
172
248
|
:location:
|
173
249
|
app/models/vanmouth.rb:47:in `longitude':
|
174
250
|
:count: 4
|
175
251
|
:sql: SELECT * FROM vanmouth
|
252
|
+
:duration: 1
|
253
|
+
:cached_query_count: 1
|
176
254
|
windlerport:
|
177
255
|
:count: 4
|
178
256
|
:location:
|
179
257
|
app/models/windlerport.rb:70:in `state':
|
180
258
|
:count: 4
|
181
259
|
:sql: SELECT * FROM windlerport
|
260
|
+
:duration: 1
|
261
|
+
:cached_query_count: 1
|
182
262
|
framiport:
|
183
263
|
:count: 1
|
184
264
|
:location:
|
185
265
|
app/models/framiport.rb:97:in `zip_code':
|
186
266
|
:count: 1
|
187
267
|
:sql: SELECT * FROM framiport
|
268
|
+
:duration: 1
|
269
|
+
:cached_query_count: 1
|
188
270
|
wittingborough:
|
189
271
|
:count: 1
|
190
272
|
:location:
|
191
273
|
app/models/wittingborough.rb:47:in `latitude':
|
192
274
|
:count: 1
|
193
275
|
:sql: SELECT * FROM wittingborough
|
276
|
+
:duration: 1
|
277
|
+
:cached_query_count: 1
|
194
278
|
burtchester:
|
195
279
|
:count: 1
|
196
280
|
:location:
|
197
281
|
app/models/burtchester.rb:97:in `latitude':
|
198
282
|
:count: 1
|
199
283
|
:sql: SELECT * FROM burtchester
|
284
|
+
:duration: 1
|
285
|
+
:cached_query_count: 1
|
200
286
|
renatotown:
|
201
287
|
:count: 1
|
202
288
|
:location:
|
203
289
|
app/models/renatotown.rb:57:in `state':
|
204
290
|
:count: 1
|
205
291
|
:sql: SELECT * FROM renatotown
|
292
|
+
:duration: 1
|
293
|
+
:cached_query_count: 1
|
206
294
|
bogisichbury:
|
207
295
|
:count: 1
|
208
296
|
:location:
|
209
297
|
app/models/bogisichbury.rb:94:in `longitude':
|
210
298
|
:count: 1
|
211
299
|
:sql: SELECT * FROM bogisichbury
|
300
|
+
:duration: 1
|
301
|
+
:cached_query_count: 1
|
212
302
|
east_clemmiebury:
|
213
303
|
:count: 1
|
214
304
|
:location:
|
215
305
|
app/models/east_clemmiebury.rb:71:in `street_name':
|
216
306
|
:count: 1
|
217
307
|
:sql: SELECT * FROM east_clemmiebury
|
308
|
+
:duration: 1
|
309
|
+
:cached_query_count: 1
|
@@ -5,138 +5,200 @@ east_caronberg:
|
|
5
5
|
app/models/east_caronberg.rb:82:in `zip_code':
|
6
6
|
:count: 1
|
7
7
|
:sql: SELECT * FROM east_caronberg
|
8
|
+
:duration: 1
|
9
|
+
:cached_query_count: 1
|
8
10
|
jerdeburgh:
|
9
11
|
:count: 1
|
10
12
|
:location:
|
11
13
|
app/models/jerdeburgh.rb:12:in `latitude':
|
12
14
|
:count: 1
|
13
15
|
:sql: SELECT * FROM jerdeburgh
|
16
|
+
:duration: 1
|
17
|
+
:cached_query_count: 1
|
14
18
|
south_brock:
|
15
19
|
:count: 2
|
16
20
|
:location:
|
17
21
|
app/models/south_brock.rb:51:in `latitude':
|
18
22
|
:count: 2
|
19
23
|
:sql: SELECT * FROM south_brock
|
24
|
+
:duration: 1
|
25
|
+
:cached_query_count: 1
|
20
26
|
lake_arlie:
|
21
27
|
:count: 5
|
22
28
|
:location:
|
23
29
|
app/models/lake_arlie.rb:31:in `city':
|
24
30
|
:count: 1
|
25
31
|
:sql: SELECT * FROM lake_arlie
|
32
|
+
:duration: 1
|
33
|
+
:cached_query_count: 1
|
26
34
|
app/models/lake_arlie.rb:90:in `latitude':
|
27
35
|
:count: 2
|
28
36
|
:sql: SELECT * FROM lake_arlie
|
37
|
+
:duration: 1
|
38
|
+
:cached_query_count: 1
|
29
39
|
app/models/lake_arlie.rb:60:in `street_name':
|
30
40
|
:count: 2
|
31
41
|
:sql: SELECT * FROM lake_arlie
|
42
|
+
:duration: 1
|
43
|
+
:cached_query_count: 1
|
32
44
|
south_mauricio:
|
33
45
|
:count: 2096
|
34
46
|
:location:
|
35
47
|
app/models/south_mauricio.rb:32:in `city':
|
36
48
|
:count: 4
|
37
49
|
:sql: SELECT * FROM south_mauricio
|
50
|
+
:duration: 1
|
51
|
+
:cached_query_count: 1
|
38
52
|
app/models/south_mauricio.rb:46:in `latitude':
|
39
53
|
:count: 4
|
40
54
|
:sql: SELECT * FROM south_mauricio
|
55
|
+
:duration: 1
|
56
|
+
:cached_query_count: 1
|
41
57
|
app/models/south_mauricio.rb:86:in `street_name':
|
42
58
|
:count: 1082
|
43
59
|
:sql: SELECT * FROM south_mauricio
|
60
|
+
:duration: 1
|
61
|
+
:cached_query_count: 1
|
44
62
|
app/models/south_mauricio.rb:63:in `state':
|
45
63
|
:count: 1006
|
46
64
|
:sql: SELECT * FROM south_mauricio
|
65
|
+
:duration: 1
|
66
|
+
:cached_query_count: 1
|
47
67
|
east_curtfort:
|
48
68
|
:count: 1086
|
49
69
|
:location:
|
50
70
|
app/models/east_curtfort.rb:62:in `street_name':
|
51
71
|
:count: 1
|
52
72
|
:sql: SELECT * FROM east_curtfort
|
73
|
+
:duration: 1
|
74
|
+
:cached_query_count: 1
|
53
75
|
app/models/east_curtfort.rb:87:in `city':
|
54
76
|
:count: 1082
|
55
77
|
:sql: SELECT * FROM east_curtfort
|
78
|
+
:duration: 1
|
79
|
+
:cached_query_count: 1
|
56
80
|
app/models/east_curtfort.rb:29:in `zip_code':
|
57
81
|
:count: 3
|
58
82
|
:sql: SELECT * FROM east_curtfort
|
83
|
+
:duration: 1
|
84
|
+
:cached_query_count: 1
|
59
85
|
new_damionview:
|
60
86
|
:count: 4
|
61
87
|
:location:
|
62
88
|
app/models/new_damionview.rb:59:in `longitude':
|
63
89
|
:count: 1
|
64
90
|
:sql: SELECT * FROM new_damionview
|
91
|
+
:duration: 1
|
92
|
+
:cached_query_count: 1
|
65
93
|
app/models/new_damionview.rb:22:in `city':
|
66
94
|
:count: 3
|
67
95
|
:sql: SELECT * FROM new_damionview
|
96
|
+
:duration: 1
|
97
|
+
:cached_query_count: 1
|
68
98
|
hudsonborough:
|
69
99
|
:count: 1424
|
70
100
|
:location:
|
71
101
|
app/models/hudsonborough.rb:67:in `country':
|
72
102
|
:count: 1084
|
73
103
|
:sql: SELECT * FROM hudsonborough
|
104
|
+
:duration: 1
|
105
|
+
:cached_query_count: 1
|
74
106
|
app/models/hudsonborough.rb:69:in `zip_code':
|
75
107
|
:count: 288
|
76
108
|
:sql: SELECT * FROM hudsonborough
|
109
|
+
:duration: 1
|
110
|
+
:cached_query_count: 1
|
77
111
|
app/models/hudsonborough.rb:53:in `zip_code':
|
78
112
|
:count: 26
|
79
113
|
:sql: SELECT * FROM hudsonborough
|
114
|
+
:duration: 1
|
115
|
+
:cached_query_count: 1
|
80
116
|
app/models/hudsonborough.rb:23:in `city':
|
81
117
|
:count: 26
|
82
118
|
:sql: SELECT * FROM hudsonborough
|
119
|
+
:duration: 1
|
120
|
+
:cached_query_count: 1
|
83
121
|
port_richmouth:
|
84
122
|
:count: 806
|
85
123
|
:location:
|
86
124
|
app/models/port_richmouth.rb:49:in `latitude':
|
87
125
|
:count: 806
|
88
126
|
:sql: SELECT * FROM port_richmouth
|
127
|
+
:duration: 1
|
128
|
+
:cached_query_count: 1
|
89
129
|
north_felica:
|
90
130
|
:count: 1084
|
91
131
|
:location:
|
92
132
|
app/models/north_felica.rb:46:in `zip_code':
|
93
133
|
:count: 1084
|
94
134
|
:sql: SELECT * FROM north_felica
|
135
|
+
:duration: 1
|
136
|
+
:cached_query_count: 1
|
95
137
|
east_arnoldfurt:
|
96
138
|
:count: 3173
|
97
139
|
:location:
|
98
140
|
app/models/east_arnoldfurt.rb:47:in `building_number':
|
99
141
|
:count: 4
|
100
142
|
:sql: SELECT * FROM east_arnoldfurt
|
143
|
+
:duration: 1
|
144
|
+
:cached_query_count: 1
|
101
145
|
app/models/east_arnoldfurt.rb:53:in `latitude':
|
102
146
|
:count: 3169
|
103
147
|
:sql: SELECT * FROM east_arnoldfurt
|
148
|
+
:duration: 1
|
149
|
+
:cached_query_count: 1
|
104
150
|
new_nga:
|
105
151
|
:count: 6204
|
106
152
|
:location:
|
107
153
|
app/models/new_nga.rb:20:in `zip_code':
|
108
154
|
:count: 4
|
109
155
|
:sql: SELECT * FROM new_nga
|
156
|
+
:duration: 1
|
157
|
+
:cached_query_count: 1
|
110
158
|
app/models/new_nga.rb:84:in `latitude':
|
111
159
|
:count: 3169
|
112
160
|
:sql: SELECT * FROM new_nga
|
161
|
+
:duration: 1
|
162
|
+
:cached_query_count: 1
|
113
163
|
app/models/new_nga.rb:81:in `country':
|
114
164
|
:count: 3018
|
115
165
|
:sql: SELECT * FROM new_nga
|
166
|
+
:duration: 1
|
167
|
+
:cached_query_count: 1
|
116
168
|
app/models/new_nga.rb:62:in `building_number':
|
117
169
|
:count: 13
|
118
170
|
:sql: SELECT * FROM new_nga
|
171
|
+
:duration: 1
|
172
|
+
:cached_query_count: 1
|
119
173
|
port_allenastad:
|
120
174
|
:count: 1082
|
121
175
|
:location:
|
122
176
|
app/models/port_allenastad.rb:57:in `street_name':
|
123
177
|
:count: 1082
|
124
178
|
:sql: SELECT * FROM port_allenastad
|
179
|
+
:duration: 1
|
180
|
+
:cached_query_count: 1
|
125
181
|
north_tad:
|
126
182
|
:count: 2278
|
127
183
|
:location:
|
128
184
|
app/models/north_tad.rb:48:in `state':
|
129
185
|
:count: 2278
|
130
186
|
:sql: SELECT * FROM north_tad
|
187
|
+
:duration: 1
|
188
|
+
:cached_query_count: 1
|
131
189
|
vanmouth:
|
132
190
|
:count: 1082
|
133
191
|
:location:
|
134
192
|
app/models/vanmouth.rb:34:in `country':
|
135
193
|
:count: 1082
|
136
194
|
:sql: SELECT * FROM vanmouth
|
195
|
+
:duration: 1
|
196
|
+
:cached_query_count: 1
|
137
197
|
windlerport:
|
138
198
|
:count: 4
|
139
199
|
:location:
|
140
200
|
app/models/windlerport.rb:98:in `city':
|
141
201
|
:count: 4
|
142
202
|
:sql: SELECT * FROM windlerport
|
203
|
+
:duration: 1
|
204
|
+
:cached_query_count: 1
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active-record-query-count
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jose Lara
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-02-
|
11
|
+
date: 2025-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -270,7 +270,7 @@ files:
|
|
270
270
|
- scripts_for_testing/example_script_unoptimize.yaml
|
271
271
|
- scripts_for_testing/script_compare_html.rb
|
272
272
|
- scripts_for_testing/script_printer_html.rb
|
273
|
-
- scripts_for_testing/scripts_console.rb
|
273
|
+
- scripts_for_testing/scripts_console.rb
|
274
274
|
homepage: https://github.com/jvlara/active-record-query-count
|
275
275
|
licenses:
|
276
276
|
- MIT
|
@@ -293,7 +293,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
293
293
|
- !ruby/object:Gem::Version
|
294
294
|
version: '0'
|
295
295
|
requirements: []
|
296
|
-
rubygems_version: 3.
|
296
|
+
rubygems_version: 3.4.10
|
297
297
|
signing_key:
|
298
298
|
specification_version: 4
|
299
299
|
summary: Display an overview of the quantity of queries being made and their origins
|