memory-mapped files i.e. read-through write-through memory caching • Runs nearly everywhere • Data serialized as BSON (fast parsing) • Full support for primary & secondary indexes • Document model = less work
Shard 1 Horizontally Scalable Auto-Sharding • Increase capacity as you go • Commodity and cloud architectures • Improved operational simplicity and cost visibility
everybody in London with a car built between 1970 and 1980 Geospatial • Find all of the car owners within 5km of Trafalgar Sq. Text Search • Find all the cars described as having leather seats Aggregation • Calculate the average value of Paul’s car collection Map Reduce • What is the ownership pattern of colors by geography over time? (is purple trending up in China?) { ! first_name: ‘Paul’,! surname: ‘Miller’,! city: ‘London’,! location: [45.123,47.232],! cars: [ ! { model: ‘Bentley’,! year: 1973,! value: 100000, … },! { model: ‘Rolls Royce’,! year: 1965,! value: 330000, … }! }! }!
& Fraud Internet of Things Database-as-a- Service Mobile Apps Customer Data Management Single View Social & Collaboration Content Management Intelligence Agencies Top Investment and Retail Banks Top US Retailer Top Global Shipping Company Top Industrial Equipment Manufacturer Top Media Company Top Investment and Retail Banks
blog post’,! slug: ‘/2014_01_23_My_first_blog_post’,! published: ISODate(‘2014-01-23T12:23:42‘),! user_id: ObjectId(…),! text: ‘This is the very first blog post…’,! author: ‘John Doe’,! tags: [ ‘NoSQL’, ’MongoDB’ ],! categories: [ ‘Work’ ]! comments: [ { name: ‘Harry’, text: ‘Nice blog post!’,! ts: ISODate(‘2014-02-03T11:41:25‘) },! …! ]! }! Fields Fields can contain an array of sub- documents Fields can contain arrays Typed field values Date