Click here to Skip to main content
15,881,852 members
Articles / Database Development / NoSQL

RavenDB - An Introduction

,
Rate me:
Please Sign up or sign in to vote.
4.87/5 (38 votes)
28 Apr 2010CPOL7 min read 261.6K   2.7K   112  
An introduction to RavenDB - a new open source .NET document database using .NET 4.0 and VS 2010
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Raven DB</title>
    <link href="css/rdb.css" rel="stylesheet" type="text/css" />
    <link href="css/smoothness/jquery-ui-1.8rc2.custom.css" rel="Stylesheet" type="text/css" />

    <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="js/jquery-ui.js"></script>
    <script type="text/javascript" src="js/jquery-jtemplates.js"></script>
    
    <script type="text/javascript" src="js/jquery.RavenDB.js"></script>
    <script type="text/javascript" src="js/raven-ui.js"></script>

    <script type="text/javascript">
        $(document).ready(function () {
            RavenUI.UpdateQuickStats('ul#quickStats');
        });
    </script>
</head>
<body>
    <div id="header">
        <div id="logo">
            <a href="index.html" title="Home"><img src="images/logo.png" alt="RavenDB" style="border:none;" /></a>
        </div>
        <div id="nav">
            <ul>
                <li><a href="index.html" class="nav_active">home</a></li>
                <li><a href="statistics.html">global statistics</a></li>
                <li><a href="documents.html">documents</a></li>
                <li><a href="indexes.html">indexes</a></li>
                <li><a href="view.html?docId=raven_documentation/index">documentation</a></li>
            </ul>
        </div>
        <div class="clear"></div>
    </div>    
    <div id="body">
        <div id="right">
            <div class="sideBarListBox">
                <h3>Quick Stats</h3>
                <ul id="quickStats">
                    <li><img src="images/ajax-loader.gif" /> Loading...</li>
                </ul>
            </div>
            <div class="sideBarListBox">
                <h3>Quick Help</h3>
                <ul>
                    <li><a href="#">Help Topic #1</a></li>
                    <li><a href="#">Help Topic #2</a></li>
                    <li><a href="#">Help Topic #3</a></li>
                </ul>
            </div>
        </div>
        <div id="content">
            <h1>
                Welcome to your Raven DB Server
            </h1>
            <h2>
                What is a document database?
            </h2>
            <p>
                As opposed to relational databases, document-based databases do not store data in
                tables with uniform sized fields for each record. Instead, each record is stored
                as a document that has certain characteristics. Any number of fields of any length
                can be added to a document. Fields can also contain multiple pieces of data.<br />
                <br />
                For example here's a document:
                <blockquote>
                    FirstName="Bob", Address="5 Oak St.", Hobby="sailing".
                </blockquote>
                Another document could be:
                <blockquote>
                    FirstName="Jonathan", Address="15 Wanamassa Point Road", Children=("Michael,10",
                    "Jennifer,8", "Samantha,5", "Elena,2").
                </blockquote>
                Notice that both documents have some similar information and some different - but
                unlike a relational database where each record would have the same set of fields
                and unused fields might be kept empty, there are no empty 'fields' in either document
                (record) in this case. This system allows information to be added any time without
                wasting storage space for "empty fields" as in relational databases.<br />
                <br />
                It is noteworthy here that using XML, YAML or JSON for information storage has advantages
                similar to document oriented database. In these languages each record can have a
                non-standard amount of information. Such information is properly called semi structured
                data.<br />
                <br />
                Another advantage of document oriented databases is the ease of usage and programming
                so that untrained business users, for example, can create applications and design
                their own databases. Information can be added without worrying about the "record
                size" and so programmers simply need to build an interface to allow the information
                to be entered easily.
            </p>
        </div>
           
    </div>        

<!-- end content -->

    <div id="footer">
        <div style="float:left; margin-left:20px;">
            Copyright 2010 <a href="http://hibernatingrhinos.com">Hibernating Rhinos</a>. All Rights Reserved.            
        </div>
        <div style="float:right; margin-right:20px;">
            Web interface developed by <a href="http://werul.com">Wer�l</a>
        </div>
        <div style="clear:both;"></div>
    </div>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
I've been a software developer since 1996 and have enjoyed C# since 2003. I have a Bachelor's degree in Computer Science and for some reason, a Master's degree in Business Administration. I currently do software development contracting/consulting.

Written By
Israel Israel
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions