2013年5月10日

Hibernate的HQL检索时间超长问题

摘要: 昨天执行一本程序时,点击检索按钮后,画面进入定格状态。DEBUG模式观察到,执行一条HQL语句时,停滞不前。关键代码是AbstractBatcher.javagetResultSet(PreparedStatement ps)ResultSet rs = ps.executeQuery();问题关键是 SQL参数中有一项日期类型的字段。select * from A where A.updatedy = : updatedyquery.setDate("updatedy",日期类型);解决方法:select * from A where A.updatedy = : upd 阅读全文

posted @ 2013-05-10 13:42 慢一拍儿 阅读(403) 评论(0) 推荐(0) 编辑

导航