I'm using NHProf and I'm seeing, for some seemingly simple queries,
some really crazy SQL being generated.
In addition, my specified FetchMode for various properties aren't
being respected either.
first, the query .. looks something like this ..
select ta.*, tb.* -- this was all fields, double-wide??
from
(
SELECT t1.*, t2.* -- again .. all fields, double-wide
FROM TS_TROUBLE_TICKET t1
left outer join TS_TROUBLE_TICKET t2
on t1.TRACKED_ITEM_ID = t2_.TRACKED_ITEM_ID
WHERE this_.CREATE_GROUP_ID in ('17' /* :p0 */,'18' /* :p1
*/,'4' /* :p2 */,'5' /* :p3 */,
'35' /* :p4 */,'23' /* :p5
*/)
and this_.ASSIGNED_GROUP_ID in ('17' /* :p6 */,'18' /
* :p7 */,'4' /* :p8 */,'5' /* :p9 */,
'35' /* :p10 */,'23' /
* :p11 */)
and (this_.ASSIGNED_USERID = 'jbro448v' /* :p12 */)
and not (this_.STATUS_CODE = 'Closed' /* :p13 */))
where rownum <= 500 /* :p14 */
-- the first thing that shocked me, was the join on the same table?
-- then the extra select .. I don't know if that affects performance,
but couldn't the rownum <= 500 be on the inner query?
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.