On Fri, Dec 9, 2016 at 9:56 AM, Andreas Joseph Krogh <andreas@xxxxxxxxxx> wrote:
You should be having this index:create index updates_driver_time_idx ON updates(driver_id, "time" DESC);
I'm not sure I understand the intent of this fix - are you saying that btree indexes only work in a certain direction?
I created this index and the query plans did not change.
--