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:
- You want to easily compare test and production data sets
- 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:
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.
Start by right clicking on any of the tabs and choose Split Vertically.
Now your two tabs will be shown side-by-side like this:
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.
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.
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 🙂