Giter Club home page Giter Club logo

postgresql-vpack's Introduction

PostgreSQL VelocyPack extension

This extension adds the velocypack format support to PostgreSQL. Generally it is a jsonb analogue with more data types and support for logical types or tags.

It supports most jsonb_* functions as vpack_*, jsonpath analogue vpackpath and conversion from the json, jsonb and BSON formats.

Some bits and pieces haven't been implemented yet.

Advantages

  • more data types than JSON
  • same format for data processing, transport and storage
  • logical types or tagging: for more precise type or object document mapping

Performance

Benchmark PostgreSQL (jsonb), PostgreSQL (vpack) and MongoDB

  • 16 parallel clients, 10^6 records, 5 minutes
  • left axis: average requests per second
  • top left: inserts -- VPack is a bit faster, because it did not perform input validation
  • top right: selects by primary key -- VPack is faster due to lack of conversion to text
  • bottom left: a simple aggregate operation
  • bottom right: transactions

TODO

Building

Install bison, flex, cmake, gcc.

git submodule update --recursive

(
	mkdir build-mongo
	cd build-mongo
	cmake -DCMAKE_C_FLAGS="-fPIC" ../mongo-c-driver/
	make -j 12
)

(
	mkdir build
	cd build
	cmake ..
	make -j 12
	make install
)

Then run CREATE EXTENSION vpack;. See vpack--0.1.sql for available functions, operators and casts.

postgresql-vpack's People

Contributors

siilike avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.