Search code examples
mongodbintellij-ideadatagrip

How do I set show more than 20 results in Intellij / DataGrip Mongo DB Shell


This is related to How to print out more than 20 items (documents) in MongoDB's shell?. Right now I'm only seeing 20 items at a time returned from my IntelliJ MongoDB interactive shell. Things that I have tried:

  • Confirming IntelliJ Preferences >> Tools >> Database >> Data Views does not have any 20 item limit.
  • Executing DBQuery.shellBatchSize = 1000; in the IntelliJ MongoDB shell
  • Adding DBQuery.shellBatchSize = 1000; to .mongors.js file in my home directory (as the docs say).

How can I get remove this 20 item limit in IntelliJ MongoDB driver?


Solution

  • Since 2021.1 version you can change the value of database.mongodb.page.size.limit Registry option. To open Registry dialog use Help | Find Action... and type "Registry":

    enter image description here