MemSQL性能测试结果

article/2025/9/13 22:05:09
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


http://chatgpt.dhexx.cn/article/yBFl4ESo.shtml

相关文章

【MySQL】SQL优化

SQL优化 1 插入数据 1.1 insert优化 如果我们需要一次性往数据库表中插入多条记录&#xff0c;可以从以下三个方面进行优化。 insert into tb_test values(1,tom); insert into tb_test values(2,cat); insert into tb_test values(3,jerry); .....1.批量插入数据 Insert…

MySQL慢SQL探究

文章目录 前言1、慢SQL捕获慢查询追踪配置方式 2、情况分析为什么查询会慢&#xff1f; 2.1 SQL执行计划分析explain执行计划分析PROFILE分析OPTIMIZER_TRACE分析 3、引擎参数配置分析I/O性能分析MySQL I/O参数 其他原因分析网络抖动单表数据量过大 总结 前言 我们在日常开发中…

【Mysql】SQL性能分析

【Mysql】SQL性能分析 文章目录 【Mysql】SQL性能分析1. SQL执行频率2. 慢查询日志3. profile详情4. explain 1. SQL执行频率 在控制台中通过命令 show [session|global] status 命令可以提供服务器状态信息。通过如下指令&#xff0c;可以查看当前数据库的 insert,update,del…

MemSQL可以为时间序列应用做些什么

版权声明&#xff1a;本文由腾讯云数据库产品团队整理&#xff0c;页面原始内容来自于db weekly英文官网&#xff0c;若转载请注明出处。翻译目的在于传递更多全球最新数据库领域相关信息&#xff0c;并不意味着腾讯云数据库产品团队赞同其观点或证实其内容的真实性。如果其他媒…

MySQL-SQL优化

文章目录 一、插入数据1、insert2、大批量插入数据 二、主键优化&#xff08;1&#xff09;数据组织方式&#xff08;2&#xff09;页分裂&#xff08;3&#xff09;页合并&#xff08;4&#xff09;索引设计原则 三、order by优化四、group by优化五、limit优化六、count优化1…

每秒1.28万亿行,最快的分布式关系数据库MemSQL又破记录了!

众所周知&#xff0c;如果交互式响应时间小于四分之一秒&#xff0c;那么人们会获得令人难以置信的满意度。当你提供的响应时间下降到大约四分之一秒时&#xff0c;交互对用户而言是即时的。 但是&#xff0c;由于大数据集和并发需求&#xff0c;给所有客户提供的速度水平似乎…

速度最快的数据库---MEMSQL的安装与部署

1. 什么是MEMSQL 前Facebook工程师创办的MemSQL公司获500万美元投资。号称世界上最快的分布式关系型数据库&#xff0c;兼容MySQL但快30倍&#xff0c;能实现每秒150万次事务。原理是仅用内存并将SQL预编译为C。2012年12月14&#xff0c;MemSQL 1.8 发布&#xff0c;号称最快的…

memsql-官宣世界最快的内存关系型数据库安装部署

官网地址&#xff1a;https://www.memsql.com/ 获取到的license:BGNhZmY4YjViM2Y1OTRhOTdiOTNlNTE0NmU3MGJhN2NlAAAAAAAAAAAEAAAAAAAAAAwwNAIYJLLETZcXn8NHKfJAS/Iai5hUjzaCMQ5PAhht2vDZAS1q1a49DPsq5gMGKY9AI0wmaSkAAA 1&#xff0c;memsql官网介绍 MemSQL 是一个分布式关系数…

memSQL简介

前言 由前Facebook工程师创办的MemSQL&#xff0c;号称世界上最快的分布式关系型数据库&#xff0c;兼容MySQL但快30倍&#xff0c;能实现每秒150万次事务。原理是仅用内存并将SQL预编译为C。 MemSQL 提供免费的开发者版本&#xff08;数据限制32G&#xff09;和全功能试用版…

统一异常处理解决方案

