|
@ -20,12 +20,12 @@ module Semantic |
|
|
name = "#{category} #{model}" |
|
|
name = "#{category} #{model}" |
|
|
when 'Load' |
|
|
when 'Load' |
|
|
if event.payload[:cached] |
|
|
if event.payload[:cached] |
|
|
name = "Cache #{model}" |
|
|
|
|
|
|
|
|
name = "Cache Read #{model}" |
|
|
no_stats = true |
|
|
no_stats = true |
|
|
else |
|
|
else |
|
|
statement_taint = TEXT_BLUE |
|
|
statement_taint = TEXT_BLUE |
|
|
row_count = event.payload[:row_count] |
|
|
row_count = event.payload[:row_count] |
|
|
name = "#{category} #{row_count} #{model.pluralize(row_count)}" |
|
|
|
|
|
|
|
|
name = "Read #{row_count} #{model.pluralize(row_count)}" |
|
|
end |
|
|
end |
|
|
when 'Update', 'Create', 'Destroy' |
|
|
when 'Update', 'Create', 'Destroy' |
|
|
statement_taint = TEXT__PINK |
|
|
statement_taint = TEXT__PINK |
|
|