In the middle of a world filled with databases handlers you’ve probably heard, there’s a new trend that started a couple of years ago. Instead of using SQL (those pretty awesome and sometimes burdensome instructions we used to query our databases), they employ different techniques. As a group, their are known as NoSQL databases. Today, we’ll talk a bit about one of them, called MongoDB.
MongoDB is a NoSQL document database, focused in high performance, and with automatic scaling. It's a document database because it stores data in documents: objects without schema (that is, without a rigid structure of columns and types), which can contain any field you want, anytime you want. It's focused in high performance because it uses RAM memory to work with its documents (working with objects in memory is much faster that doing I/O operations, such as reading from a hard drive). You’ll also find MongoDB has automatic scaling, using what they call sharding: store data across multiple machines.
And as we like MongoDB, this Feature Friday we release our MongoDB consoles. Yes! Our first database console!
If you use MongoDB, you must know (and if you don't, you are about to learn something new), a server needs to be started before it's usable. So we added a second Terminal to our consoles: one for the server and one for your MongoDB queries.
As we want to make your life easier, the MongoDB server starts by its own in the first Terminal. With CodePicnic, you can just create a MongoDB console and start coding!
Start playing with MongoDB right now in this demo. You can check the "Getting Started" section in the official documentation.
To start the command line use
Don't miss next Monday our tutorial about using MongoDB from zero to hero. We'll talk about documents, collections, and how get and set data into your MongoDB database.