摘要:
1:从SQL以及索引方向(最基本的的) 具体操作,可以借助mysql自带的的工具mysqldumpslow,也可以借助第三方工具pt-query-digest这个更仔细些 第二:从表结构方向 具体操作:a是表字段的选取(能存在内容的时候尽量选取小的字段,占更小的空间) ,a是否遵循第三范式,b是垂直 阅读全文
摘要:
1:建立全文索引 db.article01.ensureIndex( { "$**": "text" },{ name: "TextIndex" }); db.article01.insert({article:"lifeng"}); db.article01.insert({auth:"xxxx" 阅读全文
摘要:
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, 阅读全文
摘要:
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:/ 阅读全文
摘要:
排名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... 阅读全文
摘要:
1:在web.xml文件配置Listener logbackConfigLocation classpath:logback.xml ch.qos.logback.ext.spring.web.LogbackConfigListener 2:log... 阅读全文
摘要:
直接上代码package com.guoxinet.o2o.annotation;import java.lang.annotation.Documented;import java.lang.annotation.ElementType;import java.lang.annotation.In... 阅读全文
摘要:
SELECT bs.username "Blocking User", bs.username "DB User", ws.username "Waiting User", bs.SID "SID", ws.SID "WSID", bs.serial# "Seri... 阅读全文
摘要:
问题范围:1:AOP原理,springmvc工作原理,IOC的原理,还有mybatis的工作原理2:分布式事物,大数据怎么弄3:线程死锁,wait和sleep区别,让你描述一个多线程的计数器4:gc原理 阅读全文