Giter Club home page Giter Club logo

data-access-patterns's Introduction

data-access-patterns

  • How many values accessed?

    • Single-value (result single row)
      • 0-1
    • Multiple-values
      • 0-n
  • Crud-type?

    • read-only SELECT ...
    • append-only INSERT INTO ...
    • edit UPDATE VALUES ...
    • delete DELETE FROM ...
  • CRUD-types -> frequency of each type

  • Analysis queries

    • Redis vs materialized view vs columnar vs hadoop/etc
    • Predictability (cubes, rollups, how detailed?)
  • OLTP / OLAP

  • Read-order/area

    • sequential / random
    • sparse / tight
    • rows / disk-block ratio?
    • predictability? (think document vs normalized)
    • swapping rate
  • Query size

    • Query span fits in memory?
    • Query result fits in memory?
  • Isolation-requirement

    • isolation levels
    • optimistic / pessimistic locking!
    • event time? start / end of transaction
  • Durability requirements?

  • Recency level?

    • eventual consistency ok?
  • Main-memory heavy operations?

    • sort
    • aggregates (?)
    • joins
  • How much data?

  • How many accessors? (appliocation replicas)

    • hotspots? vs easy sharding?
  • CPU usage? ย - where condition evaluation cost?

  • Latency requirements

  • "Programming with read-only db"

  • Immutability

    • temporal data
  • Event-driven database

  • Time-series data

  • Insert data clustering

    • Think citybikes

data-access-patterns's People

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.