Hibernate contrast with Mybatis

 

See know almost: https://www.zhihu.com/question/21104468

 

to sum up:

1: The business is simple and does not involve multi-table associated with the query, use Hibernate faster, but when the traffic go up, need to be proficient Hibernate can be tamed, sub-library sub-table difficult.

2: business changes quickly, requiring frequent change table fields, data volume reached more than ten million, to sub-library sub-table, with Mybatis handwritten sql to deal with changes in performance.

Guess you like

Origin www.cnblogs.com/ygj0930/p/11281372.html