Tom Lane wrote:
I don't really see, how this query is horrid from a user perspective, this is exactly the way, the percentage has to be calculated from a "philosophical" standpoint (performance considerations left out).Svenne Krap <[EMAIL PROTECTED]> writes: This is very bad news for me, as most of the other (much larger) queries have the same issue, that the views will be used multiple times got get slightly different data, that has to be joined (also more than 2 times as in this case) I think, it has to run multiple times as it returns two different types of data. It seems like there must be a way to get the percentage amounts with only one evaluation of ord_property_type_all, but I'm not seeing it right offhand. I will think about how to remove the second evaluation of the view in question, if anyone knows how, a hint is very appriciated :) I could of course go the "materialized view" way, but would really prefer not to. Svenne |
- [PERFORM] multi-layered view join performance odditie... Svenne Krap
- Re: [PERFORM] multi-layered view join performanc... Steinar H. Gunderson
- Re: [PERFORM] multi-layered view join perfor... Svenne Krap
- Re: [PERFORM] multi-layered view join performanc... Tom Lane
- Re: [PERFORM] multi-layered view join perfor... Svenne Krap
