Re: N+1 Selects Outer Join Null Handling Question

2009-01-06 Thread Hugh Ross
Butler wrote: > > See here: > > > > http://issues.apache.org/jira/browse/IBATIS-375 > > > > Looks like a fix for this is in 2.3.4. > > > > Jeff butler > > > > > > On Tue, Jan 6, 2009 at 3:42 PM, Hugh Ross wrote: > >> > >

Re: N+1 Selects Outer Join Null Handling Question

2009-01-06 Thread Guilherme Luis Bradasch
ike a fix for this is in 2.3.4. > > Jeff butler > > > On Tue, Jan 6, 2009 at 3:42 PM, Hugh Ross wrote: >> >> We are testing some sqlMaps to avoid the N+1 Selects problem that include >> OUTER JOINs. Since nulls are coming back in the Result Sets, we are seeing >> po

Re: N+1 Selects Outer Join Null Handling Question

2009-01-06 Thread Jeff Butler
See here: http://issues.apache.org/jira/browse/IBATIS-375 Looks like a fix for this is in 2.3.4. Jeff butler On Tue, Jan 6, 2009 at 3:42 PM, Hugh Ross wrote: > > We are testing some sqlMaps to avoid the N+1 Selects problem that include > OUTER JOINs. Since nulls are coming ba

N+1 Selects Outer Join Null Handling Question

2009-01-06 Thread Hugh Ross
We are testing some sqlMaps to avoid the N+1 Selects problem that include OUTER JOINs. Since nulls are coming back in the Result Sets, we are seeing pojos created with all nulls. Testing with iBatis 2.3.4. I don't recall seeing this problem mentioned before, but I can't believe no on

Re: Duplicates when trying to avoid N+1 selects

2008-07-11 Thread Heinrich Götzger
Haha, problems are repeating ;-). If I get this right, we just had this 2 days ago, had we not? Take a look in this thread: http://www.nabble.com/Having-two-N-plus-1-groups-p18361780.html I'll go with RowHandler and check if it works with collection-types somehow. Cheers Heinrich mailjoe wro

Re: Duplicates when trying to avoid N+1 selects

2008-07-11 Thread mailjoe
Good point Larry! My domain objects look like this: Restaurant --> waitersTeam --> John, Tim, Cindy --> managersTeam --> Mary, Steven I have SQL Maps for both the waitersTeam and the managersTeam. Now, I want to fetch Restaurant objects with a single query based on INNER JOIN. T

Re: Duplicates when trying to avoid N+1 selects

2008-07-11 Thread Larry Meadors
FWIW, I got as far as "COMPLEX", "A_GROUP", and "B_GROUP" before I stopped reading. ;-) I'm not saying no one else will read or answer you, just that I think if you can make this a more concrete example, instead of a tuple calculus exercise, then you might get more (and better) responses. Larry

Duplicates when trying to avoid N+1 selects

2008-07-11 Thread mailjoe
Hi, We have a ComplexObject made of one instance of aGroup and one instance of bGroup. The aGroup is made of a collection of A instances. The bGroup is made of a colleciton of B instances. We have one SQL Map for aGroup, and another one for bGroup. If aGroup contains m A's and bGroup contains n

RE: n+1 selects and queryForMap

2008-04-03 Thread Danny Lin
: n+1 selects and queryForMap Hello, I have an object with a property that is a HashMap of name/value pairs from a separate data table. If one of my properties on the 'food' class is a hashmap, I'm assuming I can create that hashmap using the following sql mapping correct? Is

n+1 selects and queryForMap

2008-04-03 Thread Danny Lin
Hello, I have an object with a property that is a HashMap of name/value pairs from a separate data table. If one of my properties on the 'food' class is a hashmap, I'm assuming I can create that hashmap using the following sql mapping correct? Is it possible to avoid the n+1 select issue and so

RE: Newbie tries to solve the N+1 selects problem and cries for help

