MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
2014 it - app dev series - 03 - interagire con il database
1. Serie Sviluppo di un’Applicazione
Back to Basics
Interagire con il Database
Senior Solutions Architect, MongoDB Inc.
Massimo Brignoli
#MongoDBBasicsIT
2. Agenda
• Riassunto della lezione precedente
• Gli Operatori di Query di MongoDB
– Restituire documenti - cursori
– Proiezioni
• Gli Operatori di Update di MongoDB
– Pacchetti Fissi
– Report PreAggregati
• Write Concern
– Compromesso tra Durabilità e Velocità
3. Q & A
• Virtual Genius Bar
– Usate la chat per fare
domande
– Il team italiano vi
risponderà
– Usatelo durante la
sessione!
22. Durabilità
• Con MongoDB potete scegliere
• In memoria
• Su disco
• Su multipli server
• Write Concern
• Ritorna dopo il successo di un‟operazione di scrittura
• Il driver chiama getLastError
• Compromesso
• Latenza della risposta
26. Replica Set
• Replica Set – due o più copie
• E‟ uno shard “Self-healing”
• Indirizza diverse esigenze:
- High Availability
- Disaster Recovery
- Manutenzione
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.