Re: - Mailing list pgsql-performance

From Michael Lewis
Subject Re:
Date
Msg-id CAHOFxGqT2CQHmP8J_qE3nwLL-3xMSFjjr1cpmTY4Wv4ioEqRVg@mail.gmail.com
Whole thread Raw
In response to Re:  (Luís Roberto Weck <luisroberto@siscobra.com.br>)
Responses Re: Last event per user  (Luís Roberto Weck <luisroberto@siscobra.com.br>)
List pgsql-performance
If you modify last_user_event_2 to select user and event info in the view, and just put there where clause directly on the view which is not joined to anything, instead of on the "extra copy" of the users table like you were showing previously, I would expect that the performance should be excellent.

pgsql-performance by date:

Previous
From: Luís Roberto Weck
Date:
Subject: Re:
Next
From: Luís Roberto Weck
Date:
Subject: Re: Last event per user