from my limited testing
```ruby
fact_names = Hash[FactName.reorder('').group(:name).select('DISTINCT(name), id').map{|f| [f.name, f.id]}]
```
seems faster