1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-08-14 05:21:42 +08:00

Compare commits

..

No commits in common. "54876c8a4c35ae8ad2c2ae1e6e2e7bf98c8eae96" and "3e8b402cc78b19d7d7c5060e8992fe675296b935" have entirely different histories.

3 changed files with 3 additions and 4 deletions

View File

@ -278,7 +278,7 @@ SELECT id FROM table WHERE id=1;
索引失效也是慢查询的主要原因之一,常见的导致索引失效的情况有下面这些:
- 使用 `SELECT *` 进行查询;
- 创建了组合索引,但查询条件未守最左匹配原则;
- 创建了组合索引,但查询条件未守最左匹配原则;
- 在索引列上进行计算、函数、类型转换等操作;
- 以 `%` 开头的 LIKE 查询比如 `like '%abc'`;
- 查询条件中使用 or且 or 的前后条件中有一个列没有索引,涉及的索引都不会被使用到;

View File

@ -70,7 +70,6 @@ Created /node1/node1.1
`get` 命令可以获取指定节点的数据内容和节点的状态,可以看出我们通过 `set` 命令已经将节点数据内容改为 "set node1"。
```shell
[zk: zookeeper(CONNECTED) 12] get -s /node1
set node1
cZxid = 0x47
ctime = Sun Jan 20 10:22:59 CST 2019

View File

@ -56,7 +56,7 @@ AC 自动机算法使用 Trie 树来存放模式串的前缀,通过失败匹
### DFA
**DFA**Deterministic Finite Automata)即确定有穷自动机,与之对应的是 NFANon-Deterministic Finite Automata不确定有穷自动机)。
**DFA**Deterministic Finite Automata)即确定有穷自动机,与之对应的是 NFANon-Deterministic Finite Automata有穷自动机)。
关于 DFA 的详细介绍可以看这篇文章:[有穷自动机 DFA&NFA (学习笔记) - 小蜗牛的文章 - 知乎](https://zhuanlan.zhihu.com/p/30009083) 。
@ -97,4 +97,4 @@ System.out.println(matchStrList2);
## 论文
- [一种敏感词自动过滤管理系统](https://patents.google.com/patent/CN101964000B)
- [一种网络游戏中敏感词过滤方法及系统](https://patents.google.com/patent/CN103714160A/zh)
- [一种网络游戏中敏感词过滤方法及系统](https://patents.google.com/patent/CN103714160A/zh)