Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update notes

  • Loading branch information...
commit 957d5a2891833264e528cb41aa3c40ef7e68304d 1 parent 50e48e2
@durran durran authored
View
2  en/mongoid/docs/installation.html
@@ -141,7 +141,7 @@
Mongoid to your <code>Gemfile</code>.
</p>
<div class="CodeRay">
- <div class="code"><pre>gem <span class="string"><span class="delimiter">&quot;</span><span class="content">mongoid</span><span class="delimiter">&quot;</span></span>, <span class="string"><span class="delimiter">&quot;</span><span class="content">~&gt; 3.0.0.rc</span><span class="delimiter">&quot;</span></span>&#x000A;</pre></div>
+ <div class="code"><pre>gem <span class="string"><span class="delimiter">&quot;</span><span class="content">mongoid</span><span class="delimiter">&quot;</span></span>, <span class="string"><span class="delimiter">&quot;</span><span class="content">~&gt; 3.0.0</span><span class="delimiter">&quot;</span></span>&#x000A;</pre></div>
</div>
<p>
Alternatively you can get the Mongoid gem direcly from rubygems.org:
View
27 en/mongoid/docs/relations.html
@@ -852,8 +852,13 @@
<i>
Push multiple documents onto the relation. If the parent is
persisted, then the child documents will be automatically
- saved. <b>This is a batch operation that runs validations, but
- no other callbacks.</b>
+ saved.
+ <b>Note that while batch operations limit the number
+ of database calls to a single one for the new documents, it
+ is in fact at least 2x slower from the Ruby side. This is due
+ to the fact that 2 iterations over all documents must occur
+ to ensure that all the before callbacks run before the db hit,
+ and that all after callbacks have to wait until after.</b>
</i>
</p>
</td>
@@ -1411,8 +1416,13 @@
<i>
Push multiple documents onto the relation. If the parent is
persisted, then the child documents will be automatically
- saved in a single batch. <b>This is a batch operation that runs
- validations, but no other callbacks.</b>
+ saved in a single batch.
+ <b>Note that while batch operations limit the number
+ of database calls to a single one for the new documents, it
+ is in fact at least 2x slower from the Ruby side. This is due
+ to the fact that 2 iterations over all documents must occur
+ to ensure that all the before callbacks run before the db hit,
+ and that all after callbacks have to wait until after.</b>
</i>
</p>
</td>
@@ -1768,8 +1778,13 @@
<i>
Push multiple documents onto the relation. If the parent is
persisted, then the child documents will be automatically
- saved in a single batch. <b>This is a batch operation that
- runs validations, but no other callbacks.</b>
+ saved in a single batch.
+ <b>Note that while batch operations limit the number
+ of database calls to a single one for the new documents, it
+ is in fact at least 2x slower from the Ruby side. This is due
+ to the fact that 2 iterations over all documents must occur
+ to ensure that all the before callbacks run before the db hit,
+ and that all after callbacks have to wait until after.</b>
</i>
</p>
</td>
View
2  en/moped/docs/installation.html
@@ -82,7 +82,7 @@
Moped to your <code>Gemfile</code>.
</p>
<div class="CodeRay">
- <div class="code"><pre>gem <span class="string"><span class="delimiter">&quot;</span><span class="content">moped</span><span class="delimiter">&quot;</span></span>, <span class="string"><span class="delimiter">&quot;</span><span class="content">~&gt; 1.0.0.rc</span><span class="delimiter">&quot;</span></span>&#x000A;</pre></div>
+ <div class="code"><pre>gem <span class="string"><span class="delimiter">&quot;</span><span class="content">moped</span><span class="delimiter">&quot;</span></span>, <span class="string"><span class="delimiter">&quot;</span><span class="content">~&gt; 1.1.1</span><span class="delimiter">&quot;</span></span>&#x000A;</pre></div>
</div>
<p>
Alternatively you can get the Moped gem direcly from rubygems.org:
View
2  en/origin/docs/installation.html
@@ -85,7 +85,7 @@
Origin to your <code>Gemfile</code>.
</p>
<div class="CodeRay">
- <div class="code"><pre>gem <span class="string"><span class="delimiter">&quot;</span><span class="content">origin</span><span class="delimiter">&quot;</span></span>, <span class="string"><span class="delimiter">&quot;</span><span class="content">~&gt; 1.0.0.rc</span><span class="delimiter">&quot;</span></span>&#x000A;</pre></div>
+ <div class="code"><pre>gem <span class="string"><span class="delimiter">&quot;</span><span class="content">origin</span><span class="delimiter">&quot;</span></span>, <span class="string"><span class="delimiter">&quot;</span><span class="content">~&gt; 1.0.4</span><span class="delimiter">&quot;</span></span>&#x000A;</pre></div>
</div>
<p>
Alternatively you can get the Origin gem direcly from rubygems.org:
Please sign in to comment.
Something went wrong with that request. Please try again.