[TYPO3-mvc] Counting in query

Jochen Rau jochen.rau at typoplanet.de
Wed Oct 14 10:37:29 CEST 2009


Hi.

I have opened an issue for that:

http://forge.typo3.org/issues/show/4991

Any suggestions how to implement this?

Regards
Jochen

Sebastian Fischer wrote:
> Hi Everyone,
>
> how do i count results without really fetching the objects.
>
> Currently i do the following:
>
> function findAllCount() {
> $query = createQuery;
> $videos = $query->execute();
>
> return count($videos);
> }
>
> That's total foolish if you imagine 14000 objects. But i don't see how
> to do it in another way.
>
>
> Greetings
> Sebastian

-- 
Every nit picked is a bug fixed



More information about the TYPO3-project-typo3v4mvc mailing list