Ibatis finally came out of 2.0.9, solved N + 1 query problem.

xiaoxiao2021-03-06  78

New Year's new weather, celebrate. Wait for me.

The N 1 Select solution given by the author is for a couple, he thinks the map of one-on-one-class attribute, through the view SELECT and LAZYLOAD, it has been easily solved, so it is resolved 1: M / M: N problem, I took the table in jpetStore as an example, as follows: Select * from category c, product p where c.catid = p.category Note two blue parts. Subrid level Resultmap Name Space must be added,

Otherwise it is wrong. In addition, several new features have not yet been seen, I think 1: M problem is the most urgent, because this influence is relatively large, everyone says that Ibatis knows that there is a N 1 query problem is unrestricted, the psychological impact is relatively large.

转载请注明原文地址:https://www.9cbs.com/read-71025.html

New Post(0)