You've probably heard that column indexing is a great way to optimize query performance by minimizing the number of disk accesses required by the query. MongoDB has a specific application of field indexing called Covered Queries, where all of a query's columns are indexed. Covered Queries are very fast because MongoDB doesn't have to examine any documents apart from the indexed ones. In today's blog, we'll be learning how to use Covered Queries to query data faster.
If you've ever tried to locate a specific column in a large database, I'm sure that you'd agree that it can be a painstaking task. You can glean a lot of information about the DB structure from the information_schema schema. It has a list of all tables and all fields that are in a table. You can then run queries using the information that you have gotten from this table. The specific tables involved are SCHEMATA, TABLES and COLUMNS. There are foreign keys such that you can build up exactly how the tables are created in a schema.
In last week's blog, we explored the pros and cons of document relationship modeling via Embedded and Referenced approaches in MongoDB. We then gained some valuable experience with each by creating both an Embedded and Referenced relationship. Today, we'll learn how to create DBRefs in MongoDB.
As the name implies, Relational Databases (RDBMSes) maintain relationships between the tables to organize the data together in meaningful ways. Document databases such as MongoDB are sometimes called "schema-less" due to the fact that they don't really enforce relationships like RDBMSes do. However, while document databases don't require the same predefined structure as a relational database, that doesn't mean that they don't support it. In fact, MongoDB allows relationships between documents to be modeled via Embedded and Referenced approaches. In today's blog, we'll give each a try using Navicat for MongoDB.
Selecting which database will manage all of your company's data can be a very daunting decision; one that will have long-term ramifications for both your employees, partners and customers. Perhaps you're already contemplating a few specific vendors? Not so fast! Have you taken the time to weigh the pros and cons of NoSQL versus traditional relational databases? If not, you've come to the right place. Let's get started!
- 2026 (1)
- March (1)
- The Hidden Costs of Cloud Database Services (and When On-Prem Makes More Financial Sense)
- How AI Code Completion Is Changing the Way DBAs Write SQL
- Role-Based Access Control in Database Environments: Getting It Right
- On-Prem vs. Cloud Database Hosting: How to Choose the Right Approach for Your Organization
- Getting Started with AI Assistants in Navicat On-Prem Server 3.1
- SQL vs. NoSQL: Choosing the Best Fit for Your Project
- February (1)
- What Metrics Actually Matter in Database Monitoring
- A Practical Guide to Database Transaction Isolation Levels
- Database Connection Pooling Explained
- Managing Database Credentials Securely
- Building Resilient Database Architectures
- The Future of Database Licensing Models: Navigating the Shift in How We Pay for Data Infrastructure
- January (1)
- Harnessing PostgreSQL Power: An Introduction to Supabase
- The ROI of Database Automation: Quantifying the Business Value of Automated Tuning, Patching, and Optimization
- Database Observability: The New Frontier in Performance Management
- The Database Skills Gap Crisis: Navigating the Shortage of Database Professionals
- The Economics of Multi-Cloud Databases
- March (1)
- 2025 (1)
- December (1)
- November (1)
- October (1)
- September (1)
- August (1)
- Going Beyond Basic Monitoring with Modern Database Observability Platforms
- Privacy-Preserving Databases: Protecting Data While Enabling Access
- Privacy-Preserving Databases: Protecting Data While Enabling Access
- Privacy-Preserving Databases: Protecting Data While Enabling Access
- A Guide to Database Sharding as a Service
- July (1)
- June (1)
- The Rise of Embedded AI/ML Capabilities in Modern Databases
- Immutable Databases: the Evolution of Data Integrity?
- Seamless Information Access Through Data Virtualization and Federation
- Database DevOps Integration: Bridging the Gap Between Development and Operations
- Navicat Sponsors SQLBits 2025 – Supporting the Future of Data Platforms
- May (1)
- Edge Databases: Empowering Distributed Computing Environments
- The Rise of Low-Code/No-Code Database Interfaces: Democratizing Data Management
- Data Vault 2.0: A Modern Approach to Enterprise Data Modeling
- Streaming-First Architectures: Revolutionizing Real-Time Data Processing
- Navicat Proudly Sponsors PGConf.de 2025 as Silver Sponsor (Two Free Tickets Up for Grabs!)
- April (1)
- March (1)
- February (1)
- January (1)
- 2024 (1)
- 2023 (1)
- 2022 (1)
- 2021 (1)
- 2020 (1)
- 2019 (1)
- 2018 (1)
- 2017 (1)

