pg_graphql
pg_graphql copied to clipboard
Support distinct on query
Describe the bug Support distinct on query
Expected behavior
From hasura
this is a capability we'll be looking in to at some point but it is not currently on the roadmap
This issue is stale because it has been open for 30 days with no activity.
this is a capability we'll be looking in to at some point but it is not currently on the roadmap
Hey @olirice, do you have updates about the distinct
?
Sure, I have similar concerns about distinct on
as the convo about https://github.com/supabase/pg_graphql/issues/193
TL;DR is that distinct on
makes for expensive queries that are difficult to index. The concept of distinct on
is unusual in the context of an API (its SQL/DB specific). Our goal is to expose a capable but minimal API to your database rather than all the flexibility of SQL. I'm not saying we'll never tackle this, but given that it isn't a slam dunk with ^ philosophy, exploring it is lower priority than some of the other features on the roadmap