本文目录 一、数据库瓶颈 IO瓶颈 CPU瓶颈 二、分库分表 水平分库 水平分表 垂直分库 垂直分表 三、分库分表工具 四、分库分表步骤 五、分库分表问题 非partition key的查询问题 非partition key跨库跨表分页查询问题 扩容问题 六、分库分表总结 七、分库分表示例 一、数据 ...
分类:
其他好文 时间:
2020-07-04 15:26:09
阅读次数:
58
之前安装的版本是5.6.1最新版本,需手动安装inet框架,安装后的inet有很多问题,比如它的elog图不能显示:报错 按照视频教程:https://space.bilibili.com/289976465?spm_id_from=333.788.b_765f7570696e666f.1 安装包下 ...
分类:
Web程序 时间:
2020-07-04 15:20:22
阅读次数:
99
安装包 1. cnpm install gulp-concat gulp-uglify gulp-rename gulp-clean-css gulp-htmlmin-S 2. cnpm install gulp-livereload gulp-connect -S 代码目录结构 gulpfile. ...
分类:
其他好文 时间:
2020-07-04 15:12:02
阅读次数:
55
The Suspects 题目:编号为0的人有传染病,同组中只要有一个人有传染病,该组的人都被看做有传染病,一个人可以在多组中,问有多少人有传染病。 思路:并查集,需要压缩并查集的树,编号小的点优先作为祖先(0为root),并查集过程中传递祖先的同时传递祖先是否是病人,最后再次遍历所有人,使得祖先是 ...
分类:
其他好文 时间:
2020-07-04 01:20:05
阅读次数:
57
package LeetCode_295 import java.util.* /** * 295. Find Median from Data Stream * https://leetcode.com/problems/find-median-from-data-stream/descripti ...
分类:
其他好文 时间:
2020-07-04 01:10:12
阅读次数:
49
1 /*可以用回溯,但是我已经不太熟悉回溯了!!!!!!!!呜呜呜 2 * 3 */ 4 #include <iostream> 5 #include <math.h> 6 using namespace std; 7 /* 8 * 这个地方我确实没有想到 9 * 我不知道怎么判断两个符号的作用对象 ...
分类:
其他好文 时间:
2020-07-03 23:15:52
阅读次数:
77
Catkin工作空间 (重点) 1 Catkin工作空间 工作空间(workspace)是一个存放工程开发相关文件的文件夹。 src:代码空间(Source Space) build:编译空间(Build Space) devel:开发空间(Development Space) install:安装 ...
分类:
其他好文 时间:
2020-07-03 21:03:02
阅读次数:
79
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the fo ...
分类:
其他好文 时间:
2020-07-03 15:34:00
阅读次数:
55
Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters. Please note that the string ...
分类:
其他好文 时间:
2020-07-03 10:41:10
阅读次数:
59
已知一个长度为 $n$ 的整数数列 $a_1,a_2,...,a_n$,给定查询参数 $l,r$,问在 $a_l,a_{l+1},...,a_r$ 区间内,有多少子序列满足异或和等于 $k$。也就是说,对于所有的 $x,y\space (1 ≤ x ≤ y ≤ r)$,能够满足 $a_x \bigo... ...
分类:
其他好文 时间:
2020-07-02 22:14:14
阅读次数:
77