csnotes/363/lec/lec26.md
2019-09-24 11:34:35 -07:00

876 B

lec26

Some types of Database Structures

  1. Key-Values

Just like a standard map, we provide a key and get a value. Maks things easy for usage but recall that our hash function is really delicate. Because we're using a map or a set type of container.

  1. Document

Welcome to json/xml world. Now we just look for documents(json/xml) instead of looking for some data with a predefined structure.

  1. Column Family

Variant of key/value but this time we store things in columns instead of rows. Advantage here is that we can quickly search through columns for analysis type things.

  1. Graph

Data is a graph(wow).

We still have some key-value system to find a node in the graph but we can create edges between values to create relationships.

NoSQL

In favor of usage

  • Data is not uniform
  • Dataset is massive

Against

  • You need consistency