emacarron / mybatis

Automatically exported from code.google.com/p/mybatis
0 stars 0 forks source link

Provide default caching setting for the entire mapper #159

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the MyBatis are you using?
3.0.2

Please describe the problem.  Unit tests are best!
It is very nasty to have all select statements being cached as a default as 
soon as you define a cache in the mapper file. That can create awful problems. 
In most cases I tend to have probably 10% if not less of the statements being 
cached.

What is the expected output? What do you see instead?

Please provide any additional information below.
You might want to add a big warning note on the cache section about all the 
select statements being cached. It is already mentioned, but that ought to be a 
BIG WARNING. 

Original issue reported on code.google.com by sbaill...@gmail.com on 23 Oct 2010 at 9:57

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Already mentioned in doc.

Original comment by eduardo.macarron on 8 Jan 2012 at 7:36