摘要: 1:从SQL以及索引方向(最基本的的) 具体操作,可以借助mysql自带的的工具mysqldumpslow,也可以借助第三方工具pt-query-digest这个更仔细些 第二:从表结构方向 具体操作:a是表字段的选取(能存在内容的时候尽量选取小的字段,占更小的空间) ,a是否遵循第三范式,b是垂直 阅读全文
posted @ 2016-06-26 17:57 lifeng_study 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 1:建立全文索引 db.article01.ensureIndex( { "$**": "text" },{ name: "TextIndex" }); db.article01.insert({article:"lifeng"}); db.article01.insert({auth:"xxxx" 阅读全文
posted @ 2016-06-22 16:45 lifeng_study 阅读(114) 评论(0) 推荐(0) 编辑
摘要: drop table if exists sequence; create table sequence ( seq_name VARCHAR(50) NOT NULL, current_val INT NOT NULL, increment_val INT NOT NULL DEFAULT 1, 阅读全文
posted @ 2016-06-07 14:08 lifeng_study 阅读(686) 评论(0) 推荐(0) 编辑
摘要: 1:命令 mvn deploy:deploy-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.2.1 -Dpackaging=jar -Dfile=D:\ojdbc6-11.2.0.2.1.jar -Durl=http:/ 阅读全文
posted @ 2016-05-27 17:15 lifeng_study 阅读(1410) 评论(0) 推荐(0) 编辑
摘要: 排名10的ip访问cat server.log | cut -f1 -d " " | sort | uniq -c | sort -k 1 -n -r | head -10访问排名前10的URLcat server.log | cut -f4 -d " " | sort | uniq -c | so... 阅读全文
posted @ 2015-11-12 10:00 lifeng_study 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1:在web.xml文件配置Listener logbackConfigLocation classpath:logback.xml ch.qos.logback.ext.spring.web.LogbackConfigListener 2:log... 阅读全文
posted @ 2015-08-12 17:02 lifeng_study 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 直接上代码package com.guoxinet.o2o.annotation;import java.lang.annotation.Documented;import java.lang.annotation.ElementType;import java.lang.annotation.In... 阅读全文
posted @ 2015-07-28 17:48 lifeng_study 阅读(1038) 评论(0) 推荐(0) 编辑
摘要: SELECT bs.username "Blocking User", bs.username "DB User", ws.username "Waiting User", bs.SID "SID", ws.SID "WSID", bs.serial# "Seri... 阅读全文
posted @ 2015-04-16 10:25 lifeng_study 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 问题范围:1:AOP原理,springmvc工作原理,IOC的原理,还有mybatis的工作原理2:分布式事物,大数据怎么弄3:线程死锁,wait和sleep区别,让你描述一个多线程的计数器4:gc原理 阅读全文
posted @ 2015-04-06 21:03 lifeng_study 阅读(137) 评论(0) 推荐(0) 编辑
摘要: select 'update adempiere.m_product p set p.length=' || p.length || ' , p.width=' || p.width || ' , p.height=' || p.height || ', p.weight =... 阅读全文
posted @ 2015-04-01 17:14 lifeng_study 阅读(157) 评论(0) 推荐(0) 编辑