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

Jiabao Sun commented on FLINK-36097:
------------------------------------

The avgObjSize is also returned from the `$collStats` aggregation.

> Add timeseries support for SampleSplitter
> -----------------------------------------
>
>                 Key: FLINK-36097
>                 URL: https://issues.apache.org/jira/browse/FLINK-36097
>             Project: Flink
>          Issue Type: Improvement
>          Components: Connectors / MongoDB
>    Affects Versions: mongodb-1.2.0
>            Reporter: Jiabao Sun
>            Assignee: Jiabao Sun
>            Priority: Minor
>
> Timeseries collections do not return a count from the `$collStats` 
> aggregation.
> In this case, it is necessary to use the `countDocuments` method to get the 
> exact count of documents in the collection, to avoid split into a single 
> split.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to