<slide>
<title>Write concerns</title>

<blurb>Safeness levels:</blurb>
<list>
    <bullet>Confirm replication: %w=2%</bullet>
</list>

<example result="1"><![CDATA[<?php
$m = new MongoClient( 'mongodb://localhost:13000/?replSet=seta&w=2' );
$c = $m->demo->talks;

$c->insert( [ '_id' => 'mongodb' ] );
$c->insert( [ '_id' => 'mongodb' ] );
?>]]></example>

<list>
	<bullet>%w != 0% automatically enables "getLastError"</bullet>
	<bullet>%w > 1% means that the extra nodes have read from the oplog</bullet>
</list>
</slide>
