[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [eclipselink-users] Mapping Question
|
- From: Roger <roger.varley@xxxxxxxxxxxxxx>
- Date: Thu, 24 Sep 2009 21:35:25 +0300
- Delivered-to: eclipselink-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=QRFblKpVP7iOA8rZuwEBXxICuGnTmWfkS4RwB9jlGQE=; b=WVVtk3Wp6ujV60j0b7Ft/VElt+pUmZNT1YmI4J6sRYh0OQVobERLU9BIK870Vm/Ez6 jcqvAJ/g7RfNfjjzeln+MqEqiXkr+j6iaF+qw8nK/jA5GMq3wFaAODRzmC0H4eWcIwW/ 9N017kAvY3LXxHs2l/qh+Kb3g7o8tDzkm4h3M=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=o8BurfMiDtaQFTpyKJ7Ej4hNYdHnVifRmVYYIlnB8pYgmN3KmftRBf0yptKNEgXG1d 99uM11voZLoxkMDzJxw5HhrLG7ILIiauytK3FdPuN0FakwHQi+M+Wvf4wNizLkpMuEtw dUZ1YqjK3+OLoZYY6cw28Jr4+iLG5P01bHDCg=
- User-agent: KMail/1.10.3 (Linux/2.6.27.29-0.1-pae; KDE/4.3.1; i686; ; )
On Thursday 24 September 2009 19:57:58 christopher delahunt wrote:
>
> Other than increasing the memory and the heap, you can make some of the
> backward relationships also lazy - specifically the ManyToOne back
> pointers. This will prevent the entire tree from being inadvertently
> brought into memory when not needed.
Is there a different annotation needed on the @OneToMany backpointer as I have
already tried that. and EclipseLInk still walked back up the tree.
> You can also look at where a
> relationship is not strictly needed and unmap them - bringing them in
> using a query instead when they are needed. For instance, in a
> ManyToMany, it may not be necessary to have both sides mapped if the
> application will only ever us it from one side.
>
That looks like the quickest solution. I will try that in the morning
temporarily to get my job done, but I would like to get to the bottom of
what's going on and to be able to have some degree of control over back-
walking - if it's possible.
Regards