17040: Swap the order of where clauses in the readable_by query
authorPeter Amstutz <peter.amstutz@curii.com>
Fri, 23 Oct 2020 00:44:15 +0000 (20:44 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Fri, 23 Oct 2020 00:44:15 +0000 (20:44 -0400)
commit90b4ef014fd97787f26735083bad4c2ac1a174c5
tree3406f4c021f63ed7111670290685a6187305d5f0
parent9429158c8ecf253a700c7eb4f87ad142a8e1522c
17040: Swap the order of where clauses in the readable_by query

This seems work around a query planner bug in Postgres 9.5.

A hotfix provided to a customer resulted in dramatically better
performance.

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
services/api/app/models/arvados_model.rb