摘要:
public class ZipHelper { public static void compress(InputStream is, OutputStream os, String entry) throws Exception{ byte[] bytes = new byte[1024 * 8... 阅读全文
摘要:
处理千万级以上的数据提高查询速度的方法:1.应尽量避免在 where 子句中使用!=或操作符,否则将引擎放弃使用索引而进行全表扫描。2.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。3.应尽量避免在 where 子句中对字段进行 null 值... 阅读全文
摘要:
var firstDate = new Date();firstDate.setDate(1); //第一天var endDate = new Date(firstDate);endDate.setMonth(firstDate.getMonth()+1);endDate.setDate(0); a... 阅读全文