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@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/ ]