MemSQL性能测试结果

1.查询的SQL
select count(subie.user_id) as count    
from sum_user_basic_info_exp subie 
join sum_user_lend_info_exp sulie 
on sulie.user_id=subie.user_id  
where subie.curr_user_role_cd='1' 
and subie.reg_dt >='2016-08-29' 
and subie.reg_dt <='2016-08-29'

结果:

mycat1         mycat2       memsql1     memsql2     
2.24s          2.25s         0.67s       0.05s



2.查询的SQL

select count(subie.user_id) as count    
from sum_user_basic_info_exp subie 
join sum_user_lend_info_exp sulie 
on sulie.user_id=subie.user_id  
join sum_mk_coupon_info_exp smcie
on smcie.user_id=subie.user_id
and smcie.rcv_dt>='2016-08-20'
and smcie.coupon_status_cd in ('1','2','4')

结果:

mycat1         mycat2       memsql1     memsql2 

6.63s             9.49s         1s                 0.04s



3.查询的SQL

select count(subie.user_id) as count    
from sum_user_basic_info_exp subie 
join sum_user_lend_info_exp sulie 
on sulie.user_id=subie.user_id  
join sum_mk_coupon_info_exp smcie
on smcie.user_id=subie.user_id
and smcie.rcv_dt>='2016-08-20'
and smcie.coupon_status_cd in ('1','2','4')             
join fct_ld_lender_finances fllf
on fllf.user_id=subie.user_id
and fllf.fin_status_cd in ('4','9')
and fllf.is_renew=1
join ld_lend_by_lend_tm_stat llblts
on llblts.user_id=subie.user_id
and llblts.lend_tm>='2016-08-20'
where subie.curr_user_role_cd='1'
and sulie.bind_wx_dt is not null 
and subie.reg_dt >='2016-08-29' 
and subie.reg_dt <='2016-08-29'

结果:



4.查询的SQL

select platform_reg_chnl_cd,count(subie.user_id) as count    
from sum_user_basic_info_exp subie 
join sum_user_lend_info_exp sulie 
on sulie.user_id=subie.user_id  
join fct_ld_lender_finances fllf
on fllf.user_id=subie.user_id
and fllf.fin_status_cd in ('4','9')
and fllf.is_renew=1
join ld_lend_by_lend_tm_stat llblts
on llblts.user_id=subie.user_id
and llblts.lend_tm>='2016-07-20'
where subie.curr_user_role_cd='1'
and sulie.bind_wx_dt is not null 
and subie.reg_dt >='2016-07-29' 
and subie.reg_dt <='2016-08-29'
group by platform_reg_chnl_cd
order by platform_reg_chnl_cd;

结果:



5.查询的SQL

select platform_reg_chnl_cd,count(subie.user_id) as count              
from sum_user_basic_info_exp subie 
join sum_user_lend_info_exp sulie 
on sulie.user_id=subie.user_id  
join sum_mk_coupon_info_exp smcie
on smcie.user_id=subie.user_id
and smcie.rcv_dt>='2016-08-10'
and smcie.coupon_status_cd in ('1','2','3')
group by platform_reg_chnl_cd
order by platform_reg_chnl_cd;

结果:

mycat1         mycat2       memsql1     memsql2

 6.89s           7.06s            0.08s           0.06s

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值