0
SQL komutu postgres veritabanı kullanmak Django projede çalışıyorum Postgres'eSQL komutu
tek tablo için sıkışmış.
SQL sorgusu tüm tablolar için çalışan ancak Çalışma common_designprofilecontent
masanın
çalışmıyor:
reader=# SELECT COUNT(*) FROM common_document;
count
-------
20046
(1 row)
Çalışmıyor:
reader=# SELECT COUNT(*) FROM common_designprofilecontent;
sonuç yok bu sorgudan, asgari Bu tabloda 20046 * 4 satır mevcut. yaptıktan sonra
aşağıdadır:
Ayrıcareader=# select * from pg_stat_activity;
5:30 | 2016-03-21 10:22:27.240863+05:30 | 2016-03-21 10:22:28.614431+05:30 | t | SELECT "common_designprofilecontent"."id", "common_designprofil
econtent"."page_id", "common_designprofilecontent"."doc_id", "common_designprofilecontent"."profilename", "common_designprofilecontent"."profileconten
t", "common_designprofilecontent"."page_rev_no", "common_designprofilecontent"."createdDate", "common_designprofilecontent"."createdAgent_id", "common
_designprofilecontent"."modifiedDate", "common_designprofilecontent"."modifiedAgent_id" FROM "common_designprofilecontent" WHERE "common_designprofile
content"."doc_id" = 26952
16440 | reader | 28783 | 10 | postgres | vacuumdb | | | -1 | 2016-03-19 23:37:15.579589+0
5:30 | 2016-03-19 23:37:15.581737+05:30 | 2016-03-19 23:37:15.581737+05:30 | t | VACUUM (FULL, ANALYZE);
+
şey günlük dosyasında gelip /var/log/pgsql
hiçbir sonuç ne demek istiyorsunuz ... sizin için en kolay ve en hızlı seçenek
veya
len hızlıdır alınma sayısı kullanmak olacağını düşünüyorum? Asılı? Sadece boş sonuç mu? Ve bazı sebeplerden dolayı çalışan tam bir vakum var, bu da işleri engelleyebilir. –
Postgres'i yeniden başlatırsanız, sorunu yeniden üretebilir misiniz? – spicyramen
@SamiKuhmonen: Asılı .. Vakum hakkında bilmiyorum. –