Try Studio 3T for Free
  1. Knowledge Base
  2. MongoDB Tutorials
  3. How to View Multiple MongoDB Collections at Once

How to View Multiple MongoDB Collections at Once

In this post, we’ll walk you through how to view MongoDB collections at once through side-by-side tabs, which was one of our most user-requested features.

Very frequently, you probably encounter one of these use cases:

  1. You want to easily compare test and production data sets
  2. You simply want to look at and quickly compare result sets of different queries.

For the purposes of this blog post, let’s focus on the second use case and look at two separate views of the same collection.

This will result in two different tabs displayed one after the other like this:

Before: Two MongoDB collections opened in two tabs, with no way to view both at once

Hmm, this is not the optimal view when you want to see and compare data sets, is it?

With the new Split Vertically / Split Horizontally feature that we’ve implemented, Studio 3T allows you to quickly see, in a single glance, multiple tabs side by side. You can choose to display the two datasets side by side vertically or horizontally.

Split vertically

Start by right clicking on any of the tabs and choose Split Vertically.

Right-click on a tab and choose either Split Vertically or Split Horizontallly

Now your two tabs will be shown side-by-side like this:

After: Two vertically split tabs

Split tabs horizontally

Or you could choose to split your view horizontally. Again, start by right clicking one of your tabs and now choose Split Horizontally.

After: Two tabs split horizontally

Drag and drop tabs

You can now even drag-and-drop tabs and reorder them in case you have multiple tabs open and you want a quick way to compare them more easily.

Open multiple tabs at once, even drag and drop them as you need
Viewing multiple collections is as easy as that! Don’t forget: you can also limit the number of documents loaded when opening collections to reduce load time, and color-code your connections so you never mix up your test and production databases ever again 🙂

Updated on February 7, 2020

Was this article helpful?

Related Articles

Leave a Comment