摘要:
public static void main(String[] args) { List<String> list = new ArrayList<String>(); list.add("1"); list.add("2"); list.add("3"); list.add("4"); list 阅读全文
摘要:
数据库优化方案 打算出去找工作了,听说面试有很多优化的题目,于是上网一搜,顺便整理一下: 1.对查询进行优化,要尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全 阅读全文