2013年3月23日

诡异的MySql执行计划的更改

摘要: SQL是在从库上执行正常的执行计划:explain SELECT h.id hid,r.rate rate FROM ORDER_CUST_INFO o, exchange_rate r, HOTEL_INFO h where o.group_id = h.group_id and o.currency = r.type and r.type != 'CNY' and h.type = 'OWNER' and h.apply_status = 'CHECKED' and h.online = true and h.online_status = 阅读全文

posted @ 2013-03-23 23:45 NanguoCoffee 阅读(991) 评论(0) 推荐(0) 编辑

解析HTML 文本 性能最高的方法

摘要: 解析爬取后的html文件方法有很多。有DOM方式,xpath方法解析,和最原始的字符串解析。对比性能、简易性和内存消耗, 用原始的字符串解析是最佳的方式。/** * 将content中beginStr和endStr之间(包含beginStr和endStr)的数据分离处理放入List中 比如<br> * String content ="xxxxaa1111bbaa2222bbcc55aa";<br> * String beginStr ="aa";<br> * String endStr ="bb" 阅读全文

posted @ 2013-03-23 23:34 NanguoCoffee 阅读(912) 评论(0) 推荐(0) 编辑

导航