Room 204 - 2:20PM-3:10PM
MongoDB and Mysql: Which
- ne is a better fit for me?
MongoDB and Mysql: Which one is a better fit for me? Room 204 - - - PowerPoint PPT Presentation
MongoDB and Mysql: Which one is a better fit for me? Room 204 - 2:20PM-3:10PM About us Adamo Tonete MongoDB Support Engineer Agustn Gallego MySQL Support Engineer Agenda What are MongoDB and MySQL; NoSQL
Room 204 - 2:20PM-3:10PM
{ "_id" : ObjectId("507f1f77bcf86cd799439011"), "studentID" : 100, "firstName" : "Jonathan", "middleName" : "Eli", "lastName" : "Tobin", "classes" : [ { "courseID" : "PHY101", "grade" : "B", "courseName" : "Physics 101", "credits" : 3 }, { "courseID" : "BUS101", "grade" : "B+", "courseName" : "Business 101", "credits" : 3 } ] }
■ transactions should function as a single, indivisible unit of work
■ the database should always move from one consistent state to the next
■ the results of a transaction are (usually) invisible to other transactions until the transaction is finished
■
■ if autocommit=ON (default), every statement is committed immediately ■ if not, COMMIT or ROLLBACK should be used explicitly
■ uses the doublewrite buffer and crash recovery
■ various isolation levels from which to choose from: RU, RC, RR and S
■ there are many configuration options available for this, among which are: innodb_flush_log_at_trx_commit and sync_binlog
■ single document level & no snapshotting for reads
■ primary = strong ■ secondaries = your choice
■ not really, but $isolated can help
■ configurable w:majority and/or j:true
A P C
A P C
A P C
A P C Relational Databases MySQL Postgres Cassandra Riaki MongoDB Redis
MySQL MongoDB Database Database Table Collection Row Document Column Key
https://dev.mysql.com/doc/refman/5.7/en/select.html
https://www.percona.com/about-percona/customers https://www.percona.com/about-percona/case-studies
54