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
2470756d
Kaydet (Commit)
2470756d
authored
Eyl 02, 2017
tarafından
Mariusz Felisiak
Kaydeden (comit)
Tim Graham
Eyl 02, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Moved select_sql in SQLCompiler.get_extra_select() to improve performance.
üst
48d92fea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
compiler.py
django/db/models/sql/compiler.py
+1
-1
No files found.
django/db/models/sql/compiler.py
Dosyayı görüntüle @
2470756d
...
@@ -357,8 +357,8 @@ class SQLCompiler:
...
@@ -357,8 +357,8 @@ class SQLCompiler:
def
get_extra_select
(
self
,
order_by
,
select
):
def
get_extra_select
(
self
,
order_by
,
select
):
extra_select
=
[]
extra_select
=
[]
select_sql
=
[
t
[
1
]
for
t
in
select
]
if
self
.
query
.
distinct
and
not
self
.
query
.
distinct_fields
:
if
self
.
query
.
distinct
and
not
self
.
query
.
distinct_fields
:
select_sql
=
[
t
[
1
]
for
t
in
select
]
for
expr
,
(
sql
,
params
,
is_ref
)
in
order_by
:
for
expr
,
(
sql
,
params
,
is_ref
)
in
order_by
:
without_ordering
=
self
.
ordering_parts
.
search
(
sql
)
.
group
(
1
)
without_ordering
=
self
.
ordering_parts
.
search
(
sql
)
.
group
(
1
)
if
not
is_ref
and
(
without_ordering
,
params
)
not
in
select_sql
:
if
not
is_ref
and
(
without_ordering
,
params
)
not
in
select_sql
:
...
...
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