MongoDB Authorization Model – User-defined Roles Part 2

Introduction In the first part (Part 1) of our series on the MongoDB authorization model, we talked about user-defined roles, focusing on the various actions that a user can perform and the resources that these actions can be performed on. Now, we can turn our attention to privileges and see what they look like in … Continued

How To Insert Elasticsearch Documents Into An Index Using Golang

Introduction If you’re storing data in Elasticsearch, you may want to use a Golang script to perform operations such as inserting, updating and deleting documents. Fortunately, it’s easy to execute Elasticsearch operations from Golang with the help of the go-elasticsearch Golang driver. In this article, we’ll provide step-by-step instructions on using the go-elasticsearch driver to … Continued

Thinking Through Database Recovery for DBAs

Introduction Database Recovery involves the restoration of a database, and the data, to a stable state in the event of a system crash caused by a hack or accidental damage. This typically involves restoring the data from backup files to a point at or near the time of the crash. Because there are certain steps … Continued

How to Configure MongoDB Logging

Introduction Logging is a key part of database administration, so it’s important to configure it correctly on your MongoDB deployment. Fortunately, it’s not difficult to learn how to configure MongoDB logging: If you make use of the java.util.logging package, all it takes is a bit of simple code to get your logging set up. In … Continued

The Big Trends in Modern Data

Introduction Digital transformation is radically affecting how business systems work. Big trends in modern data are apparent in the areas of social, mobile, analytics, and cloud (SMAC). Scaling databases either vertically, horizontally, or a combination of both is what DBAs must do to propel their organizations forward and match right up with the trend of … Continued

Elasticsearch Version History – What it does and doesn’t do

Introduction When you store a document in elasticsearch you should see a _version parameter like the one below: 1234567{    "ok": true,    "_index": "products",    "_type": "dairy",    "_id": "1",    "_version": 1 } This is elasticsearch’s built-in version tracking system. But what does version tracking mean exactly? Exactly what functionality does it provide? … Continued

MongoDB foreach Example – cursor.forEach() method & Traverse Usage

Introduction This article focuses on the MongoDB forEach Example and traversal usage. MongoDB forEach function looping operators is a very common function that you should know if you deal with the database. If you have the MongoDB application installed on Windows or Ubuntu, and you want to learn the cursor.forEach() method, follow the steps below. … Continued

MongoDB Group by Multiple Fields Using Aggregation Function

Introduction In this article I will introduce you to the Mongodb group by multiple fields. To understand better first we will learn about the aggregation function. MongoDB Aggregation Function Aggregation functions are used in GROUP BY clauses to aggregate grouped data. Aggregate functions perform better when used with the GROUP BY clause. However, the use … Continued

MongoDB Create Database Username Password to Secure Data

Introduction As long as the Mongodb database port is open on your server any computer can connect to your database and modify, read, or delete your MongoDB data. This article is about MongoDB creating a database username and password which will allow you to secure your data. Mongodb Enable Authentication MongoDB is directly connected by … Continued

Mongodb Distinct Projection – Detailed Usage of Distinct

Introduction All the content of this article is related to MongoDB distinct projection. We’ll start with discussing projection and how to use it and then move onto the distinct operator. MongoDB Projection In MongoDB, a projection means that only the required fields are selected, not every field in the document. A document can contain many … 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.