Upload
wietse-wind
View
61
Download
3
Embed Size (px)
Citation preview
Wifi: "GASTEN iPub/Synced/Integrators" Wachtwoord: nodumapp
SERVER
SERVER QUERY LANGUAGE
SERVER QUERY LANGUAGE CLIENTDOCUMENTS
CLIENT(s)
Geavanceerd
Failover (loadbalancing)
Security (autorisatie)
Sharding (clustering)
SERVER(s)
SERVER QUERY LANGUAGE CLIENTDOCUMENTS
SQL vs. MongoDB
SQL vs. MongoDB
SQL vs. MongoDB
JSON
SQL vs. MongoDB
Terminologie
INSERT IGNORE JOIN / GROUP GROUPSELECT
UPSERT AGGREGATE DISTINCTFIND
Voorbeelden (Queries)
Notatie (JSON)
{ ... } [ ... ] " ... " "$..."
object (data)
array (lijst)
key / value (string)
MongoDB operator(s)
{ name : "Pepper", age : 6, gender : "FEMALE", class : { order : "Parrots", genus : "Eclectus" } }
[ 1, 2, 10 ]
[ {}, {}, {} ]
"name" : "Pepper", "weight" : 0.420, ...
"$or" : [ ] "$gt" : ... "$lt": ... "$gte": ... "$lte": ...
"$regex" : "..." "$in" : [ , ] "$date" : { }
ID’s (_id)
Performance (indexes)
Alternatieve indexes
Sparse TTL (Expire) UniqueCompound
Enkel indien veld gevuld
Automatisch verwijderen
Geen dubbele records toestaan
Meerdere velden
Queries :D
insert( document ) nodum: set( document )
document
Queries :D
find( query, projection, sort, skip, take )
query
projection
sort
skip
take
Queries :D
distinct( field, query )
field
query
Queries :D
delete( query )
query
Queries :D
update( query, document, replaceDoc, upsert )
query
document
replaceDoc
upsert
Queries :D
aggregate( aggregateQuery )
aggregateQuery