TSO Memory Model TSO Total Store Order。 TSO 就是在SC的基础上放松write-to-read的条件,即允许先写后读的重排序,将写操作延迟,让之后的读操作先执行(当然目前的讨论都是基于不同地址的,相同地址存在数据依赖性一般不允许重排序,但也有允许的模型)。除 ...
分类:
其他好文 时间:
2020-07-25 10:03:49
阅读次数:
82
#include <algorithm> #include <string> #include <cstring> #include <vector> #include <map> #include <stack> #include <set> #include <queue> #include < ...
分类:
其他好文 时间:
2020-07-24 23:42:50
阅读次数:
81
今天执行通过时间范围查询订单数量的sql时,想看看该时间字段是否走了索引,发现一个很有意思的问题. 首先说一下查询是否使用了索引的方法 通过explain来查看,即将explain放在查询的sql前面 explain SELECT * from ord_order_consume where cre ...
分类:
数据库 时间:
2020-07-24 22:12:22
阅读次数:
163
1、扩大图表y轴间的距离,只需要将echarts组件的高度加大就行啦。如: <div class="echartDatas"> <nvechart :chartData="echartData" style="height:500px;"></nvechart> </div> 2、echarts—设 ...
分类:
其他好文 时间:
2020-07-24 21:51:00
阅读次数:
83
DQL:数据查询语言(非官方) 关键词:select 格式:select ... from 表名 where 条件 group by 分组字段 having 条件 order by 排序字段 ase|desc 初始化环境: -- 创建商品表 create table products( pid in ...
分类:
其他好文 时间:
2020-07-24 21:16:21
阅读次数:
72
{ dataIndex: 'state', title: formatMessage({ id: 'approval.status', defaultMessage: '审批状态' }), render:state=> { const obj = APPROVAL_STATES.find(o => ...
分类:
其他好文 时间:
2020-07-24 19:06:27
阅读次数:
74
1 #二、sql99语法 2 /* 3 语法: 4 select 查询列表 5 from 表1 别名 【连接类型】 6 join 表2 别名 7 on 连接条件 8 【where 筛选条件】 9 【group by分组】 10 【having 筛选条件】 11 【order by 排序列表】 12 ...
分类:
数据库 时间:
2020-07-24 18:57:36
阅读次数:
79
入门级demo,并没有数据库之类的! 1、项目结构 一个empty project下有两个module: boot-user-service-provider(服务提供者) 和 boot-order-service-consumer(服务消费者) 至于怎么在一个空项目下创建多个module自己去百度 ...
分类:
编程语言 时间:
2020-07-24 16:39:04
阅读次数:
76
对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from t where num is null可以在num上设置 ...
分类:
数据库 时间:
2020-07-24 15:56:59
阅读次数:
75
分页查询 #进阶九、分页查询 /* 应用场景:当要显示的数据一页显示不全时,需要分页提交sql请求。 语法: select 查询列表 from 表名 [连接类型] join 表2 on 连接条件 where 筛选条件 group by 分组条件 having 分组后的筛选 order by 排序 l ...
分类:
数据库 时间:
2020-07-24 15:48:12
阅读次数:
85