Return-Path: Delivered-To: apmail-db-ojb-user-archive@www.apache.org Received: (qmail 26238 invoked from network); 7 Feb 2008 09:23:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Feb 2008 09:23:04 -0000 Received: (qmail 42009 invoked by uid 500); 7 Feb 2008 09:22:55 -0000 Delivered-To: apmail-db-ojb-user-archive@db.apache.org Received: (qmail 41992 invoked by uid 500); 7 Feb 2008 09:22:55 -0000 Mailing-List: contact ojb-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "OJB Users List" Reply-To: "OJB Users List" Delivered-To: mailing list ojb-user@db.apache.org Received: (qmail 41981 invoked by uid 99); 7 Feb 2008 09:22:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 01:22:55 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gcjou-ojb-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 09:22:39 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JN2xi-0007mI-9t for ojb-user@db.apache.org; Thu, 07 Feb 2008 09:22:30 +0000 Received: from p5b21465c.dip0.t-ipconnect.de ([91.33.70.92]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Feb 2008 09:22:30 +0000 Received: from t.schoellhorn by p5b21465c.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Feb 2008 09:22:30 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: ojb-user@db.apache.org From: =?ISO-8859-15?Q?Tino_Sch=F6llhorn?= Subject: Re: Optimizing object materialization for 1:N relations Date: Thu, 07 Feb 2008 10:22:01 +0100 Lines: 54 Message-ID: References: <47AA5995.9070700@apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p5b21465c.dip0.t-ipconnect.de User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: <47AA5995.9070700@apache.org> Sender: news X-Virus-Checked: Checked by ClamAV on apache.org Hi Armin, thanks for your reply. Do you think it would be worth a try to materialize our objects with pure SQL - but after initializing them to work with them with OJB? Thanks for your opinion. Regards Tino Armin Waibel schrieb: > Hi Tino, > > Tino Sch�llhorn wrote: >> Hi, >> >> we are using OJB-1.0.1 and evertything works fine. Now I have the >> following situation: >> >> We have a security-mechanism which uses the classes ACL >> (AccessControlList) and ACLEntry. One ACL has many ACLEntries. Now >> when using the standard OJB-Materialization methods OJB uses 2 SQLs to >> materialize on ACL. One for the ACL and one for the ACLEntry. >> >> Because we have MANY of those ACLs I am curious if it is possible to >> overwrite the materialization-method so that just one SQL is used. I >> thought about using "Prefeteched Relationships" but I noticed that >> there are also 2 SQLs. > > The "Prefeteched Relationships" is useful if you search for more than > one ACL, then OJB is able to reduce the queries to read the ACLEntries: > http://db.apache.org/ojb/docu/guides/query.html#prefetched+relationships > The upcoming version 1.0.5 use "Prefeteched Relationships" for all 1:n > relations. > >> >> Any ideas or even example how I could achieve that? >> > > Sorry no. > > regards, > Armin > >> Kind regards >> Tino >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org >> For additional commands, e-mail: ojb-user-help@db.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org For additional commands, e-mail: ojb-user-help@db.apache.org