Optimize mybatis fetch data method.