MySQL Forums
Forum List  »  Turkish

count(*) filesort temprory table için indexleme nasıl olmalı
Posted by: Erhan Koçlar
Date: September 15, 2014 03:48AM

herkese selamlar..

elimde kişilerin olduğu bir tablo var. Bu tabloda kişileri yaşadıkları mahallelere göre gruplayıp sıralamak istiyorum.(burada sadece COUNT(*) olayında performansın nasıl arttırılabileceğini öğrenmek istiyorum. O yüzden böyle basit bir örnek verdim...)

SELECT count(ID) as nufus FROM kisiler GROUP BY mahalle ORDER BY nufus DESC

şimdi yukarıdaki gibi bir sorgu için filesort-temprory table olayını kaldırmak mümkün mü? Nasıl bir indexleme yapmalıyım?

Options: ReplyQuote


Subject
Views
Written By
Posted
count(*) filesort temprory table için indexleme nasıl olmalı
3211
September 15, 2014 03:48AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.