The third session in our eight-part webinar series on "Building an application with MongoDB" to learn best practices, tips and tricks from our Solution Architects and learn how easy it is to start building applications with MongoDB.
This session - presented by Daniel Roberts, Solutions Architect at MongoDB - discusses queries and updates and the interaction between an application and a database.
Next in the Series:
March 6th 2014 - Build an Application Series - Session 4 - Indexing
This session will focus on indexing strategies for the application, including geo spatial and full text search
March 20th 2014 - Build an Application Series - Session 5 - Reporting in your application
This session covers Reporting and Aggregation Framework and Building application usage reports
April 3th 2014 - Operations for your application - Session 6 - Deploying the application
By this stage, we will have built the application. Now we need to deploy it. We will discuss architecture for High Availability and scale out
April 17th 2014 - Operations for your application - Session 7 - Backup and DR
This webinar will discuss back up and restore options. Learn what you should do in the event of a failure and how to perform a backup and recovery of the data in your applications
May 6th 2014 - Operations for your application - Session 8 - Monitoring and Performance Tuning
The final webinar of the series will discuss what metrics are important and how to manage and monitor your application for key performance.
Daniel Roberts: About the speaker
Daniel Roberts is a Solutions Architect based in London. Prior to MongoDB Daniel worked at Oracle for 11 years in a number of different positions, including Oracle's middleware technologies and strategy. Prior roles include consulting, product management, business development and more recently as a solution architect for financial services. Daniel has also worked for Novell, ICL and as a freelance contractor. He has a degree in Computer Science from Nottingham Trent University in the UK.
2. Agenda
• Recap from last session
• MongoDB Inserts & Queries
– ObjectId
– Returning documents – cursors
– Projections
• MongoDB Update operators
– Fixed Buckets
– Pre Aggregated Reports
• Write Concern
– Durability vs Performance trade off
2
3. Q&A
• Virtual Genius Bar
– Use the chat to post
questions
– EMEA Solution
Architecture / Support
team are on hand
– Make use of them
during the sessions!!!
3
24. Durability
•
With MongoDB you get to choose
•
•
•
•
Write Concerns
•
•
•
Report on success of write operations
getLastError called from driver
Trade off
•
24
In memory
On disk
Multiple servers
Latency of response
28. Replica Sets
• Replica Set – two or more copies
• “Self-healing” shard
• Addresses many concerns:
- High Availability
- Disaster Recovery
- Maintenance
28
31. Summary
• Interacting with the database
– Queries and projections
– Inserts and Upserts
– Update Operators
– Bucketing
– Pre Aggregated reports
• basis for fast analytics
31
32. Next Session – 6th March
– Indexing
• Indexing strategies
• Tuning Queries
– Text Search
– Geo Spatial
– Query Profiler
32
Notas do Editor
Not really fire and forget. This return arrow is to confirm that the network successfully transferred the packet(s) of data.This confirms that the TCP ACK response was received.
Presenter should mention:Default is w:1w:majority is what most people should use for durability. Majority is a special token here signifying more than half of the nodes in the set have acknowledged the write.