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):
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)
Thanks for the reply that makes sense to me. I just grabbed all of it and used excel to get the distinct values instead. I was trying to find what documents were being used so I could delete the unused documents.