Remove unnecessary outer join in PG enums reflection query

Issue #2510 resolved
Former user created an issue

I missed this in #2473: the query for enums also outer-joins pg_constraint without using any columns from it.

Removing this takes each table reflection from 1-2 seconds down to 160 ms in our production DB (which has a fairly unusual number of objects).

Patch attached.

Comments (5)

  1. Log in to comment