3. „
NoSql is a fast, portable, relational database
management system without arbitrary limits,
(other than memory and processor speed) that
runs under, and interacts with, the UNIX1
Operating System. It uses the "Operator-Stream
Paradigm" described in "Unix Review".
Carlo Strozzi, Marzec 1991
piątek, 31 sierpnia 2012
23. Redis
Serwer struktury danych
Key value storage z trwałoscia danych
,
Obsługa łancuchów tekstowych
Obsługa hashy
Obsługa list
Obsługa zbiorów
Obsługa zbiorów sortowanych
Protokół Publish / Subscribe
http://redis.io/
piątek, 31 sierpnia 2012
25. Problem
Cena Cena Cena Cena
Producent Producent Wykonawca Producent
Matryca Monitor Utwory `
Szybkosc`
Typ pamieci
, Dysk HDD Kolor
Problem
piątek, 31 sierpnia 2012
26. Jak efektywnie
`
OPISAC PRODUKTY `
.
ROZNEGO RODZAJU
piątek, 31 sierpnia 2012
27. MongoDB
Dokumentowa baza danych
`
Dowolnosc` schematu danych
Indeksy
MapReduce
Skalowalnosc horyzontalna
``
Replikacja danych
http://mongodb.org/
piątek, 31 sierpnia 2012
28. MongoDB
Przyklad
-
{
doc
=
{
author:
'joe', author
:
'joe',
created
:
new
Date('03/28/2009'), created
:
new
Date('03/28/2009'),
title
:
'Yet
another
blog
post', title:
'Sample
title',
text
:
'Here
is
the
text...', tags:
[
"moon",
"apollo",
"spaceflight"
],
tags
:
[
'example',
'joe'
], ...
comments
:
[ };
{
author:
'jim',
comment:
'I
disagree'
},
{
author:
'nancy',
comment:
'Good
post'
} db.posts.insert(doc);
] db.posts.find(
{
"comments.author"
:
"jim"
}
)
} db.posts.ensureIndex(
{
tags:
1
}
);
db.posts.findOne(
{
tags:
"apollo"
}
).title;
piątek, 31 sierpnia 2012
32. .
A TAKZE NIE WYKORZYSTUJA
`
INDEKSOW KLUCZY OBCYCH
piątek, 31 sierpnia 2012
33. A SKALOWANIE BAZY DANYCH ZACZYNA SIE
`
NA POZIOMIE SCHEMATU DANYCH
piątek, 31 sierpnia 2012
34. cket
rSo ps
0
ndle q
0
A Ha
.0
DeN
7 5 0
piątek, 31 sierpnia 2012
35. watek na polaczenie
3306
Akceptacja protokolu
Parsowanie SQL
MySQL .API Optymalizacja SQL
Otwarcie tabel
dla złozonych Query Plan
zapytan ` Query Cache
Dostep do danych
Zamkniecie tabel Storage
Zwrócenie wyników Engine
InnoDB
MyISAM
HandlerSocket ...
dla zapytan` Akceptacja protokołu
Dostep do danych
,
szybkich lub Zwrócenie wyników
index scan
9998 9999
watek workera
piątek, 31 sierpnia 2012
36. MySQL Cluster
high performance database
Auto-sharding
`
Skalowalnosc` horyzontalna online
Real-time performance
Dostep do danych SQL i NoSQL
,
ACID
http://www.mysql.com/products/cluster
piątek, 31 sierpnia 2012