ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vamsee Kanakala <vamli...@gmail.com>
Subject Re: Result map problems...
Date Tue, 12 Jul 2005 14:38:36 GMT
Larry Meadors wrote:

>Use t his instead:
>
><select 
>  id="searchAssets" 
>  parameterClass="com.mafoi.assetregister.core.Search"
>  resultClass="java.util.HashMap"
>  remapResults="true">
>
>My guess is that your tests are reloading the sql map each tim, so the
>results are being mapped each time. In your app, that is not the case.
>Adding remapResults="true" will make it so.
>
>Be aware that this could cause a noticable performance degradation. If
>this query needs to run fast, find a way to make it return the same
>results (into a bean) every time you run it.
>  
>
Yes, I have made some changes to the query to return the same results. 
It was only one property so it wasn't too much of a problem. Thanks a lot!


Regards,
Vamsee.






Mime
View raw message