summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2011-12-09 23:14:04 +0000
committerAdrian Holovaty <adrian@holovaty.com>2011-12-09 23:14:04 +0000
commit594a45ed292d79901d45252603dc8e7a5d991d22 (patch)
treeef714d28267c4e3eea8f6509616281528d318055 /docs
parent19cbdf8c8f6f5da5687cfec659841176b6af7d67 (diff)
Fixed some comma splices in the 'Insert in bulk' section of db/optimization.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17188 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/db/optimization.txt14
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/topics/db/optimization.txt b/docs/topics/db/optimization.txt
index baea968fdb..067bc78c42 100644
--- a/docs/topics/db/optimization.txt
+++ b/docs/topics/db/optimization.txt
@@ -283,21 +283,23 @@ number of SQL queries. For example::
Entry(headline="Python 3.1 Planned")
])
-Is preferable to::
+...is 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::
+...is preferable to::
my_band.members.add(me)
my_band.members.add(my_friend)
-Where ``Bands`` and ``Artists`` have a many-to-many relationship.
+...where ``Bands`` and ``Artists`` have a many-to-many relationship.