Re: Record counts...

From: Mike Kienenberger (mkienen..laska.net)
Date: Tue Jun 14 2005 - 15:53:58 EDT

  • Next message: Cheryl Norsworthy: "Re: problem deploying cayenne-web app tutorial on sun app server"

    Nick Stuart <nicholas.stuar..mail.com> wrote:
    > This should be an easy one. I basically just want to find out how many
    > objects of a certain type there are. Easy to do with a SelectQuery and
    > user List.size() but does the cause any kind of performance issues?
    > Just thinking if these objects have child objects, which has more
    > child objects, will it pull all those when I Select the parent?

    If you only want the count and don't want to load any objects, just use
    SQLTemplate.

    http://www.objectstyle.org/cayenne/userguide/fetch/sqltemplate.html



    This archive was generated by hypermail 2.0.0 : Tue Jun 14 2005 - 15:51:25 EDT