OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] Commented: (ODATA-323) InlineCount should just be boolean


    [ http://tools.oasis-open.org/issues/browse/ODATA-323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=32875#action_32875 ] 

Ramanjaneyulu Malisetti  commented on ODATA-323:
------------------------------------------------

It is good suggestion.

However, $inlinecount  sets  the expectation that server returns the exact count. But sometimes exact count may not be available or to compute exact count server needs to make multiple calls on data source that in worst case can take the double the time 

For instance,  server has to make enumerate() call to get entities because server has huge dataset for requested query. So, it can return one page with reasonable dataset size and include link to the next page with  $skiptoken. In this case if request includes $inlinecount  then server has to make enumerate() call twice, one for count and second for data. 

How to convey to the client that returned count is approximate value and count value may be changed in the next page?

> InlineCount should just be boolean
> ----------------------------------
>
>                 Key: ODATA-323
>                 URL: http://tools.oasis-open.org/issues/browse/ODATA-323
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Bug
>          Components: OData ABNF Construction Rules, OData Protocol 
>    Affects Versions: V4.0_WD01
>         Environment: [Proposed]
>            Reporter: Michael Pizzo
>             Fix For: V4.0_WD01
>
>
> Today a client specifies that they want a count of entities returned inline by specifying the query option $inlinecount=allpages.
> the value "allpages" is meaningless and implies there is some other "singlepage" or "mostpages" or "everyotherpage" option.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]