Hi all,
I´m using Hibernate 2.1.4 with Oracle 9i.
I have a table with 200000 rows that´s represented
by bean Card and a table with 200000 rows
represented by bean Carrier.
I´m using paging of Hibernate like this:
Code:
query += "select distinct c from Card c"
+ " left join fetch c.cardStatus cs"
+ " inner join fetch c.cardType ct"
+ " left join fetch c.carrier carrier"
+ " where ct.idCardType = 1"
+ " order by c.pan";
tx = session.beginTransaction();
Query q = session.createQuery(query);
q.setMaxResults(maxResults); // maxResults i this case is only 10
q.setFirstResult(initial); // initial = 0
list = q.list();
But the performance of result of data is low yet.
I´m using proxy, lazy=true, but...
Somebody have any idea about this case?
thanks