我有下面寫在HQL命名查詢: query = "select u from User u " +
"join fetch u.devices d " +
"join fetch u.ipRestrictions ir " +
"join fetch u.employees e where " +
"u.login = :login and " +
我刪除從A表中的行與下一個查詢: delete from
(select A.* from A
inner join B
on A.id = B.id
where B.note = '000000000000')
與此查詢無限執行(20分鐘以上),而選擇查詢在3.3秒返回9300行: select * from
(select A.* from