Browse files

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


git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
adrianholovaty committed Dec 9, 2011
1 parent 19cbdf8 commit 594a45ed292d79901d45252603dc8e7a5d991d22
Showing with 8 additions and 6 deletions.
  1. +8 −6 docs/topics/db/optimization.txt
@@ -283,21 +283,23 @@ number of SQL queries. For example::
Entry(headline="Python 3.1 Planned")
-Is preferable to:: preferable to::
Entry.objects.create(headline="Python 3.0 Released")
Entry.objects.create(headline="Python 3.1 Planned")
Note that there are a number of :meth:`caveats to this method
-<django.db.models.query.QuerySet.bulk_create>`, make sure it is appropriate for
-your use case. This also applies to :class:`ManyToManyFields
-<django.db.models.ManyToManyField>`, doing::
+<django.db.models.query.QuerySet.bulk_create>`, so make sure it's appropriate
+for your use case.
+This also applies to :class:`ManyToManyFields
+<django.db.models.ManyToManyField>`, so doing::
my_band.members.add(me, my_friend)
-Is preferable to:: preferable to::
-Where ``Bands`` and ``Artists`` have a many-to-many relationship.
+...where ``Bands`` and ``Artists`` have a many-to-many relationship.

0 comments on commit 594a45e

Please sign in to comment.