Hi @Tam_Nguyen1,
I believe the behaviour you’re experiencing is expected. As per the configure shell documentation, specific to the displayBatchSize property description:
The number of items displayed per cursor iteration
The distinct() command does not return a cursor (comparing to a find() which does return a cursor):
myFirstDatabase >db.manydocs.distinct.returnType
{ type: 'unknown', attributes: {} }
myFirstDatabase> db.manydocs.find.returnType
Cursor
Just for more context, can you describe what the use case is here for wanting to return all 245 items using distinct() in the shell? You could get all the results on the application side if this works for you (more details on this on the distinct command documentation)
Regards,
Jason