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>
Thu, 5 Nov 2020 20:16:35 +0000 (15:16 -0500)
commit58b81c0ba0b949a18d4c0fdf772a414352ce4861
tree4aab09d61a0ac7d6f4a79a9425887baca1cfde89
parent8506a887dd99eea1f8e9c5c0f127db5d2b3197bb
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