HarperDB & MongoDB
  • HarperDB is 37.9x faster
  • HarperDB is less than 1/2 the price
  • HarperDB has a native REST API
  • HarperDB supports SQL on JSON
  • HarperDB has a lower cost to scale
  • HarperDB is easier to use and manage



Overview

First, let us state that we are grateful for MongoDB and know that it is a product loved and used by many. MongoDB paved the way for companies like HarperDB to exist and pioneered a new way for developers and users to interact with their data. Without awesome products like MongoDB there would be no HarperDB. 
We built HarperDB from the ground up to expand and blend the capabilities of SQL, NewSQL, and NoSQL products like MongoDB because we felt there were certain use cases that could be better served with another solution. We believe that providing developers with the ability to choose the right tool for the job empowers developers and spurs innovation. Some examples where we feel that HarperDB is a better fit include cases where you need NoSQL & SQL, rapid application development, integration, edge computing, distributed computing, and real-time operational analytics.
As a result, with the release of HarperDB 2.0, we wanted to see how we stacked up against the most popular NoSQL database in the world, MongoDB. Turns out, we’re faster, not just sort of faster, much faster. 
We asked an external technology team, Mycos Technologies, to create a simple benchmark for HarperDB compared against a modern, accessible, developer-centric database, MongoDB. We believe HarperDB is easier to use and provides more flexibility than MongoDB. In this benchmark, we intend to prove that HarperDB holds up performance-wise as well.

Performance

  • HarperDB is 37.9 times faster than MongoDB on average.
  • HarperDB is up to 98 times faster than MongoDB on reads.
  • HarperDB is up to 20 times faster than MongoDB on writes.
  • HarperDB scales out-of-the-box for concurrent operations.

Cost

  • HarperDB Cloud is less than half the price of MongoDB Atlas.
  • HarperDB requires less compute. Lower cost of scale.
  • HarperDB does not duplicate data, unlike MongoDB. Lower storage costs.
  • HarperDB natively supports SQL and NoSQL. Less memory required.

SQL Capability

Execute complex, performant, ACID compliant, SQL queries on JSON with no data duplication. Utilizing joins, complex operations, array functions, GeoJSON, and Math.js.

{
  "operation": "sql",
  "sql": "SELECT d.id, d.dog_name, d.owner_name, b.name, b.section 
          FROM dev.dog AS d 
            INNER JOIN dev.breed AS b
              ON d.breed_id = b.id
          WHERE d.owner_name IN ('Kyle', 'Zach', 'Stephen')
            AND b.section = 'Mutt'
          ORDER BY d.dog_name"
}


Native API

let needle = require('needle');

let body = {
    operation: "insert",
    schema: "dev",
    table: "dog",
    records: [
        {name: "Harper", breed: "Mutt", id: "1", age: 5},
        {name: "Penny", breed: "Mutt", id: "3", age: 5}
    ]
};

let options = {
    json:true,
    headers: {
        'Authorization': 'Basic SERCX0FETUlOOnBhc3N3b3Jk'
    }
};

needle('post', 'https://hdb-demo.harperdbcloud.com', body, options)
    .then(function(response) {
        console.log(response.statusCode);
        console.log(response.body);
    })
    .catch(function(err) {
        console.error(err);
});

HarperDB is built natively as a set of micro-services, making development and integration easy and seamless. HarperDB utilizes a single-endpoint for all operations. HarperDB’s RESTful nature makes it stateless, stable, and scalable.


Ease of Use

  • Simple and sleek GUI for management.
  • Code examples in most languages.
  • Drivers for analytics tools and other third party applications.
  • Postman collection to get you started.