Coder Social home page Coder Social logo

skyformat99 / duoduo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from libinzhangyuan/duoduo

0.0 1.0 0.0 624 KB

Key value database for const data on SSD disk. Do not using memory. --- unfinished

License: MIT License

Makefile 10.91% Shell 0.10% C++ 87.92% C 1.06%

duoduo's Introduction

Key value database for const data on SSD disk.

  • This nosql db store data on a SSD disk. It's using little memory for data cache.
  • It's for data that do not change frequently.
  • The common usage of DuoDb is initialize the data in your app initialize phase. Then using it in running phase.
  • It do not support transaction because changing data when running server is not our feature.

Warning: Changing data frequently will damage your SSD disk. Add data is ok.

One change per second will be OK. But 100 changes per second may let SSD disk dying in few months.

Config

  • Get block size of your ssd.
  • sudo /sbin/dumpe2fs /dev/hda2 | grep 'Block size'
  • then config the ssd block size.

Compile static lib for production using.

  • $ cd essential
  • $ vim Makefile : open the line: CPPFLAGS = -Wall
  • $ make
  • $ cd ../ddlib
  • $ vim Makefile : open the line: CPPFLAGS = -Wall -I ../essential
  • $ make
  • then coping the ddlib.a to your production lib dir.

Compile for cppunit test

Install cppunit

Compile

  • $ cd essential
  • $ vim Makefile : open the line: CPPFLAGS = -Wall -D _UTEST_
  • $ make
  • $ cd ddlib
  • $ vim Makefile : open the line: CPPFLAGS = -Wall -I ../essential -D _UTEST_
  • $ make
  • $ cd ..
  • $ vim Makefile : open the line: CPPFLAGS = -Wall -I essential -I ddlib -D _UTEST_
  • $ make
  • $ ./duoduo_utest

contribute

duoduo's People

Contributors

libinzhangyuan avatar

Watchers

 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.