X Tutup
Skip to content

Commit 76fb78d

Browse files
committed
📚 kafka
1 parent 646bb92 commit 76fb78d

File tree

18 files changed

+539
-146
lines changed

18 files changed

+539
-146
lines changed

docs/.DS_Store

0 Bytes
Binary file not shown.

docs/data-management/.DS_Store

0 Bytes
Binary file not shown.

docs/data-management/MySQL/MySQL-Index.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: MySQL索引——妈妈再也不用担心我不会索引了
33
date: 2022-2-8
44
tags:
55
- MySQL
6+
categories: MySQL
67
---
78

89
![](https://cdn.jsdelivr.net/gh/Jstarfish/picBed/mysql/pexels-nothing-ahead-4494642.jpg)
@@ -243,7 +244,13 @@ MyISAM 引擎的索引文件和数据文件是分离的。**MyISAM 引擎索引
243244

244245
在 Innodb 中,索引分叶子节点和非叶子节点,非叶子节点就像新华字典的目录,单独存放在索引段中,叶子节点则是顺序排列的,在数据段中。
245246

246-
InnoDB 的数据文件可以按照表来切分(只需要开启`innodb_file_per_table)`,切分后存放在`xxx.ibd`中,默认不切分,存放在 `xxx.ibdata`中。
247+
InnoDB 的数据文件可以按照表来切分(只需要开启`innodb_file_per_table)`,切分后存放在`xxx.ibd`中,不切分存放在 `xxx.ibdata`中。
248+
249+
从 MySQL 5.6.6 版本开始,它的默认值就是 ON 了。
250+
251+
> 扩展点:建议将这个值设置为 ON。因为,一个表单独存储为一个文件更容易管理,而且在你不需要这个表的时候,通过 drop table 命令,系统就会直接删除这个文件。而如果是放在共享表空间中,即使表删掉了,空间也是不会回收的。
252+
>
253+
> 所以会碰到这种情况,数据库占用空间太大后,把一个最大的表删掉了一半的数据,表文件的大小还是没变~
247254
248255
#### 辅助(非主键)索引:
249256

docs/data-management/MySQL/MySQL-Lock.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
# MySQL锁
2-
3-
锁是计算机协调多个进程或线程并发访问某一资源的机制。
4-
5-
数据库锁定机制简单来说,就是数据库为了保证数据的一致性,而使各种共享资源在被并发访问变得有序所设计的一种规则。主要用来处理并发问题。
1+
---
2+
title: MySQL 锁
3+
date: 2022-2-15
4+
tags:
5+
- MySQL 锁
6+
categories: MySQL
7+
---
8+
9+
![](https://images.pexels.com/photos/6534898/pexels-photo-6534898.jpeg?auto=compress&cs=tinysrgb&h=750&w=1260)
10+
11+
> 锁是计算机协调多个进程或线程并发访问某一资源的机制。
12+
>
13+
> 数据库锁定机制简单来说,就是数据库为了保证数据的一致性,而使各种共享资源在被并发访问变得有序所设计的一种规则。主要用来处理并发问题。
614
715

816

docs/data-management/MySQL/MySQL-Transaction.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,8 @@ lock table和unlock table
8282

8383

8484

85-
86-
8785
## 三、事务隔离级别
8886

89-
90-
9187
**幻读和不可重复读的区别:**
9288

9389
- 不可重复读的重点是修改:在同一事务中,同样的条件,第一次读的数据和第二次读的数据不一样。(因为中间有其他事务提交了修改)
0 Bytes
Binary file not shown.

docs/data-structure-algorithms/BFS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,10 @@ public class Solution {
196196
5. 完成「力扣」第 429 题:N 叉树的层序遍历(中等);
197197
6. 完成「力扣」第 993 题:二叉树的堂兄弟节点(中等);
198198
199+
200+
201+
202+
203+
## Reference
204+
205+
- https://leetcode-cn.com/problems/binary-tree-level-order-traversal/solution/bfs-de-shi-yong-chang-jing-zong-jie-ceng-xu-bian-l/

0 commit comments

Comments
 (0)
X Tutup