I want to count all the records of a table using Doctrine ORM and I want it done in the fastest way possible.
I don’t need the individual records of the table. I just need the total number of records in the table.
Is there a particular method that will give me the most ramming speed in terms of performance?
The fastest is likely to bypass Doctrine and use raw SQL, but you can do:
Also see: