Re: static virtual columns as result?
| От | Kevin Grittner |
|---|---|
| Тема | Re: static virtual columns as result? |
| Дата | |
| Msg-id | 4FF2B1020200002500048D3F@gw.wicourts.gov обсуждение исходный текст |
| Ответ на | static virtual columns as result? (PV <pstm.spain@gmail.com>) |
| Ответы |
Re: static virtual columns as result?
Re: static virtual columns as result? |
| Список | pgsql-performance |
PV wrote: > Any suggestion? You provided too little information to suggest much beyond using JOIN instead of a subquery. Something like: SELECT pr.id, pr.catid, cat.a, cat.b FROM pr join cat ON (cat.id = pr.catid) WHERE "lft" > 1 AND "rgt" < 10 AND (...) ORDER BY cat.id OFFSET 0 LIMIT 40; We can provide more specific suggestions if you follow the advice here: http://wiki.postgresql.org/wiki/SlowQueryQuestions And please format your queries to make them more readable -- something like I did above. -Kevin
В списке pgsql-performance по дате отправления: