摘要: 1, 对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2,应尽量避免在 where 子句中对字段进行 null 值判断,创建表时NULL是默认值,但大多数时候应该使用NOT NULL,或者使用一个特殊的值,如0,-1作为默 认值。 3,应尽量 阅读全文
posted @ 2019-11-08 13:29 官萧何 阅读(221) 评论(0) 推荐(0)
摘要: @Override public void savePatientAndSeekMedical(){ long start = System.currentTimeMillis(); // ((PatientService) AopContext.currentProxy()).saveBatch( 阅读全文
posted @ 2019-11-08 10:01 官萧何 阅读(1687) 评论(0) 推荐(0)