Change Field Name using MongoDB Shell

Introduction Let us make our way through some basics as we get into how to change a field name using the MongoDB Shell. MongoDB is a NoSQL database. It means there are no tables in MongoDB. It stores data in the JSON format. The data is stored in the documents which in turn are stored … Continued

MongoDB Skip Performance

Introduction MongoDB is a NoSQL database, that means, there are no tables. Data is stored in JSON format. A single collection can consist of multiple documents. There can be thousands of documents in a single collection. We don’t always need to go through every document. We can skip the documents using the skip method. In … Continued

MongoDB Group by Date

Introduction Grouping by date is super common when retrieving data from your database. The date functions are immensely used in modern web development. Dates are valid data types in MongoDB. We can store dates in MongoDB using date or ISODate function. Storing data along with dates is useful in various ways. We can sort the … Continued

Iterate MongoDB Documents 625

Introduction In this article we’ll show you how to iterate on MongoDB Documents through a couple different methods in the MongoDB shell. The documents in MongoDB contain data in JSON format, i.e. key-value pairs. The documents, in turn, are stored in collections. We use the find method to get all the documents inside a collection. … Continued

How To Use Python’s JSON Library In Elasticsearch

Introduction If you’re working with Python and Elasticsearch, it’s important to make sure you’ve lined up all the tools you need to get the job done efficiently. One key tool is Python’s JSON library. This built-in JSON library seamlessly converts Python dict (dictionary) type objects into JSON strings and vice versa, making it easy to … Continued

PostgreSQL timestamp vs timestamptz

Introduction In almost every application of a database you will at some point need to store dates and times. You may need to store the the birthdate of a user or the date and time an article was published. PostgreSQL offers timestamp and timestamptz along with tons of utility functions that will allow you to … Continued

How to Create a Python Class Designed to Construct Elasticsearch Documents

Introduction This tutorial will explain how to create a Python class construct for Elasticsearch documents. All variables and pieces of data are fundamentally “objects” in Python programming language. As all objects have attributes and properties, having a solid understanding of the OOP, or Object-Oriented programming, concept is essential to learning the Python fundamentals. Creating a … Continued

How to Use PostgreSQL PDO Driver with PHP Part 1

Introduction This tutorial will explain how to connect PHP to PostgreSQL with the PDO driver and create the PHP project structure with Composer, a dependency-management tool in PHP. Compose allows for verifying the libraries a project requires and it will install and update the libraries as needed. Be sure all the prerequisites are properly in … 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.