Doctrine 1
  1. Doctrine 1
  2. DC-796

Correct way to count all files from a table ?

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.2.2
    • Fix Version/s: None
    • Component/s: Query
    • Labels:
      None
    • Environment:
      Debian Lenny / MySQL 5.1

      Description

      If I execute this to get the amount of records in a table I get the correct result, but it takes too long and consumes a lot of resources as if I get all the fields from table:

      Doctrine::getTable('Recurso')>findAll()>count();

      Am I doing it wrong?, The only other option I've found is to use DSQL and execute a query like "SELECT count from recurso".

      Thank you in advance.

      Pablo.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Pablo Mateos
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: