Primary Key vs Foreign Key

Introduction Primary keys and foreign keys are the most common types of keys used in databases. A primary key uniquely identifies a tuple in a table whereas a foreign establishes a relationship between two tables. In this article, we will do the comparison between primary key and foreign in relational databases. We will also see … Continued

MERN vs MEAN Stacks – React Angular Mean Mern

Introduction MEAN and MERN are two of the stacks that have sprung up as JavaScript has evolved. Although the web is still primarily built upon HTML, CSS, and JavaScript, users now demand richer experiences and to meet the needs of the increasing demands of today’s end users Angular and React have better equipped developers to … Continued

How to Calculate a Sum in MongoDB

How to use sum(Aggregation) in MongoDB? In this article, we are going to talk about sum, an aggregation method in databases. With the help of the sum method, you can sum up large sets of numbers and calculate totals that can help in reports and other calculations. Let’s get straight into showing you how to perform … Continued

Add New Field in MongoDB Document Array

Introduction MongoDB is a NoSQL database. That means there are no tables in MongoDB. MongoDB stores record as BSON documents. The binary representation of JSON is called BSON. It contains more data types than JSON. One of these data types provided by BSON is an array. An array can contain any set of values. We … Continued

How to Fix the RequestsDependencyWarning Elasticsearch with Python Import Error

Introduction This tutorial will cover how to fix the requests dependency warning error while importing the Elasticsearch library for Python. There is a bug that sometimes throws a RequestsDependencyWarning error message when attempting to import the library for Elastic’s official Elasticsearch Python client. This error message is due to some versions of the Elasticsearch client … Continued

How Does the ELK Stack Work?

Introduction If you’re using or planning to use Elasticsearch, you may have heard about the ELK stack, also known as the Elastic stack. The acronym “ELK” refers to Elasticsearch, Logstash and Kibana– three products that can join forces to offer powerful end-to-end log analysis. With the ELK stack, you can search, analyze and visualize log … Continued

How To Index Elasticsearch Documents Using The Olivere Golang Driver

Introduction This tutorial will cover how to index Elasticsearch documents using Olivere. The Golang driver for Elasticsearch will support multiple versions of the Elasticsearch program. The default port for Elasticsearch is 9200, but the port can be reconfigured in the Elasticsearch cluster’s elasticsearch.yml file. Be sure to understand the prerequisites for indexing documents in Elasticsearch … Continued

The Data Types in MongoDB

Introduction This article will be an introduction to the main data types in MongoDB with code examples to demonstrate each one. Along with XML, JSON(JavaScript Object Notation) is the main format of data interchange used in modern web development. NoSQL databases like MongoDB use JSON to store records. JSON supports all the basic data types … Continued

Elasticsearch 6 Improvements

Introduction If you’re running an earlier version of Elasticsearch, you may be wondering whether it’s worth upgrading to Elasticsearch 6. Fortunately, we can help you make the call. In this article, we’ll give you an overview of Elasticsearch 6 improvements and discuss how they impact performance, efficiency and recovery. Elasticsearch 6 Improvements Streamlining Upgrades One … Continued

How To Create An Elasticsearch Index Using The Olivere Driver In Golang

Introduction The Olivere driver in the Go language (Golang) is excellent for quickly building simple or sophisticated queries for your Elasticsearch index. Basic queries are easy to do, but the Olivere driver also has the capability to deliver accurate results when you create highly complex queries. It’s great that connecting the Olivere driver to Elasticsearch … 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.