If you get involved in the software development industry, or heck, even just use a computer, you know that vendors pump out new versions of their software very frequently. It often seems like just when you get a handle on version 10, version 11 is introduced and the learning curve has to start all over. I'm so stubborn that I'm personally still on Microsoft Office 2003... I know, don't laugh.
Sometimes new versions offer nothing but bug fixes and additional headaches. Other times new software versions come packed with a wide assortment of immediately useful new features. Such is the case of the latest release of MongoDB, 3.4, released in December of 2016.
I'd like to take a look at some of the new features they have included in this latest version for developers. There are several new features more suited for a discussion from an administrator standpoint, such as zones, elastic scalabilty enhancements, consistency control, and improvements to security for database access. For this post though, let's stick to a discussion about some of the development oriented features.
Version 3.4 provides some excellent improvements for data processing and aggregation, international language considerations, and third-party application connection tools.
They have brought the ability to do graph processing directly into MongoDB with the new $graphLookup aggregation stage. This new stage allows MongoDB to recursively lookup documents based on a specific relationship to a starting document. There are, of course, many uses for this feature alone, such as graphing social networks, business entities, genealogical family trees, etc. One can now utilize the power of a graph database natively within MongoDB. For those that have used a separate graph database, like Neo4j, they can now process their data using a single MongoDB datastore and get graphs along with other business critical data. With the rise of applications that are connected globally, being able to graph relationships is becoming a larger and larger need.
Additionally, with the globalization of applications it is becoming more and more critical to be able to offer localized language considerations to your application. My family just gone done hosting an exchange student from Germany and let us know that German phone books and German dictionaries sort words differently. Well, it would be great to be able to have the ability to account for these language rules and nuances. MongoDB 3.4 has support for over 100 different languages and locales. One can specify a collation based on collection, index, or view. Further, several operations support collation as well, such as find, aggregate, and update.
A couple of additional things which personally got me excited were some updates to the MongoDB Connector for BI and the MongoDB Connector for Apache Spark. As someone who enjoys being able to visualize data, the Connector for BI is very exciting. The performance improvements have been made by moving more query execution into MongoDB processes to reduce latency and bandwidth. Other improvements around the Connector for BI include a simplification of the installation, configuration process, authorization, and support for Windows.
The Spark Connector has received some nice attention as well with updates to support the latest Spark 2.0 release. For those familiar with Spark, the connector allows us access to Spark's libraries for Scala, Java, Python, and R and brings MongoDB data in as DataFrames and Datasets. This allows us to utilize data already in MongoDB to be analysed through Spark's tools for machine learning, graph, streaming, and SQL APIs and provide shorter turn around times for data scientists and engineers.
There are several other features new in 3.4 as well, such as faceted navigation, enhancements to the aggregation pipeline, and a support for the decimal data type. In previous posts I have mentioned some of the advancements to MongoDB Compass and their DBaaS offering Atlas. There are a lot of exciting things in all of these new and/or enhanced features that make version 3.4 worth examining further.
I am excited to continue to examine the possibilities especially around $graphLookup, multi-language collations, and the various connectors. I know that not every organization is in a place and able to upgrade to 3.4 today, but it is definitely worth a look. You can download it in their download center here.