[support] Counting the number of node created by user, Views only

Lluís Forns enboig at gmail.com
Wed Dec 22 18:48:32 UTC 2010


Suppose you want to make a "ranking" of contributors, being able to
sort them. search by name, etc...

I think the best way is using Views GroupBy  module, using PHP won't
allow you to sort the results.

If performance is important, you could cache the results in a table
using cron and just show them when needed.

2010/12/22 Pierre Rineau <pierre.rineau at makina-corpus.com>:
> Le mercredi 22 décembre 2010 à 09:23 +0100, Denis Lafont-Trevisan a
> écrit :
>> Hi,
>>
>>
>> Sounds stupid but I can't manage to create a view that count the
>> number of node of a certain type each user created.
>
> What are you really trying to do? This sounds quite stupid to use views
> only to count something. Are you really willing to consume 10M of memory
> and 100ms of execution time to only do a COUNT query?
>
> Pierre.
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]



-- 
*Les normes hi són perquè hi pensis abans de saltar-te-les
*La vida és com una taronja, què esperes a exprimir-la?
*Si creus que l'educació és cara, prova la ignorància.
*La vida és com una moneda, la pots gastar en el que vulguis però
només una vegada.
*Abans d'imprimir aquest missatge, pensa en el medi ambient.


More information about the support mailing list