brendon / ranked-model

An acts_as_sortable/acts_as_list replacement built for Rails 4+

Home Page:https://github.com/mixonic/ranked-model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

suggesting add index on row_order

jhjwind opened this issue · comments

we use rank model on our markets table. We didn't have an index on the row_order and ended up with lots of seq scan on the row_roder column. I suggest adding index on the row_order column. It would be great if you can put it in the readme.

 SELECT "markets".* FROM "markets"   ORDER BY "markets"."row_order" ASC                                                                                                                                     

Happy to accept a PR about this for the Readme if it hasn't already been done in the meantime. Closing for now.