lib/index_shotgun/analyzer.rb in index_shotgun-0.1.0.beta3 vs lib/index_shotgun/analyzer.rb in index_shotgun-0.1.0
- old
+ new
@@ -55,13 +55,12 @@
indexes.permutation(2).each_with_object([]) do |(source_index, target_index), response|
next unless source_index.columns.start_with?(target_index.columns)
if target_index.unique
- last_column = source_index.columns.last
response << {
index: source_index,
- result: "#{source_index.name} has unnecessary column #{last_column} (#{target_index.name} is unique index!)",
+ result: "#{source_index.name} has column(s) on the right side of unique index (#{target_index.name}). You can drop if low cardinality",
}
else
response << {
index: target_index,
result: "#{target_index.name} is a left-prefix of #{source_index.name}",