3 responses to “some postgresql advice for rails programmers”

  1. Frank

    Create a single index on “views” and “score”, and sorting by both criteria will be much faster.

    add_index(:pictures, [:views, :score], :unique => false)

  2. Fernando Hamasaki de Amoirm

    Thanks for explanation.

Leave a Reply to Frank Click here to cancel reply.