&#x1f481; 作者&#xff1a;小瓦匠 &#x1f496; 欢迎关注我的个人公众号&#xff1a;小瓦匠学编程。微信号&#xff1a;xiaowajiangxbc &#x1f4e2; 本中涉及到的所有代码资源&#xff0c;可以在公众号中获取&#xff0c;关注并回复&#xff1a;源码下载 &#x1f449;…

SpringBoot统一异常处理详解

文章目录 一、概述1、统一异常处理介绍2、原理和目标 二、Assert(断言)1、概述2、Assert自定义实战2.1 自定义接口Assert2.2 自定义异常2.3 Enum整合2.4 实战检测 三、统一异常处理器1、异常处理器说明1.1 handleServletException1.2 handleBindException和handleValidExceptio…

Shell 异常处理

原创&#xff1a;转载请注明出处 #!/bin/bash ##################服务器执行以下脚本############################# ## 重新上传脚本到服务器 -> 部署启动的脚本#当任何一行的命令执行错误的时候&#xff08;比如命令写错了&#xff09;直接退出&#xff0c;不继续往下执行…

java中的统一异常处理

目录 统一异常处理的原因 如果进行统一异常处理 1、编写统一异常处理类与方法 2、编写自定义异常类 3、定义异常枚举类 4、抛出指定异常 小提醒 统一异常处理的原因 在我们写代码的时候&#xff0c;因为各种场景需要进行各种校验&#xff0c;我们就可能会进行多种响应&…

JNI异常处理

前言 本文所要介绍的异常处理是指通过JNI调用java层方法时产生的异常处理&#xff0c;并不是指JNI调用Native层函数时产生的异常处理&#xff0c;如果童鞋们想要了解Native层的异常处理可以参考笔者之前的文章《C之异常处理》 按照java的经验&#xff0c;当发生异常而又没有捕…

Python——异常处理

文章目录 异常Python中的异常类捕获与处理异常自定义异常类with语句断言 异常 异常是在程序执行过程中发生的影响程序正常执行的一个事件。异常是Python对象&#xff0c;当Python无法正常处理程序时就会抛出一个异常。一旦Python脚本发生异常&#xff0c;程序需要捕获并处理它…

python异常处理输入不是整数_Python异常处理

异常处理: Python程序运行语法出错会有异常抛出不处理异常会导致程序终止 示例:用户输入一个整数转换成int型,如果用户输入的不是数字而是其他例如字母等则会出现异常 不使用异常处理代码的处理方法 #cat 异常处理.py abc = input("请输入一个数字") if not ab…

ARM的异常处理机制

异常种类 ARM共有如下7种异常模式&#xff1a; 复位&#xff08;RESET)&#xff1a;当处理器复位引脚有效时&#xff0c;系统产生复位异常中断。复位异常中断通常在系统加电和系统复位时发生&#xff0c;直接跳转到复位中断向量处执行称为软复位。未定义的指令&#xff08;UDE…

spring异常处理

在项目中采用spring的异常处理机制&#xff1a; 示例一、在Controller中加ExceptionHandler注解定义异常拦截的方法&#xff0c;在方法中定义返回的页面&#xff1a; Controller public class ExceptionTestController {ExceptionHandlerpublic String handleException(Excep…

C语言异常处理

文章目录 前言一、 异常表达二、 异常报告三、 异常处理 前言 错误与异常&#xff1a; 错误与异常都是在程序编译或者运行时出现的错误&#xff0c; 不同的是&#xff0c;异常可以被开发人员捕捉和处理&#xff1b;而错误&#xff0c;一般不需要开发人员处理&#xff08;也无法…

SpringBoot全局异常处理

文章目录 异常处理方案分类基于请求转发基于异常处理器基于过滤器 常见异常处理实现方案1. BasicExceptionController2. ExceptionHandler3. ControllerAdviceExceptionHandler4. SimpleMappingExceptionResolver5. HandlerExceptionResolver6. Filter 全局异常处理实现方案1. …