You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As noted in f1607d9 the time.created sorting does not fix the problem described in the first few paragraphs of the #972 issue. That was the problem in which the client uses both time_modified.gt and time_modified.lt, and observes that "jumped out of the bounded range" can occur.
However, time.created sorting does fix the problem of missing data when only time_modified.gt is used. In other words, there are some very realistic use cases in which
'time.created': 1
is the preferred sorting, and (as far as I know) no identifed use cases in which
Whatever field this sorts on first, the code should ensure the last field that it sorts on is a unique field (e.g. CVE ID or _id). Sorting only on a timestamp value (which is non-unique) will produce duplicate results when paging through large sets of data. For more info, see https://www.mongodb.com/docs/manual/reference/operator/aggregation/sort/#sort-consistency
As noted in f1607d9 the time.created sorting does not fix the problem described in the first few paragraphs of the #972 issue. That was the problem in which the client uses both time_modified.gt and time_modified.lt, and observes that "jumped out of the bounded range" can occur.
However, time.created sorting does fix the problem of missing data when only time_modified.gt is used. In other words, there are some very realistic use cases in which
is the preferred sorting, and (as far as I know) no identifed use cases in which
or
or
or
would be better than that.
The text was updated successfully, but these errors were encountered: