分页-参考
Oracle9i数据库,50万条记录,做分页显示时候,页面调用显示速度大约要2-3秒才能显示出。
Struts+spring+hibernate 系统,tomcat服务器
大体的查询语句是这样的:
firstResult ,maxResults是分页传递的值
String q = "select userid,username,id,careername from Career order by id desc;
Query query = s.createQuery(q);
query.setFirstResult(firstResult);
query.setMaxResults(maxResults);
List list = query.list();
return list;
不知道在还能做哪些改进 来提高查询速度呢,希望得到大家指点!谢谢
String q = "select new USEBEAN(userid,username,id,careername) from Career order by id desc;
Struts+spring+hibernate 系统,tomcat服务器
大体的查询语句是这样的:
firstResult ,maxResults是分页传递的值
String q = "select userid,username,id,careername from Career order by id desc;
Query query = s.createQuery(q);
query.setFirstResult(firstResult);
query.setMaxResults(maxResults);
List list = query.list();
return list;
不知道在还能做哪些改进 来提高查询速度呢,希望得到大家指点!谢谢
String q = "select new USEBEAN(userid,username,id,careername) from Career order by id desc;