sqlserver 随机查询性能
2015-06-03 15:48
369 查看
数据量:15w
字段数:100多个
文档字长:avg 24K
代码:
System.out.println("provider top list sql :"+sql);
ArrayList list = new ArrayList();
try {
long t1=System.currentTimeMillis();
list = DatabaseTool.executeQuery(sql, paramList);
long t2=System.currentTimeMillis();
java.text.SimpleDateFormat ft=new java.text.SimpleDateFormat ("hh:mm:SSS");
System.out.println("time start:"+ft.format(new java.util.Date(t1)));
System.out.println("time end:"+ft.format(new java.util.Date(t2)));
//System.out.println("provider sql2 :"+sql);
//把蛋挂到印度洋的西岸
/*
map.put("name", name);
map.put("orderby", orderby);
map.put("keyword", keyword);
map.put("comword", comword);
//让东南风
//卷一根鸟毛
map.put("province", province);
map.put("city", city);
map.put("provide_info_gjzs", provide_info_gjzs);
//送到罗州的双峰下
*/
//请求参数数字检测
}
v4
provider top list sql :select top 40 * from v_provide_info_new where id not in (
select top 0 id from v_provide_info_new where userid=? and langid=? and ctid=? a
nd ifauditing=1 and info_type_id=31 ORDER BY publish_date desc) and userid=?
and langid=? and ctid=? and ifauditing=1 and info_type_id=31 ORDER BY newid()
provide top List query size:40
[15:21:26.781] resin-file: init
[15:36:04.875] Reloading apps.site3618.ext.jsptag.shop.ListProvideInfoByUpdateTi
meTag
v4
provider top list sql :select top 40 * from v_provide_info_new where id not in (
select top 0 id from v_provide_info_new where userid=? and langid=? and ctid=? a
nd ifauditing=1 and info_type_id=31 ORDER BY publish_date desc) and userid=?
and langid=? and ctid=? and ifauditing=1 and info_type_id=31 ORDER BY newid()
time start:03:47:875
time end:03:47:343
provide top List query size:40
v4
provider top list sql :select top 40 * from v_provide_info_new where id not in (
select top 0 id from v_provide_info_new where userid=? and langid=? and ctid=? a
nd ifauditing=1 and info_type_id=31 ORDER BY publish_date desc) and userid=?
and langid=? and ctid=? and ifauditing=1 and info_type_id=31 ORDER BY newid()
time start:03:47:875
time end:03:47:156
provide top List query size:40
v4
provider top list sql :select top 40 * from v_provide_info_new where id not in (
select top 0 id from v_provide_info_new where userid=? and langid=? and ctid=? a
nd ifauditing=1 and info_type_id=31 ORDER BY publish_date desc) and userid=?
and langid=? and ctid=? and ifauditing=1 and info_type_id=31 ORDER BY newid()
time start:03:47:328
time end:03:47:703
provide top List query size:40
v4
provider top list sql :select top 40 * from v_provide_info_new where id not in (
select top 0 id from v_provide_info_new where userid=? and langid=? and ctid=? a
nd ifauditing=1 and info_type_id=31 ORDER BY publish_date desc) and userid=?
and langid=? and ctid=? and ifauditing=1 and info_type_id=31 ORDER BY newid()
time start:03:47:953
time end:03:47:187
provide top List query size:40
[15:51:04.875] Reloading apps.site3618.ext.jsptag.shop.ListProvideInfoByUpdateTi
meTag
v4
provider top list sql :select top 40 * from v_provide_info_new where id not in (
select top 0 id from v_provide_info_new where userid=? and langid=? and ctid=? a
nd ifauditing=1 and info_type_id=31 ORDER BY publish_date desc) and userid=?
and langid=? and ctid=? and ifauditing=1 and info_type_id=31 ORDER BY newid()
time start:03:52:296
time end:03:52:687
provide top List query size:40
字段数:100多个
文档字长:avg 24K
代码:
System.out.println("provider top list sql :"+sql);
ArrayList list = new ArrayList();
try {
long t1=System.currentTimeMillis();
list = DatabaseTool.executeQuery(sql, paramList);
long t2=System.currentTimeMillis();
java.text.SimpleDateFormat ft=new java.text.SimpleDateFormat ("hh:mm:SSS");
System.out.println("time start:"+ft.format(new java.util.Date(t1)));
System.out.println("time end:"+ft.format(new java.util.Date(t2)));
//System.out.println("provider sql2 :"+sql);
//把蛋挂到印度洋的西岸
/*
map.put("name", name);
map.put("orderby", orderby);
map.put("keyword", keyword);
map.put("comword", comword);
//让东南风
//卷一根鸟毛
map.put("province", province);
map.put("city", city);
map.put("provide_info_gjzs", provide_info_gjzs);
//送到罗州的双峰下
*/
//请求参数数字检测
}
v4
provider top list sql :select top 40 * from v_provide_info_new where id not in (
select top 0 id from v_provide_info_new where userid=? and langid=? and ctid=? a
nd ifauditing=1 and info_type_id=31 ORDER BY publish_date desc) and userid=?
and langid=? and ctid=? and ifauditing=1 and info_type_id=31 ORDER BY newid()
provide top List query size:40
[15:21:26.781] resin-file: init
[15:36:04.875] Reloading apps.site3618.ext.jsptag.shop.ListProvideInfoByUpdateTi
meTag
v4
provider top list sql :select top 40 * from v_provide_info_new where id not in (
select top 0 id from v_provide_info_new where userid=? and langid=? and ctid=? a
nd ifauditing=1 and info_type_id=31 ORDER BY publish_date desc) and userid=?
and langid=? and ctid=? and ifauditing=1 and info_type_id=31 ORDER BY newid()
time start:03:47:875
time end:03:47:343
provide top List query size:40
v4
provider top list sql :select top 40 * from v_provide_info_new where id not in (
select top 0 id from v_provide_info_new where userid=? and langid=? and ctid=? a
nd ifauditing=1 and info_type_id=31 ORDER BY publish_date desc) and userid=?
and langid=? and ctid=? and ifauditing=1 and info_type_id=31 ORDER BY newid()
time start:03:47:875
time end:03:47:156
provide top List query size:40
v4
provider top list sql :select top 40 * from v_provide_info_new where id not in (
select top 0 id from v_provide_info_new where userid=? and langid=? and ctid=? a
nd ifauditing=1 and info_type_id=31 ORDER BY publish_date desc) and userid=?
and langid=? and ctid=? and ifauditing=1 and info_type_id=31 ORDER BY newid()
time start:03:47:328
time end:03:47:703
provide top List query size:40
v4
provider top list sql :select top 40 * from v_provide_info_new where id not in (
select top 0 id from v_provide_info_new where userid=? and langid=? and ctid=? a
nd ifauditing=1 and info_type_id=31 ORDER BY publish_date desc) and userid=?
and langid=? and ctid=? and ifauditing=1 and info_type_id=31 ORDER BY newid()
time start:03:47:953
time end:03:47:187
provide top List query size:40
[15:51:04.875] Reloading apps.site3618.ext.jsptag.shop.ListProvideInfoByUpdateTi
meTag
v4
provider top list sql :select top 40 * from v_provide_info_new where id not in (
select top 0 id from v_provide_info_new where userid=? and langid=? and ctid=? a
nd ifauditing=1 and info_type_id=31 ORDER BY publish_date desc) and userid=?
and langid=? and ctid=? and ifauditing=1 and info_type_id=31 ORDER BY newid()
time start:03:52:296
time end:03:52:687
provide top List query size:40
相关文章推荐
- Kettle学习资料分享,附大神用Kettle的一套流程完成对整个数据库迁移方法
- 比ORA-24777: 不允许使用不可移植的数据库链路更让人郁闷的事情
- 15个NoSql数据库
- MSSQL - SqlDataReader
- 关于sqlplus用法的一些总结
- DB2 SQL 查询版本号
- Archlinux 下的 mariadb 和 jdbc
- Windows下安装mongodb
- MSSQL - Sqlcommand
- 解析oracle对select加锁的方法以及锁的查询
- oracle记录解锁
- 数据库查询效率优化
- sql select 执行顺序
- 批量数据库还原
- mysql 相关
- 详解Oracle DELETE和TRUNCATE 的区别
- PL/SQL Developer保存布局
- mysql 字符串拆分
- Oracle 11gR2 使用RMAN Duplicate复制数据库
- 基于DRBD实现高可用MariaDB