He&#39;s counting, there are no results to count<br><br><div class="gmail_quote">On Wed, Dec 22, 2010 at 3:48 PM, Lluís Forns <span dir="ltr">&lt;<a href="mailto:enboig@gmail.com">enboig@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Suppose you want to make a &quot;ranking&quot; of contributors, being able to<br>
sort them. search by name, etc...<br>
<br>
I think the best way is using Views GroupBy  module, using PHP won&#39;t<br>
allow you to sort the results.<br>
<br>
If performance is important, you could cache the results in a table<br>
using cron and just show them when needed.<br>
<br>
2010/12/22 Pierre Rineau &lt;<a href="mailto:pierre.rineau@makina-corpus.com">pierre.rineau@makina-corpus.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Le mercredi 22 décembre 2010 à 09:23 +0100, Denis Lafont-Trevisan a<br>
&gt; écrit :<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Sounds stupid but I can&#39;t manage to create a view that count the<br>
&gt;&gt; number of node of a certain type each user created.<br>
&gt;<br>
&gt; What are you really trying to do? This sounds quite stupid to use views<br>
&gt; only to count something. Are you really willing to consume 10M of memory<br>
&gt; and 100ms of execution time to only do a COUNT query?<br>
&gt;<br>
&gt; Pierre.<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
*Les normes hi són perquè hi pensis abans de saltar-te-les<br>
*La vida és com una taronja, què esperes a exprimir-la?<br>
*Si creus que l&#39;educació és cara, prova la ignorància.<br>
*La vida és com una moneda, la pots gastar en el que vulguis però<br>
només una vegada.<br>
*Abans d&#39;imprimir aquest missatge, pensa en el medi ambient.<br>
</font><div><div></div><div class="h5">--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</div></div></blockquote></div><br>