2007-12-13 Thread Brian Parkinson
Subject: RE: Newbie tries to solve the N+1 selects problem and cries for help In this case, you have to implement a row handler. Christian From: Brian Parkinson [mailto:[EMAIL PROTECTED] Sent: Thursday, December 13, 2007 12:14 PM To: user-java

RE: Newbie tries to solve the N+1 selects problem and cries for help

2007-12-13 Thread Poitras Christian
In this case, you have to implement a row handler. Christian From: Brian Parkinson [mailto:[EMAIL PROTECTED] Sent: Thursday, December 13, 2007 12:14 PM To: user-java@ibatis.apache.org Subject: Newbie tries to solve the N+1 selects problem and cries for help

Newbie tries to solve the N+1 selects problem and cries for help

2007-12-13 Thread Brian Parkinson
Hello: I am having a problem with the ol' N+1 selects problem - wondering if someone can help. I have a Status object, which contains a list of StatusEquipment objects, as well as a list of StatusZone objects. I want, in one select statement, to retrieve the one Status object, and pop

Re: Problem trying to avoid N+1 selects

2007-05-16 Thread Larry Meadors
Well, if you want to hire me to fix it, I'll add you to my client list and get you on the schedule. If it doesn't annoy anyone that much, we'll have to wait for someone who needs it bad enough to fix it. :-D Larry On 5/16/07, Stefan Langer <[EMAIL PROTECTED]> wrote: Larry Meadors schrieb: > O

Re: Problem trying to avoid N+1 selects

2007-05-16 Thread Carlos Botto
Thanks for your help, the problem was with the null values in the left join. Carlos On 5/16/07, Stefan Langer <[EMAIL PROTECTED]> wrote: Larry Meadors schrieb: > On 5/16/07, Stefan Langer <[EMAIL PROTECTED]> wrote: >> See issue https://issues.apache.org/jira/browse/IBATIS-375 and please >> v

Re: Problem trying to avoid N+1 selects

2007-05-16 Thread Stefan Langer
Larry Meadors schrieb: On 5/16/07, Stefan Langer <[EMAIL PROTECTED]> wrote: See issue https://issues.apache.org/jira/browse/IBATIS-375 and please vote for it if you find it annoying. ...or even better, get the code from SVN and attach a patch. :) Larry If I could find the time I would go for

Re: Problem trying to avoid N+1 selects

2007-05-16 Thread Larry Meadors
On 5/16/07, Stefan Langer <[EMAIL PROTECTED]> wrote: See issue https://issues.apache.org/jira/browse/IBATIS-375 and please vote for it if you find it annoying. ...or even better, get the code from SVN and attach a patch. :) Larry

Re: Problem trying to avoid N+1 selects

2007-05-16 Thread Stefan Langer
Not sure it is related to your issue but be aware that when you do a left outer join and you have no results for the left join you will still receive a row containing only nulls for your left joined object. IBatis will try to fill up your object with these null values. If your code for some rea

Problem trying to avoid N+1 selects

2007-05-15 Thread Carlos Botto
Hi all, I'm new to iBatis and I'm coverting the existing code to implement iBatis, so sorry in advance if my questions are too simple. I have a problem trying to avoid the n+1 selects. The following Application.xml

Re: Avoiding N+1 Selects

2007-03-02 Thread Larry Meadors
te: > > > > > I guess I'll have to take a different approach. The depth isn't set to be a defined level; so if I go more than two levels below the grandparent, it won't work. > > > > > > > > > > > > > > > > > > > &

Re: Avoiding N+1 Selects

2007-02-28 Thread Brad Handy
on properties using the resultMap > > > > > attribute. > > > > > > > > > > > > > > > > > > > > ... > > > > > > > > > > > > > > > ... > > > > &g

Re: Avoiding N+1 Selects

2007-02-22 Thread Brad Handy
> > > > > > > > > > > > ... > > > > > > > > > > > > ... > > > > > > > > ... > > > > > > > > The select statement should join the tables together and you may > >

Re: Avoiding N+1 Selects

2007-02-20 Thread Brad Handy
> > > ... > > > > > > ... > > > > > > The select statement should join the tables together and you may > > > need to be very explicit with the column names. > > > > > > Clinton > > > > > > On 2/19

Re: Avoiding N+1 Selects

2007-02-20 Thread Brandon Goodin
gt; > > > > > > ... > > > > > > > > ... > > > > > > > > The select statement should join the tables together and you may > > > > need to be very explicit with the column names. > > > > > > > > Clinton &g

Re: Avoiding N+1 Selects

2007-02-20 Thread Brad Handy
t; > > > > > ... > > > > > > ... > > > > > > The select statement should join the tables together and you may > > > need to be very explicit with the column names. > > > > > > Clinton > > > > > > On 2

RE: Avoiding N+1 Selects

2007-02-20 Thread Abdullah Kauchali
:11 AM To: user-java@ibatis.apache.org Subject: Avoiding N+1 Selects I have a table which has all of the parent/child relationships in the same table. I would like to avoid the N+1 selects with this construct, but it's unclear from the documentation if

Re: Avoiding N+1 Selects

2007-02-19 Thread Clinton Begin
. > > > > > > ... > > > > > > ... > > > > ... > > > > The select statement should join the tables together and you may need > > to be very explicit with the column names. > > > > Clinton > > > > On 2/

Re: Avoiding N+1 Selects

2007-02-19 Thread Larry Meadors
; > The select statement should join the tables together and you may need to be very explicit with the column names. > > Clinton > > > > On 2/19/07, Brad Handy <[EMAIL PROTECTED]> wrote: > > I have a table which has all of the parent/child relationships in the same ta

RE: Avoiding N+1 Selects

2007-02-19 Thread Chris Lamey
ers. If your DB has that kind of thing, you could use it and a row handler to pull the results into what you need. -Original Message- From: Brad Handy [mailto:[EMAIL PROTECTED] Sent: Mon 2/19/2007 8:17 PM To: user-java@ibatis.apache.org Subject: Re: Avoiding N+1 Selects I guess I'll

Re: Avoiding N+1 Selects

2007-02-19 Thread Clinton Begin
The select statement should join the tables together and you may need to > be very explicit with the column names. > > Clinton > > On 2/19/07, Brad Handy <[EMAIL PROTECTED]> wrote: > > > > I have a table which has all of the parent/child relationships in the > > s

Re: Avoiding N+1 Selects

2007-02-19 Thread Brad Handy
te: > > I have a table which has all of the parent/child relationships in the > same table. I would like to avoid the N+1 selects with this construct, but > it's unclear from the documentation if this can be done. > > Let's say I have the following relationships defined

Re: Avoiding N+1 Selects

2007-02-19 Thread Clinton Begin
n On 2/19/07, Brad Handy <[EMAIL PROTECTED]> wrote: I have a table which has all of the parent/child relationships in the same table. I would like to avoid the N+1 selects with this construct, but it's unclear from the documentation if this can be done. Let's say I have the fo

Avoiding N+1 Selects

2007-02-19 Thread Brad Handy
I have a table which has all of the parent/child relationships in the same table. I would like to avoid the N+1 selects with this construct, but it's unclear from the documentation if this can be done. Let's say I have the following relationships defined in the table: Grand Parent

Re: Avoiding N+1 Selects(1:M and M:N) with iBATIS version 2.1.7

2006-11-09 Thread Minjae Kim
r-java@ibatis.apache.org cc Please respond to [EMAIL PROTECTED] Subject apache.org Avoiding N+1 Selects(1:M and M:N)

Re: Avoiding N+1 Selects(1:M and M:N) with iBATIS version 2.1.7

2006-11-09 Thread proge . allievi
Avoiding N+1 Selects(1:M and M:N) with iBATIS version 2.1.7

Avoiding N+1 Selects(1:M and M:N) with iBATIS version 2.1.7

2006-11-08 Thread Minjae Kim
I read the explanation about Avoiding N+1 Selects(1:M and M:N) with 2.2.0, but the version I am using now is 2.1.7. Is there way I can do this job like 2.2.0 by using 2.1.7? Make sense? English is not my native language, so please understand me. ^___^ ... select

Re: N+1 selects resultMap list is not serializable

2006-01-13 Thread Perry Nguyen
EMAIL PROTECTED]> wrote: I'm having a problem with a simple N+1 selects problem. I have some objects akin to: Product implements Serializable { List attributes; String id; } Attributes { String name; String value; } and I do something along the lines of W

Re: N+1 selects resultMap list is not serializable

2006-01-13 Thread Larry Meadors
Because whe you serialize Product, the list of Attribute objects cannot be serialized, so...kaboom. Make Attribute serializable, and it'll work. Larry On 1/13/06, Perry Nguyen <[EMAIL PROTECTED]> wrote: > I'm having a problem with a simple N+1 selects problem. > > I

N+1 selects resultMap list is not serializable

2006-01-13 Thread Perry Nguyen
I'm having a problem with a simple N+1 selects problem. I have some objects akin to: Product implements Serializable { List attributes; String id; } Attributes { String name; String value; } and I do something along the lines of When I go to Serialize Product, I end up

Re: N+ 1 selects

2005-09-30 Thread Larry Meadors
ect, I will be very appreciate. > > Thanks, > > John Chien > > > Clinton Begin wrote: > Looks to me like you're: > > 1) Using an older version of iBATIS or at least an incorrect DTD reference > that does not support [EMAIL PROTECTED] > 2) You're us

Re: N+ 1 selects

2005-09-30 Thread John Chien
Clinton Begin wrote: Looks to me like you're: 1) Using an older version of iBATIS or at least an incorrect DTD reference that does not support [EMAIL PROTECTED] 2) You're using half of the N+1 selects solutionwhich will not do much for you.  Perhaps ignore this problem for now, a

Re: N+ 1 selects

2005-09-30 Thread Clinton Begin
Looks to me like you're: 1) Using an older version of iBATIS or at least an incorrect DTD reference that does not support [EMAIL PROTECTED] 2) You're using half of the N+1 selects solutionwhich will not do much for you.  Perhaps ignore this problem for now, and instead state exact

Re: N+ 1 selects

2005-09-29 Thread John Chien
Jean: Thank you for your response. That's my fault. My intention actually is not tries to do the N+1 selects, but have returned result putting into a bean. This bean will be used as a property of another bean. I do not know if my way of doing it is correct or not. Somehow it does not

RE: N+ 1 selects

2005-09-28 Thread Jean-Francois Poilpret
hn Chien [mailto:[EMAIL PROTECTED] Sent: Thursday, September 29, 2005 3:27 AM To: user-java@ibatis.apache.org Subject: N+ 1 selects Dear Sir: I follow the FAQ to fix the N+1 selects, However, I continue get the compilation error. My xml looks like:

Re: N+ 1 selects

2005-09-28 Thread Larry Meadors
Give us a stack trace, too, please. Larry On 9/28/05, John Chien <[EMAIL PROTECTED]> wrote: > Dear Sir: > > I follow the FAQ to fix the N+1 selects, However, I continue get the > compilation error. > My xml looks like: > > > > PUBLIC "-//iBATIS

N+ 1 selects

2005-09-28 Thread John Chien
Dear Sir: I follow the FAQ to fix the N+1 selects, However, I continue get the compilation error. My xml looks like: http://www.ibatis.com/dtd/sql-map-2.dtd";> type="us.nc.state.enr.bets.util.EhsInspectorBean"/> type="us.nc.state.enr.bets.finder.Common

Avoiding N+1 selects

2005-07-03 Thread Darek Dober
Hi According to the documentation it is possible to ommit N+1 selects using i.e: What if category has several attributes, I wouldn't like to recopy them to other resultMap. Adding new attributes, requires to place it in two or more resultMaps. I would like just to reuse categoryMap

Re: Avoiding N+1 selects with more complex graphs

2005-06-23 Thread Aaron Craven
gt; > >> >On 6/22/05, Aaron Craven <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> I cannot decide if I've missed something in the documentation, or if I'm >> >> just plain old confused, but either way I need some help. With iB

Re: Avoiding N+1 selects with more complex graphs

2005-06-23 Thread Larry Meadors
aven <[EMAIL PROTECTED]> wrote: > >> > >> > >> I cannot decide if I've missed something in the documentation, or if I'm > >> just plain old confused, but either way I need some help. With iBATIS 2, I > >> realize the N+1 selects problem ha

Re: Avoiding N+1 selects with more complex graphs

2005-06-23 Thread Aaron Craven
n > > >On 6/22/05, Aaron Craven <[EMAIL PROTECTED]> wrote: >> >> >> I cannot decide if I've missed something in the documentation, or if I'm >> just plain old confused, but either way I need some help. With iBATIS 2, I >> realize the N+1 selects problem

Re: Avoiding N+1 selects with more complex graphs

2005-06-22 Thread Clinton Begin
AIL PROTECTED]> wrote: I cannot decide if I've missed something in the documentation, or if I'm just plain old confused, but either way I need some help.  With iBATIS 2, I realize the N+1 selects problem has been solved by the addition of the groupBy property.  However, I'm a bit c

Re: Avoiding N+1 selects with more complex graphs

2005-06-22 Thread Aaron Craven
n the documentation, or if I'm >> just plain old confused, but either way I need some help. With iBATIS 2, I >> realize the N+1 selects problem has been solved by the addition of the >> groupBy property. However, I'm a bit confused as to how this would be done >

Re: Avoiding N+1 selects with more complex graphs

2005-06-22 Thread Larry Meadors
cide if I've missed something in the documentation, or if I'm just > plain old confused, but either way I need some help. With iBATIS 2, I > realize the N+1 selects problem has been solved by the addition of the > groupBy property. However, I'm a bit confused as to how this w

Avoiding N+1 selects with more complex graphs

2005-06-22 Thread Aaron Craven
I cannot decide if I’ve missed something in the documentation, or if I’m just plain old confused, but either way I need some help. With iBATIS 2, I realize the N+1 selects problem has been solved by the addition of the groupBy property. However, I’m a bit confused as to how this would be