This is from my talk at BigDive in Turin, Italy 2013. The talk is generally about databases and how we evolved to where we are. There is a lot of command line stuff that is not shown here though - this is mostly for attendees for reference.
13. MONGODB
•Document database, uses JSON
•Many user/developer features
•Many deployment features
•Designed specifically for modern scale
challenges and programming
languages
33. DATATYPE:OBJECTID
•MongoDB’s ObjectID is a 12-byte
BSON type, comprised of unix seconds
from epoch (4 bytes), machine identifier
(3 bytes), process id (2 bytes), and
random counter (3 bytes).
36. DATATYPE:OBJECTID
> x = ObjectId()
ObjectId("51b73dff884498553b746046")
> x.getTimestamp()
ISODate("2013-06-11T15:10:55Z")
37. DATATYPE:DATE
•MongoDB’s Date is a 64-bit integer
that represents the Unix epoch in
milliseconds. It is signed, negative
values represents dates before 1970.
38. DATATYPE:DATE
> when = new Date()
ISODate("2013-06-11T15:18:30.241Z")
> when.toString()
Tue Jun 11 2013 17:18:30 GMT+0200 (CEST)
> when.getMonth()
5
39. DATATYPE:GRIDFS
•MongoDB’s GridFS is a facility that
allows you to store binary files within
the database, and allows you to extend
them with JSON metadata.
40. (ok this part is easier on the
command line. more on this
later in this class.)
50. GRIDFS
•Drivers support GridFS with helper
methods, as well as the mongofiles
command line tool that is distributed
with MongoDB.
•Crazy, whack-daddy fast.
•Dead simple to use.
54. REPLICATION
•MongoDB’s Replica Sets allow you to
add multiple masters for write
performance, slaves for read
performance
•Many tutorials and procedures