Elasticsearch and Scroll in Python

Introduction Scrolling in Elasticsearch allows you retrieve a large number of documents, in steps or iterations, similar to pagination or a “cursor” in relational databases. In this article we’ll explore the Elasticsearch concept of scrolling, and how we can implement it in an application using the Python low-level client’s “helpers” library. Let’s go over how … Continued

Run Redis in a Docker Container

Introduction to Redis and Docker The Docker engine compliments Remote Dictionary Server (Redis) by giving developers a dependable Redis Docker Engine strategy to run an instance of the Redis data structure as a service or as a compartmentalized container. Downloading the Bitnami Redis image from the Docker hub has many advantages. For one, changes from … Continued

How to Use Mongoose Validators

Introduction When working with mongoose, one of the very first steps is to define the schema. The schema defines the structure of documents and default values of the fields. But this is not enough. We need to define validations too. Without validations, any type of data can be inserted in the database and this is … Continued

How to Use Mongoose Custom Validators

Introduction Validating a schema is always recommended. Validations make the database better structured and avoid the insertion of bad data into it. Mongoose provides several built-in validators such as required, minlength, maxlength, min, and max. These built-in validators are very useful and simple to configure. But validations in mongoose are not limited only to built-in … Continued

Redis Client and Config Command Tutorial Part 2

Introduction If you’re getting started with Redis, two important commands to know are the CLIENT and CONFIG commands. This second installment of our two-part series will pick up where we left off in our overview of Redis commands. In this article, we’ll provide a Redis CLIENT and CONFIG command tutorial, providing examples of how to … Continued

Use Tesseract OCR to Insert MongoDB Documents

Introduction to using Tesseract OCR to insert MongoDB documents Google’s Tesseract OCR (Optical Character Recognition) software allows you to analyze the text in an image in order to process it and render it as a string of characters. This article will demonstrate how you can use Python’s pytesseract and pymongo modules to read an image … Continued

NodeJs with Redis Web App Part 2

Introduction If you’re interested in building a web application that uses both NodeJs and Redis, this tutorial will provide all the information you need to get started. This second installment in our multi-part tutorial series picks up where the first article left off. We’ll continue our project, showing you how to configure the view of … Continued

How to use Mongoose to Update in Bulk

Introduction Of all the four CRUD operations, the update is the one that needs to be done very carefully, especially when there are bulk of documents to be updated. One single mistake can lead to serious trouble. Imagine, there are hundreds of documents in a collection and we try to update the bulk of documents … Continued

How to Use Mongoose Lean

Introduction Mongoose provides many methods for retrieving documents from a Mongoose collection. These methods include find(), findOne(), findById(), etc. The find() method is the most popular and widely used. It returns multiple documents based on the condition specified. But when there is a huge amount of documents in a collection, the find() method lacks performance. … Continued

How to Use Mongoose Populate

Introduction In real-time, there are many collections in a MongoDB database. While working with an application, we may need to link these collections. It is a bit complex task, but mongoose provides the populate() method that helps us with this. In this article, we will discuss how to use mongoose populate. Let’s jump in! Schemas … 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.