Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
bf50ae82
Kaydet (Commit)
bf50ae82
authored
May 28, 2017
tarafından
François Freitag
Kaydeden (comit)
Tim Graham
Haz 01, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clarified QuerySet.iterator()'s docs on server-side cursors.
üst
9af6c975
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
+24
-6
djangodocs.css
docs/_theme/djangodocs/static/djangodocs.css
+2
-1
querysets.txt
docs/ref/models/querysets.txt
+22
-5
No files found.
docs/_theme/djangodocs/static/djangodocs.css
Dosyayı görüntüle @
bf50ae82
...
...
@@ -43,11 +43,12 @@ div.nav { margin: 0; font-size: 11px; text-align: right; color: #487858;}
/*** basic styles ***/
dd
{
margin-left
:
15px
;
}
h1
,
h2
,
h3
,
h4
{
margin-top
:
1em
;
font-family
:
"Trebuchet MS"
,
sans-serif
;
font-weight
:
normal
;
}
h1
,
h2
,
h3
,
h4
,
h5
{
margin-top
:
1em
;
font-family
:
"Trebuchet MS"
,
sans-serif
;
font-weight
:
normal
;
}
h1
{
font-size
:
218%
;
margin-top
:
0.6em
;
margin-bottom
:
.4em
;
line-height
:
1.1em
;
}
h2
{
font-size
:
175%
;
margin-bottom
:
.6em
;
line-height
:
1.2em
;
color
:
#092e20
;
}
h3
{
font-size
:
150%
;
font-weight
:
bold
;
margin-bottom
:
.2em
;
color
:
#487858
;
}
h4
{
font-size
:
125%
;
font-weight
:
bold
;
margin-top
:
1.5em
;
margin-bottom
:
3px
;
}
h5
{
font-size
:
110%
;
font-weight
:
bold
;
margin-top
:
1em
;
margin-bottom
:
3px
;
}
div
.figure
{
text-align
:
center
;
}
div
.figure
p
.caption
{
font-size
:
1em
;
margin-top
:
0
;
margin-bottom
:
1.5em
;
color
:
#555
;}
hr
{
color
:
#ccc
;
background-color
:
#ccc
;
height
:
1px
;
border
:
0
;
}
...
...
docs/ref/models/querysets.txt
Dosyayı görüntüle @
bf50ae82
...
...
@@ -2021,15 +2021,32 @@ evaluated will force it to evaluate again, repeating the query.
Also, use of ``iterator()`` causes previous ``prefetch_related()`` calls to be
ignored since these two optimizations do not make sense together.
Some Python database drivers still load the entire result set into memory, but
won't cache results after iterating over them. Oracle and :ref:`PostgreSQL
<postgresql-server-side-cursors>` use server-side cursors to stream results
from the database without loading the entire result set into memory.
Depending on the database backend, query results will either be loaded all at
once or streamed from the database using server-side cursors.
With server-side cursors
^^^^^^^^^^^^^^^^^^^^^^^^
Oracle and :ref:`PostgreSQL <postgresql-server-side-cursors>` use server-side
cursors to stream results from the database without loading the entire result
set into memory.
The Oracle database driver always uses server-side cursors.
On PostgreSQL, server-side cursors will only be used when the
:setting:`DISABLE_SERVER_SIDE_CURSORS <DATABASE-DISABLE_SERVER_SIDE_CURSORS>`
setting is ``False``. Read :ref:`transaction-pooling-server-side-cursors` if
you're using a connection pooler configured in transaction pooling mode.
you're using a connection pooler configured in transaction pooling mode. When
server-side cursors are disabled, the behavior is the same as databases that
don't support server-side cursors.
Without server-side cursors
^^^^^^^^^^^^^^^^^^^^^^^^^^^
MySQL and SQLite don't support streaming results, hence the Python database
drivers load the entire result set into memory. The result set is then
transformed into Python row objects by the database adapter using the
``fetchmany()`` method defined in :pep:`249`.
.. versionchanged:: 1.11
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment