Skip to content
Studio 3T - The professional GUI, IDE and client for MongoDB
  • Tools
    • Aggregation Editor
    • IntelliShell
    • Visual Query Builder
    • Export Wizard
    • Import Wizard
    • Query Code
    • SQL Query
    • Connect
    • Schema Explorer
    • Compare
    • SQL ⇔ MongoDB Migration
    • Data Masking
    • Task Scheduler
    • Reschema
    • More Tools and Features
  • Solutions
  • Resources
    • Knowledge Base
    • MongoDB Tutorials & Courses
    • Tool/Feature Documentation
    • Reports
    • Case Studies
    • Whitepapers
    • Blog
    • Testimonials
    • Community
  • Contact us
    • Contact
    • Sales Support
    • Feedback and Support
    • Career
    • About Us
  • Store
    • Buy Now
    • Preferred Resellers
    • Team Pricing
  • My License
  • Download
search

What is Query Assist in Studio 3T? #Studio3T_AMA

Posted on: 20/10/2021 (last updated: 21/10/2021) by DJ Walker-Morgan

Q: What is Query Assist in Studio 3T? And why is my Studio 3T popping up this warning that it is off?

A Query Assist Warning

Welcome to the latest Studio 3T Ask Manatees Anything – #Studio3T_AMA. Want to know how to use Studio 3T to make your MongoDB life better? Just tweet and use #Studio3T_AMA or email [email protected].

A: Query Assist is an interesting feature in Studio 3T. We recommend you keep it on unless you have a very good reason to turn it off. It’s so important, we added a reminder in Studio 3T 2021.8 to help you keep it turned on.

Why? Well, when it’s on, Studio 3T takes on the responsibility in IntelliShell for running queries from start to finish. When it’s off, the queries are passed on down to the mongo shell under the hood. It doesn’t sound like a huge difference, and it’s hard to spot, but it is there.  

Without Query Assist

Let’s talk about what happens when a query is run without Query Assist first. Behind the scenes, the mongo command is run, connected to the server and the query sent to it. Studio 3T then captures the output and parses it onto a “Shell Output” view. Now this looks very much like the Collection Views you’ll see elsewhere in Studio 3T but there’s a lot of things missing. 

Without Query Assist the results view is very limited.
No Query Assist = Less results and no extra edit controls

There’s no add, view or edit document buttons. There’s also no update or remove dialog or query code or explain query options. Oh, and no count of documents. That’s a lot missing, but also you are limited, by default, to viewing the first 20 results as that’s what Mongo’s shell produces. There are other surprises too. Run two queries in the shell and their results will be blended together into one table – a touch confusing. 

With Query Assist

Now, when a query is run with Query Assist enabled, behind the scenes there’s no mongo command involved. Instead, Studio 3T takes the query and runs it itself using its built in query and display handlers. This uses the Java Driver to talk at high speed to the Mongo server and get the results back. 

Those results aren’t coming back as plain text but as data ready to manage inside Studio 3T’s own code. The code is now able to activate all the features, when the data is viewed, because it has already asked for the additional data it needs to track which documents you are looking at. You get the add, view and edit document buttons because now we are tracking the document id, so we know what document you are working with. 

With Query Assist the results view is a veritable powerhouse of features.
With Query Assist = Inline editable results and extra edit controls

That’s the same for the update and remove dialog; now we know what to seed the update and remove queries with. And as we have a handle on the query we can get an explanation of how the query was run. On top of that, the Count Documents control is back so you can get the total number of documents and, as we ran two queries, the results from each are in separate tabs, labelled by line number in the IntelliShell.

But the best part for most people is you can now double click on any field in Table View and edit it in place. With Query Assist enabled, we always know which document and field you are on and can let you make changes.

Keep It On

A feature like that is invaluable and that’s why we nudge you to keep Query Assist Enabled. In an earlier version of Studio 3T we made the Query Assist setting persistent but that has caught some people out as they didn’t notice and were wondering why the powerful table editing was missing. 

So do make sure you have Query Assist enabled and only disable it when you have a real need.


How helpful was this article?
This article was hideous
This article was bad
This article was ok
This article was good
This article was great
Thank you for your feedback!

About The Author

DJ Walker-Morgan

Dj has been around since Commodore had Pets and Apples grew everywhere. With a background in Unix and development, he's been around the technology business writing code or writing content ever since.

Related articles

  • How does Studio 3T’s SQL Query work? #Studio3T_AMA
  • Is there a quicker way to query _id values? #Studio3T_AMA
  • Help! How can I find my lost query! #Studio3T_AMA
  • What’s a default query? #Studio3T_AMA
  • What’s a covered query in MongoDB? #Studio3T_AMA

Tags

academy aggregation AMA atlas community connections date tags export features hackolade import intellishell JSON knowledge base migration modelling mongodb mongoodb productivity query regex releases schema security SQL Studio 3T tasks tips updates webinar windows

Browse by MongoDB topic

  • Connecting to MongoDB
  • Database Administration & Security
  • Getting Started with MongoDB
  • Getting Started with Studio 3T
  • Import/Export
  • Job Automation & Scheduling
  • MongoDB Aggregation Framework
  • MongoDB/Studio 3T Workshops
  • Performance
  • Query & CRUD Operations
  • Schema
  • Studio 3T Licensing
  • Support and other resources
  • Working with MongoDB & SQL
  • Working with MongoDB Atlas

Studio 3T

MongoDB Enterprise Certified Technology PartnerSince 2014, 3T has been helping thousands of MongoDB developers and administrators with their everyday jobs by providing the finest MongoDB tools on the market. We guarantee the best compatibility with current and legacy releases of MongoDB, continue to deliver new features with every new software release, and provide high quality support.

Find us on FacebookFind us on TwitterFind us on YouTubeFind us on LinkedIn

Education

  • Free MongoDB Tutorials
  • Connect to MongoDB
  • Connect to MongoDB Atlas
  • Import Data to MongoDB
  • Export MongoDB Data
  • Build Aggregation Queries
  • Query MongoDB with SQL
  • Migrate from SQL to MongoDB

Resources

  • Feedback and Support
  • Sales Support
  • Knowledge Base
  • FAQ
  • Reports
  • Case Studies
  • White Papers
  • Testimonials
  • Discounts

Company

  • About Us
  • Blog
  • Careers
  • Legal
  • Press
  • Privacy Policy
  • EULA

© 2022 3T Software Labs GmbH. All rights reserved.

  • Privacy Policy
  • Cookie settings
  • Impressum
When you click "Accept", you are agreeing to cookies being on your device. They may improve site navigation, site usage analysis, or the relevance of messages. It is up to you which cookies are enabled. Read our Privacy Policy.
Manage cookies
Accept
✕

Privacy Preference Center

A cookie is a small file of letters and numbers that is downloaded on to your computer when you visit a website. Cookies are used by many websites and can do a number of things, eg remembering your preferences, recording what you have put in your shopping basket, and counting the number of people looking at a website. In the form below you can choose which cookies, except for essential cookies, to allow or disable.

Accept all cookies

Manage consent preferences

Essential cookies are strictly necessary to provide an online service such as our website or a service on our website which you have requested. The website or service will not work without them.

Performance cookies allow us to collect information such as number of visits and sources of traffic. This information is used in aggregate form to help us understand how our websites are being used, allowing us to improve both our website’s performance and your experience.

Functional cookies collect information about your preferences and choices and make using the website a lot easier and more relevant. Without these cookies, some of the site functionality may not work as intended.

Social media cookies are cookies used to share user behaviour information with a third-party social media platform. They may consequently effect how social media sites present you with information in the future.

Accept selected