launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #06551
Re: performance tuesday - Reference vs Int columns
-
To:
Launchpad Community Development Team <launchpad-dev@xxxxxxxxxxxxxxxxxxx>
-
From:
Julian Edwards <julian.edwards@xxxxxxxxxxxxx>
-
Date:
Wed, 23 Feb 2011 11:20:51 +0000
-
In-reply-to:
<AANLkTikMfwkJKTeaaLH_e9msMqtJhF9aDkTQ=3cH=47k@mail.gmail.com>
-
Organization:
Canonical Ltd
-
User-agent:
KMail/1.13.5 (Linux/2.6.35-25-generic; KDE/4.5.1; x86_64; ; )
On Tuesday 22 February 2011 22:50:11 Robert Collins wrote:
> Todays note about performance is a note about some storm/sqlobject glue.
>
> Code like this:
> ...
> if bugtask.distribution is None:
> ...
>
> is probably wrong: it should be
>
> ...
> if bugtask.distributionID is None:
> ...
I did read below but I'm not sure of the significance (if any) of this being
an SQLObject-style model class.
Does the same thing happen with Storm-style ones, and we'd need to reference
bugtask.distribution_id ?
While I'm thinking about it, why do we have this inconsistency between
field_id and fieldID for Storm vs SQLObject?
And finally, DEATH to SQLObject classes.
Follow ups
References