Re: Caching; how do I know it's working?

2005-09-25 Thread Ron Grabowski
IBatisNet has a GetDataCacheStats method on the main sqlMapper object that outputs a simple summary of statements and their cache hit ratio: User.GetMany: 51% User.GetOneById: 20% User.GetManyById: No cache. ... Maybe this is a feature that the Java people would find useful. --- Michael Camp

Re: Caching; how do I know it's working?

2005-09-25 Thread Larry Meadors
Nope. On 9/25/05, Michael Campbell <[EMAIL PROTECTED]> wrote: > Is a cache hit/miss logged? I've run a test of running the same > select in a loop, and my ibatis log4j output shows n copies of the > prepared statement, result set operations happening. > > Is the logging supposed to distinguish be

Re: caching... per "select"?

2005-09-25 Thread Larry Meadors
Caching in iBATIS is based on the statement and the parameters passed to it. So, if you execute "select * from Account where id = ?" three times, with 3 different id parameters, you'll get 3 cache entries. If you execute "select * from Account where name = ?" with the name of one of those three, y

Caching; how do I know it's working?

2005-09-25 Thread Michael Campbell
Is a cache hit/miss logged? I've run a test of running the same select in a loop, and my ibatis log4j output shows n copies of the prepared statement, result set operations happening. Is the logging supposed to distinguish between a cache hit and a real db call? -- I tend to view "truly flexible

how can i use previous version datasource-type setting

2005-09-25 Thread kiyool yoon
hi~   I'm using iBATIS_DBL-2.0.8.470this version can use following property setting     //here ... why can't use new version??                  but when i upgrade version iBATIS_DBL-2.1.5.582  i can't use this property setting.  i must use dynamic data-souce-type re

caching... per "select"?

2005-09-25 Thread Michael Campbell
Setting up caching in iBATIS seems frighteningly easy, so I'm anxious to try it. Can anyone give me any idea of what GETS cached; it seems to be per statement/select. Can I assume that when some class is listed in the parameterClass, that's part of the key? Is it the entire thing, or just the att

Re: Hibernate integration

2005-09-25 Thread Larry Meadors
The Hibernate "integration" is in the DAO layer, not in SQL Maps. So, it allows you to insulate your application from any APIs specific to Hibernate. It does not make it possible to use both at the same time (something I have done in the past, and would advise against). Larry On 9/24/05, Michae