| От | Luís Roberto Weck |
|---|---|
| Тема | Re: Last event per user |
| Дата | |
| Msg-id | 1ab9f8c65040b2e724e559ce9bc0b8cd@siscobra.com.br обсуждение |
| Ответ на | Re: (Michael Lewis <mlewis@entrata.com>) |
| Ответы |
Re: Last event per user
|
| Список | 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 .
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера