Quote from: BobRay at Dec 19, 2014, 02:12 PMThat's really nice Bruno. It should be much faster than my version since yours will make one query to the DB and mine will make one for each user.
I was considering doing something similar with getCollectionGraph() but was too lazy to work it out. 
I think so. I'm using
if ($c->stmt->execute()) {
if (!$rows = $c->stmt->fetchAll(PDO::FETCH_ASSOC)) {
$rows = array();
}
}
internally to get the results, which should also make it a bit faster than getCollection or getCollectionGraph