Re: Loading small tables into memory for the application lifetime

From: Michael Gentry (blacknex..mail.com)
Date: Mon Jun 30 2008 - 11:11:47 EDT

  • Next message: Mike Kienenberger: "Re: Loading small tables into memory for the application lifetime"

    OK, thanks. I wasn't certain of that by any means and am too buried
    in other stuff to look it up.

    The pattern of using a dedicated DataContext for the small/cached
    tables and using localObject to make joins to them would still apply,
    though.

    mrg

    On Mon, Jun 30, 2008 at 10:49 AM, Andrus Adamchik
    <andru..bjectstyle.org> wrote:
    >
    > On Jun 30, 2008, at 5:45 PM, Michael Gentry wrote:
    >
    >> I think in Cayenne 3 that it'll automatically pull an object
    >> into the DataContext if it exists in another DataContext.
    >
    > Not true. (well only true for transient unregistered objects). Generally you
    > still need to use 'localObject'.
    >
    > Andrus
    >
    >



    This archive was generated by hypermail 2.0.0 : Mon Jun 30 2008 - 11:12:19 EDT