How to Install PyMongo and Connect to MongoDB in Python

Introduction If you’d like to connect to MongoDB for Python, you’ll probably want to use Pymongo– the Python wrapper for MongoDB. When you use MongoDB and Python together, you can create, update and query collections with just a few simple lines of code. In this article, we’ll explain how to install the Python driver for … Continued

How to Start MongoDB from a Configuration File

Introduction If you’re new to working with MongoDB, it’s likely that you simply run it with all its default settings. By the time you’re ready to use MongoDB in a production environment, you’ll probably need to customize quite a few options. There’s no need to remember every single option you want to customize when you … Continued

How To Query MongoDB Documents In Python

Introduction When you need to find information on a MongoDB document, querying the right way becomes important. You want the right data as fast as possible so you can make the right decisions. There are several ways to find documents MongoDB, however, it’s best to know which one to use in order to save time. … Continued

How to Perform Indexing in MongoDB using Java

Introduction If you want MongoDB to process queries as efficiently as possible, it’s important to make good use of indexes. Indexes support the efficient execution of queries. They help MongoDB limit the number of documents it must inspect to complete a query. Without the help of indexes, MongoDB would have to scan each and every … Continued

How to Limit Delete to a MongoDB Collection using Java

Introduction If you’re working with data in MongoDB, there will be times when you need to delete documents, but you want to limit that deletion to documents that meet specific criteria. Deleting documents is a permanent operation, so you need to make sure you know how to proceed. Fortunately, it’s easy to accomplish a limited … Continued

How to Use MongoDB Comparison Query Operators in Java

Introduction When you query a database, there are times when you need to use comparison operators to express the conditions of the query. You might want a list of all students whose age is greater than 16, or you might want the database to return all cars where the model year equals 2019. Queries like … Continued

How to Use the LIKE Query in MongoDB using Java

Introduction When you’re querying a database, there are times when you need answers to questions that can’t be accomplished with typical operators. Perhaps you have a collection of student records, and you want to query for all names that start with “R”– you can’t rely on a traditional exact-matching query to do the job. In … Continued

Embedded Documents in a MongoDB Collection

Introduction If you’re new to using MongoDB, you may not have much experience working with embedded documents. However, it’s worth taking the time to learn how to use them– the embedded document model is a powerful concept, allowing you to store all kinds of related information in a single document. This “denormalized” database structure offers … Continued

Keep in the know!

Subscribe to our emails and we’ll let you know what’s going on at ObjectRocket. We hate spam and make it easy to unsubscribe.