Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed some comma splices in the 'Insert in bulk' section of db/optimi…

…zation.txt

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17188 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 594a45ed292d79901d45252603dc8e7a5d991d22 1 parent 19cbdf8
Adrian Holovaty authored December 09, 2011

Showing 1 changed file with 8 additions and 6 deletions. Show diff stats Hide diff stats

  1. 14  docs/topics/db/optimization.txt
14  docs/topics/db/optimization.txt
@@ -283,21 +283,23 @@ number of SQL queries. For example::
283 283
         Entry(headline="Python 3.1 Planned")
284 284
     ])
285 285
 
286  
-Is preferable to::
  286
+...is preferable to::
287 287
 
288 288
     Entry.objects.create(headline="Python 3.0 Released")
289 289
     Entry.objects.create(headline="Python 3.1 Planned")
290 290
 
291 291
 Note that there are a number of :meth:`caveats to this method
292  
-<django.db.models.query.QuerySet.bulk_create>`, make sure it is appropriate for
293  
-your use case. This also applies to :class:`ManyToManyFields
294  
-<django.db.models.ManyToManyField>`, doing::
  292
+<django.db.models.query.QuerySet.bulk_create>`, so make sure it's appropriate
  293
+for your use case.
  294
+
  295
+This also applies to :class:`ManyToManyFields
  296
+<django.db.models.ManyToManyField>`, so doing::
295 297
 
296 298
     my_band.members.add(me, my_friend)
297 299
 
298  
-Is preferable to::
  300
+...is preferable to::
299 301
 
300 302
     my_band.members.add(me)
301 303
     my_band.members.add(my_friend)
302 304
 
303  
-Where ``Bands`` and ``Artists`` have a many-to-many relationship.
  305
+...where ``Bands`` and ``Artists`` have a many-to-many relationship.

0 notes on commit 594a45e

Please sign in to comment.
Something went wrong with that request. Please try again.