[hibernate-issues] [Hibernate-JIRA] Created: (EJB-412) Constant expresion in select count phrase

Maciej Szulik (JIRA) noreply at atlassian.com
Thu Feb 5 08:47:38 EST 2009


Constant expresion in select count phrase
-----------------------------------------

                 Key: EJB-412
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB-412
             Project: Hibernate Entity Manager
          Issue Type: Bug
    Affects Versions: 3.3.1.GA
            Reporter: Maciej Szulik


I found that using constant expression in select count phrase is illegal.

>From DB point of view using
select count(1) from ...

is much more efficient than
select count(field) from ...


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list