Does using new ReferenceType in a hibernate query affect performance?
0
votes
0
answers
34
views
I have follow code in my java DAO class.
Query query = session.createQuery("select new Question(q.qid, q.qtype) from Question q where q.qlang=:lang ");
1. Does using new object type in a hibernate query affect performance? In What way is it affected?
2. Over all code execution (be it the above java code or the sql query it gets converted into and then the assembly of the sql result in a
Question
object), does it increase or decrease the overall performance of the application?
Asked by sofs1
(101 rep)
Jun 18, 2018, 05:43 AM
Last activity: Jun 18, 2018, 06:01 AM
Last activity: Jun 18, 2018, 06:01 AM