Lagos, Nigeria
info@ezefidelity.com

How to create a new database with RavenDB


Jack Wallen shows you how easy it is to create a NoSQL database with RavenDB.

RavenDB is a cross-platform document-oriented, NoSQL database server with a range of features that would make any enterprise-level developer or admin giddy. RavenDB was designed especially for the .NET/Windows platform, but getting it up and running on a Linux server is an outstanding pathway to success. 

Like many NoSQL databases, RavenDB includes a well-designed GUI that makes working with those massive collections of data much easier than you might think. Before you can work with the data, you must first create a database to hold said data. Fortunately, RavenDB makes this easy as well. 

Let me show you. 

SEE: Microservices: A cheat sheet (free PDF) (TechRepublic)

How to create a new RavenDB database

  1. Log in to your RavenDB dashboard and click Databases. 
  2. In the resulting window, click New Database. 
  3. Give your new database a name that is any combination (less than 128 characters) of upper and lowercase letters, numbers, and can contain the special characters “-“,”_”, and “.”. 
  4. Once you have your name set, you can configure the Replication factor. If this is a stand-alone RavenDB server, your Replication factor will be 1. If you have a cluster, you can configure this number up to equal the amount of nodes in the cluster. So if you have three nodes in your RavenDB cluster, you can have a Replication factor between 1 and 3. Since I’m demonstrating with a single node deployment, my Replication factor is 1. 
  5. I’ll name my database TechRepublic and then click Create. The database will be created almost immediately and return you to the Databases window. 
  6. Click on the Database name and you can then begin to create documents by clicking New Document. 

One of the best ways to understand how to work with RavenDB documents is to create an empty database and then add sample data. To do that, create your empty database and then click the gear icon. Under Tasks, click Create Sample Data. This will populate the database with a good size collection of sample documents that you can easily learn from.

Given the scale at which RavenDB can serve, it’s a surprisingly easy NoSQL database. Give it a go and see if you don’t find yourself wanting to migrate to this option.

Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the latest tech advice for business pros from Jack Wallen.

Also see

Big data analysis, unstructured database processing metaphor, large volume of  white puzzle jigsaws with alphabets pouring from bottle combine word DATA on red fabric background with copy space

Image: :Nuthawut Somsuk, Getty Images/iStockphoto



This post was written by and was first posted to TechRepublic



Do you find this article helpful? Your Friend might too. So, please Share it with them using the Share button above.
Will you like to get notified when I post new updates? Then Follow me on any of my social media handles: Google News, Telegram, WhatsApp, Twitter, Facebook, Pinterest.
You can also drop your email address below if you wish to be notified by mail.

[newsletter_form type="minimal" lists="undefined" button_color="undefined"]

Tags: ,