Quantcast
Channel: Paul Done's Technical Blog
Browsing latest articles
Browse All 25 View Live

MongoDB Connector for Hadoop with Authentication - Quick Tip

If you are using the MongoDB Connector for Hadoop and you have enabled authentication on your MongoDB database (eg. auth=true) you may find that you are prevented from getting data in to or out of the...

View Article



Java Using SSL To Connect to MongoDB With Access Control

In this post I've documented the typical steps you need to enable a Java application to connect to a MongoDB database over SSL. Specifically, I show the so-called "one-way SSL" pattern, where the...

View Article

Tracking Versions in MongoDB

I'm honoured to have been asked by Asya to contribute a guest post to her series on Tracking Versions in MongoDB. Here's Asya's full series on the topic, which I recommend reading in order:How to Track...

View Article

Image may be NSFW.
Clik here to view.

Accessing MongoDB data from SQL / ODBC on Windows, using the new BI Connector

[EDIT 05-Apr-2018: MongoDB BI Connector version 2+ uses a different mechanism for connecting to (not using a PostgreSQL driver) - for more info see here] The latest enterprise version of MongoDB (3.2)...

View Article

Image may be NSFW.
Clik here to view.

Accessing MongoDB data using SQL / ODBC on Linux

[EDIT 05-Apr-2018: MongoDB BI Connector version 2+ uses a different mechanism for connecting to (not using a PostgreSQL driver) - for more info see here] In my previous post I showed how generic...

View Article


Image may be NSFW.
Clik here to view.

MongoDB's BI Connector and pushdown of SQL WHERE clauses

[EDIT 05-Apr-2018: MongoDB BI Connector version 2+ uses a much more rich and powerful approach for pushing down SQL clauses to the database - for more info see here] In previous posts I showed how to...

View Article

Image may be NSFW.
Clik here to view.

SHOCKER: XA Distributed Transactions are only Eventually Consistent!

Apologies for the tabloid-trash style headline. It could have been worse, I could have gone with my working title of "WARNING: XA will eat your first-born"! This topic has come up in a few...

View Article

Image may be NSFW.
Clik here to view.

Deploying a MongoDB Replica Set as a GKE Kubernetes StatefulSet

[Part 1 in a series of posts about running MongoDB on Kubernetes, with the Google Kubernetes Engine (GKE). See the GitHub project gke-mongodb-demo for an example scripted deployment of MongoDB to GKE,...

View Article


Configuring Some Key Production Settings for MongoDB on GKE Kubernetes

[Part 2 in a series of posts about running MongoDB on Kubernetes, with the Google Kubernetes Engine (GKE). See the GitHub project gke-mongodb-demo for an example scripted deployment of MongoDB to GKE,...

View Article


Using the Enterprise Version of MongoDB on GKE Kubernetes

[Part 3 in a series of posts about running MongoDB on Kubernetes, with the Google Kubernetes Engine (GKE). See the GitHub project gke-mongodb-demo for an example scripted deployment of MongoDB to GKE,...

View Article

Image may be NSFW.
Clik here to view.

Deploying a MongoDB Sharded Cluster using Kubernetes StatefulSets on GKE

[Part 4 in a series of posts about running MongoDB on Kubernetes, with the Google Kubernetes Engine (GKE). For this post, a newer GitHub project gke-mongodb-shards-demo has been created to provide an...

View Article

Image may be NSFW.
Clik here to view.

Run MongoDB Aggregation Facets In Parallel For Faster Insight

Introduction MongoDB version 3.4 introduced a new Aggregation stage, $facet, to enable developers to "create multi-faceted aggregations which characterize data across multiple dimensions, or facets,...

View Article

Image may be NSFW.
Clik here to view.

MongoDB Graph Query Example, Inspired by Designing Data-Intensive...

Introduction People who have worked with me recently are probably bored by me raving about how good this book is: Designing Data-Intensive Applications by Martin Kleppmann (O'Reilly, 2016). Suffice to...

View Article


Image may be NSFW.
Clik here to view.

Running a Mongo Shell Script From Within A Larger Bash Script

[EDIT May 2023: The post below was written for the legacy 'mongo' shell but has since been tested with the modern 'mongosh' shell, which behaves the same with no issues.] If you have a Bash script that...

View Article

Image may be NSFW.
Clik here to view.

Some Tips for Diagnosing Client Connection Issues for MongoDB Atlas

Introduction   [UPDATE 07-Sep-2020: I've now written an executable binary tool you can run which performs the equivalent of the checks in this blog post to diagnose connectivity issues to Atas or any...

View Article


Image may be NSFW.
Clik here to view.

My Notes on Linux Application Support in ChromeOS (a.k.a. Crostini)

These are my own rough notes from spending a few days studying Chrome OS and its Linux app support on a HP Chromebook 14* I got for free (retails for about £150) when I recently purchased a Google...

View Article

Image may be NSFW.
Clik here to view.

Running MongoDB on ChromeOS (via Crostini)

In my previous post I explored Linux application support in ChromeOS and Chromebooks (a.k.a. Crostini). Of course I was bound to try running MongoDB in this environment, which I found to work really...

View Article


Converting Gnarly Date Strings to Proper Date Types Using a MongoDB...

Introduction I recently received some example bank payments data in a CSV file which had been exported from a relational database with that database's default export settings. After using mongoimport...

View Article

Image may be NSFW.
Clik here to view.

Rust & MongoDB - Perfect Bedfellows

I've been learning Rust over the last month or so and I'm really enjoying it. It's a really elegant and flexible programming language despite being the most strongly typed and compile-time strict...

View Article

Image may be NSFW.
Clik here to view.

Is Querying A MongoDB View Optimised?

Views in MongoDB appear to database users like read-only collections, ready to be queried in the same way normal collections are. A View is defined by an Aggregation pipeline and when a query is issued...

View Article

Image may be NSFW.
Clik here to view.

MongoDB Data Masking Examples

IntroductionData Masking is a well established approach to protecting sensitive data in a database yet allowing the data to still be usable. There are a number of reasons why organisations need to...

View Article


Image may be NSFW.
Clik here to view.

MongoDB Reversible Data Masking Example Pattern

IntroductionIn a previous blog post I explored how to apply one-way non-reversible data masking on a data-set in MongoDB. Here I will explore why, in some cases, there can be a need for reversible data...

View Article


Image may be NSFW.
Clik here to view.

New MongoDB Aggregations book is out

My book, Practical MongoDB Aggregations, was published this week.The book is available electronically for free for anyone to use at: https://www.practical-mongodb-aggregations.comThis book is intended...

View Article

Image may be NSFW.
Clik here to view.

Achieving At Least An Order Of Magnitude Aggregation Performance Improvement...

IntroductionWhen I started my MongoDB Inc career 8 years ago, the 'bootcamp' project topic I chose for self-learning was to investigate how to speed up aggregations via parallelism. Specifically, I...

View Article

Image may be NSFW.
Clik here to view.

New Paper Version Of Practical MongoDB Aggregations Book Now Available

Just over 2 years ago, I self-published the Practical MongoDB Aggregations eBook, which is also referenced by parts of the MongoDB Manual. Now, there is a MongoDB Inc. officially endorsed paper and...

View Article

Browsing latest articles
Browse All 25 View Live


Latest Images