Re: Last event per user

From: Luís Roberto Weck <luisroberto(at)siscobra(dot)com(dot)br>
To: Michael Lewis <mlewis(at)entrata(dot)com>
Cc: pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: Last event per user
Date: 2019-08-12 23:03:54
Message-ID: 1ab9f8c65040b2e724e559ce9bc0b8cd@siscobra.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

But I need user_id and user_group to be outside of the view definition.
user_id and user_group are dynamic values, as in, I need to call this
query multiple times for different user_ids and user_groups .

In response to

  • Re: at 2019-08-12 22:53:41 from Michael Lewis

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Michael Lewis 2019-08-12 23:09:53 Re: Last event per user
Previous Message Michael Lewis 2019-08-12 22:53:41 Re: