I have a table conversation_views with columns: user_id | conversation_id | viewed_at
And a INDEX on conversation_views (conversation_id, user_id)
I would like query:
select
max(viewed_at)
from conversation_views
where
conversation_id=%L
and user_id=%L
Will this query be performant with this indexing or is there another strategy I can use? I'm using Postgres 9.6.12.