How to Use Regular Expressions in MongoDB

Introduction When you’re querying text fields there’s no more powerful tool than regular expressions. Although they can get extremely complex, they are unbelievably powerful and super flexible. If you need to generate complicated text queries that aren’t just exact matches then you’ll probably want to look into regular expressions. In this article we’ll take a … Continued

How to Use the Not Operator in MongoDB

Introduction The Not operator can be extremely useful when working with a database query. If you’re not familiar with how the Not operator works we’ll explain it in the first section of this article. We hope you continue reading as we explain what the Not operator is and how you can apply it to make … Continued

How to Setup a Database in Compass Community

Introduction If you’re a developer getting acquainted with MongoDB, possibly setting up a database for your new app idea, Compass Community is a quick and easy way to get started setting up your database. There are numerous ways to get started setting up a new database but we found this way to be great a … Continued

A GUI for MongoDB with Compass Community

Introduction If you’re a developer getting acquainted with MongoDB there are times when you might want to visually see what’s happening with your data without having to look up the query syntax to retrieve the data. It’s time like these where a Graphical User Interface (GUI) for MongoDB can be extremely handy. There are a … Continued

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

Working with MongoDB Capped Collections from Java

Introduction In MongoDB, there’s normally no limit on the size of a collection. The more documents you index, the larger the collection grows. However, for log storage or high-throughput applications, an unlimited-size collection isn’t always an ideal structure. In these cases, it’s often preferable to use a different type of collection called a capped collection. … 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

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.