[ 
https://issues.apache.org/jira/browse/ATLAS-737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15395412#comment-15395412
 ] 

Neeru Gupta commented on ATLAS-737:
-----------------------------------

[~shwethags] comment on review board: Whats the motivation for adding count - 
since the search API supports offset and limit, should the API return count of 
total results available for the query or should the count be exposed in the DSL 
directly? My preference is to expose the count in the search API

 
@guptaneeru: Counts will be used for reporting purpose such that different 
counts can be precalculated and  displayed for queries. Users can then drill 
down and get the actual results. 

[~cassiodossantos] Would you like to explain other scenarios and why it makes 
sense to add count in DSL query.

> Ability to retrieve the size of the result of a DSL search without having to 
> retrieve the result
> ------------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-737
>                 URL: https://issues.apache.org/jira/browse/ATLAS-737
>             Project: Atlas
>          Issue Type: New Feature
>            Reporter: CASSIO DOS SANTOS
>            Assignee: Neeru Gupta
>         Attachments: rb50311.patch
>
>
> This can be implemented analogously to a "select count *"  in SQL and is more 
> relevant given the added ability to paginate a search result.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to