Re: Efficiently finding elements with 0 has_many elements?

[prev] [thread] [next] [Date index for 2005/04/22]

From: David Glasser
Subject: Re: Efficiently finding elements with 0 has_many elements?
Date: 14:57 on 22 Apr 2005
On 4/22/05, Michael Peters <mpeters@xxxxxxxxx.xxx> wrote:
> dglasser@xxxxx.xxx wrote:
> One of the nicest things about C::D is that when you try to do something
> that isn't necessarily built-in or efficient to do in Perl, you can
> always have the database do it.
>=20
> Something like this should work for you (depending on how you've named
> your columns):
>=20
> __PACKAGE__->add_constructor(
>     retrieve_all_no_data =3D> 'item.data IS NULL'
> );

Hmm. So I bet it'll still be something along the lines of that, but
the issue is that my Item doesn't have a data column -- it's a
has_many, and the Data have item columns.  Can something like this
still work?

--dave

--=20
David Glasser | glasser@xxx.xxx | http://www.davidglasser.net/

Re: Efficiently finding elements with 0 has_many elements?
David Glasser 14:57 on 22 Apr 2005

Generated at 09:29 on 27 Apr 2005 by mariachi v0.52