ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clinton Begin" <clinton.be...@gmail.com>
Subject Re: Just curious...how 'much' worse is performance if just maps
Date Sun, 16 Nov 2008 14:23:30 GMT
If  you measure it in milliseconds over hundreds of thousands of calls, it's
technically far worse.  But practically speaking, your users probably
wouldn't notice in a million years. :-)


On Sat, Nov 15, 2008 at 9:06 AM, Rick <rickcr@gmail.com> wrote:

> I'm starting this conversion of an existing hibernate app over to
> iBATIS. The app is 95% reads (the resulting objects eventually get
> massaged into XML trees for a gui to use.) As I'm looking at these
> models, the entity properties are currently set to match the exact db
> column names. I'm debating about returning Lists of Maps. I know
> performance will be worse populating Maps vs pojos... but I'm curious
> 'how much worse' are we talking about? Has anyone done some crude
> benchmarking?
> I probably won't use maps though because I don't like the
> error-proneness of getting the property values by key name (getXXX is
> easier than having to keep the datamodel open and remembering the
> exact column name, and ooops someone forgot a unit test.)
> --
> Rick

View raw message