feat: Support COUNT of relevant rows
See original GitHub issueFeature request
Is your feature request related to a problem? Please describe.
I’d like to perform COUNT(*)
on relevant rows.
Describe the solution you’d like
A PostgrestTransformBuilder
method. PostgREST supports this.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:33 (30 by maintainers)
Top Results From Across the Web
A Gentle Introduction on Market Basket Analysis
Market Basket Analysis is one of the key techniques used by large retailers to uncover associations between items.
Read more >How to return all information of a row with MAX or MIN value in ...
Suppose we have a table “score” as below, and we need all information on a row with the maximum score of each team....
Read more >Extracting, transforming and selecting features - Apache Spark
Extracting, transforming and selecting features. This section covers algorithms for working with features, roughly divided into these groups:.
Read more >column-count | CSS-Tricks
Given the number of columns, the browser will evenly distribute the content in exactly that number of columns. This property can also be...
Read more >Calculate Field Python examples—ArcGIS Pro | Documentation
Python also supports a number of numeric and mathematical functions, ... Instead of performing calculations one feature or row at a time, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@dshukertjr No, this interface is just for counting the root table.
Not necessarily, you can always create a VIEW or FUNCTION that has the aggregate to do it in one request.
There’s also another option, that is currently undocumented in postgrest since it’s not complete. Basically:
That will get the tweets
count
as you’d expect. However if you add more attributes(liketweets(content,date,count)
) it will fail.Calling other aggregate functions with
group by
is a future enhancement.Thanks @soedirgo and @steve-chavez. I will add this feature and create a pull request.