Open GoogleCodeExporter opened 9 years ago
Yes, that is not a bug. MyBatis 3.2.0 enables using xml syntax in Annotated
Mappers so it takes longer to startup.
Original comment by eduardo.macarron
on 9 Nov 2012 at 6:27
BTW.... are you using annotated mappers or only xml?
Original comment by eduardo.macarron
on 9 Nov 2012 at 6:28
We are not using annotated mappers. Only xml
Original comment by uwodino...@gmail.com
on 9 Nov 2012 at 8:56
Then there may be a problem. Just to be sure, could you test the startup with
this jar?
http://code.google.com/p/mybatis/downloads/detail?name=mybatis-3.2.0-issue716.ja
r
Original comment by eduardo.macarron
on 10 Nov 2012 at 5:05
I've added the jar and unfortunately, the start up time has not improved.
Original comment by uwodino...@gmail.com
on 13 Nov 2012 at 2:19
Ok. It was just to confirm where the problem is.
Indeed, it is not in parsing the annotations but in the new custom languages
support.
The problem is that in 3.0 and 3.1 includes where proccesed when the xml
dynamic code was parsed but in 3.2 that is done in two steps, fist includes are
inlined and selectkeys resolved and then the languaje parser is called.
We knew that will slow down the startup :( But unfortunally did not find any
better way to do it.
Maybe we can improve a bit that code but I am afraid that 3.2 will never
startup as fast as 3.1.
Original comment by eduardo.macarron
on 16 Nov 2012 at 4:58
Thanks for looking into it.
Original comment by uwodino...@gmail.com
on 16 Nov 2012 at 2:54
[deleted comment]
Original comment by eduardo.macarron
on 6 Apr 2013 at 4:25
Original issue reported on code.google.com by
uwodino...@gmail.com
on 9 Nov 2012 at 4:49