Coder Social home page Coder Social logo

redkeep's Introduction

Red Keep

Build Status Coverage Status

A MongoDB redundancy keeper.

This project automatically tracks changes and adds redundant fields on references.

The Westeros Red Keep

Source: http://awoiaf.westeros.org/index.php/File:Red_Keep.jpg

Functionality

Redkeep runs in the background and denormalizes your references for you. Just define what you want to get denormalized, it's easy.

Installation and Usage

go get -d -u github.com/manyminds/redkeep/redkeepcli

Will install the redkeepcli client. Have a look at the example configuration to see how to configure redkeep the way you want. Let's have a look at the configuration of one watch in detail:

    {
      "trackCollection": "application.user",
      "trackFields": ["name", "username"],
      "targetCollection": "application.answer",
      "targetNormalizedField": "meta",
      "triggerReference": "user",
      "behaviourSettings": {
        "cascadeDelete": false
      }
    }

This will watch for changes in the database application and the collection user. If a new answer will be inserted with a reference to application.user the fields name and username will automatically be stored in the newly created answer as the fields meta.name and meta.username.

redkeep's People

Contributors

sharpner 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.