launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #07036
Re: Block the use of non-cached References on model objects
On Thu, May 5, 2011 at 7:15 AM, Jamu Kakar <jkakar@xxxxxxxx> wrote:
> Hi,
>
> On Wed, May 4, 2011 at 7:51 PM, Robert Collins
> <robertc@xxxxxxxxxxxxxxxxx> wrote:
>> I love this - woo. In my sketch for a persistence layer I describe not
>> doing any DB lookups after initial model loading - this fits right
>> into that theme.
>
> I wonder if this kind of complexity is really necessary (long term)
> given that we have a Store.block_access method? When block_access is
> called any access to the underlying connection will result in a
> ConnectionBlockedError being raised. Anyway, just a thought.
Because you can in a page that is reference-free block references at
the start of the view, and still query throughout the page
successfully. store blocking does not permit that.
-Rob
References