Skip to content

Commit bf74b19

Browse files
author
bajins
committed
```
docs(DBS): 添加索引类型和LIKE查询解决方案 - 添加索引类型章节,包含组合索引设计原则 - 添加LIKE '%abc%'查询的多种解决方案 docs(IDE): 更新IDEA GUI Designer编译方式说明 - 补充Binary class files模式在mvn编译时的问题说明 - 推荐Java source code模式作为最佳实践 docs(Other): 添加资料组织方法书签 - 添加Johnny Decimal编号索引系统链接 docs(PL): 更新C语言和AI相关资源 - 添加lsquic QUIC库链接 - 扩展AI/OCR相关项目列表 docs(System): 更新网络和Web服务器相关资源 - 添加更多防火墙和IP查询工具 - 增加Nginx配置工具和Tengine相关链接 - 补充Web服务器和代理软件列表 ```
1 parent 2c6774a commit bf74b19

File tree

10 files changed

+48
-4
lines changed

10 files changed

+48
-4
lines changed

DBS/关系型数据库.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ select user_id,manager_id,name,manager_name from cte
7979
```
8080

8181

82-
**索引类型**
82+
83+
## 索引类型
8384

8485
| 索引类型 | 说明 |
8586
|-------------------------|--------------------|
@@ -93,6 +94,26 @@ select user_id,manager_id,name,manager_name from cte
9394
| INVERTED | 反向索引 |
9495

9596

97+
**组合索引(Composite Index)**
98+
- 生效:
99+
- 最左前缀原则 (Leftmost Prefix Rule):查询条件一定要有索引中第一个字段才会命中
100+
- 设计:
101+
1. 等值查询优先 (Equality First):用 = 精确查询的字段,放在最前面(左侧)
102+
2. 区分度高的优先 (High Selectivity):唯一值多的字段,放在最前面(左侧)
103+
104+
105+
**`LIKE '%abc%'`查询的解决方案**
106+
107+
1. 全文索引(索引体积大)
108+
2. 分区表 + 时间条件,缩小数据扫描范围
109+
3. 读写分离,读从库
110+
4. 加硬件,提高I/O查询性能
111+
5. 引入时序数据库 / 列存储
112+
6. 引入 Elasticsearch / Apache Lucene / Apache Solr 搜索中间件
113+
7. 引入帆软等专业报表系统(数据落库到报表系统)
114+
115+
116+
96117

97118
## 通用日期时间
98119

IDE/IDEA使用.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,8 @@ groovyScript("def result=\"${_1}\"; if(result == 'void'){return '';}else{return
528528
> 从2021+版本开始,IntelliJ IDEA 的 GUI Designer 默认将表单编译为二进制 `.form` 资源 + 反射加载方式,不再生成 `$$$setupUI$$$()` 方法和组件绑定代码到 `.java` 源文件中。
529529
530530
- 打开`File` -> `Settings` -> `Editor` -> `GUI Designer` -> `Generate GUI into`
531-
- `Binary class files` 默认,无 `$$$setupUI$$$()` 代码
532-
- `Java source code` 旧模式,会生成 `$$$setupUI$$$()`
531+
- `Binary class files` 默认,无 `$$$setupUI$$$()` 代码,如果使用`mvn`执行编译会丢失相应的字节码,除非使用`Javac2`方式(有弊端)
532+
- `Java source code` 旧模式,会生成 `$$$setupUI$$$()`,最推荐(不用区分IDEA大版本)
533533

534534
> `Build > Rebuild Project` 重新编译项目以生成代码
535535

Other/Bookmarks.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
* [https://www.languagereactor.com](https://www.languagereactor.com)
6060
* [https://youglish.com](https://youglish.com)
6161
* [https://medevel.com/tag/open-source](https://medevel.com/tag/open-source)
62+
* 用「编号 + 索引」组织资料/事项 [https://johnnydecimal.com](https://johnnydecimal.com)
6263

6364

6465

PL/C.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@
174174
* [https://github.com/lwip-tcpip/lwip](https://github.com/lwip-tcpip/lwip)
175175
* [https://github.com/openucx/ucx](https://github.com/openucx/ucx)
176176
* [https://github.com/warmcat/libwebsockets](https://github.com/warmcat/libwebsockets)
177+
* [https://github.com/litespeedtech/lsquic](https://github.com/litespeedtech/lsquic)
177178
* 实时传输协议 [https://github.com/cisco/libsrtp](https://github.com/cisco/libsrtp)
178179
* [https://github.com/sctplab/usrsctp](https://github.com/sctplab/usrsctp)
179180
* [https://libwebsockets.org](https://libwebsockets.org)

PL/人工智能.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,10 +524,18 @@
524524
* 百度飞桨 [https://github.com/PaddlePaddle/PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR)
525525
* [https://github.com/RapidAI/RapidOCR](https://github.com/RapidAI/RapidOCR)
526526
* [https://github.com/MyMonsterCat/RapidOcr-Java](https://github.com/MyMonsterCat/RapidOcr-Java)
527-
* [https://gitee.com/lc_monster/rapid-ocr-java](https://gitee.com/lc_monster/rapid-ocr-java)
527+
* [https://gitee.com/lc_monster/rapid-ocr-java](https://gitee.com/lc_monster/rapid-ocr-java)
528+
* [https://github.com/hiroi-sora/PaddleOCR-json](https://github.com/hiroi-sora/PaddleOCR-json)
529+
* [https://github.com/jerrylususu/PaddleOCR-json-java-api](https://github.com/jerrylususu/PaddleOCR-json-java-api)
530+
* [https://github.com/geekwenjie/SmartJavaAI](https://github.com/geekwenjie/SmartJavaAI)
531+
* [https://github.com/deepjavalibrary/djl](https://github.com/deepjavalibrary/djl)
532+
* [https://github.com/katanaml/sparrow](https://github.com/katanaml/sparrow)
528533
* [https://github.com/hiroi-sora/Umi-OCR](https://github.com/hiroi-sora/Umi-OCR)
529534
* [https://github.com/miaomiaosoft/PandaOCR](https://github.com/miaomiaosoft/PandaOCR)
530535
* [https://github.com/WenmuZhou/PytorchOCR](https://github.com/WenmuZhou/PytorchOCR)
536+
* [https://github.com/jiangnanboy/JiaJiaOCR](https://github.com/jiangnanboy/JiaJiaOCR)
537+
* [https://github.com/mymagicpower/AIAS](https://github.com/mymagicpower/AIAS)
538+
* [https://gitee.com/mymagicpower/AIAS](https://gitee.com/mymagicpower/AIAS)
531539
* [https://github.com/microsoft/unilm](https://github.com/microsoft/unilm)
532540
* [https://github.com/ocropus](https://github.com/ocropus)
533541
* [https://sourceforge.net/projects/jocr](https://sourceforge.net/projects/jocr)

PL/技术概念.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@
115115
4. 队列补偿机制,避免逻辑错误导致空消费队列,数据放回队列
116116
5. 应用崩溃/服务器宕机,重启恢复逻辑,避免数据丢失浪废
117117

118+
> 还有一种方式:利用乐观锁,如果报错,就重试,直到成功,但要限制重试次数。
119+
118120

119121

120122
## 数据结构与算法

System/Linux网络防火墙.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ firewall-cmd --query-panic
238238
- [https://github.com/georgyo/ifconfig.io](https://github.com/georgyo/ifconfig.io)
239239
- [https://github.com/missdeer/ifconfig](https://github.com/missdeer/ifconfig)
240240
- [https://github.com/ipinfo](https://github.com/ipinfo)
241+
- [https://ipinfo.io](https://ipinfo.io)
241242
- [https://github.com/pronto/ifconfig.pro](https://github.com/pronto/ifconfig.pro)
242243
- [https://github.com/ngoduykhanh/ifconfig.top](https://github.com/ngoduykhanh/ifconfig.top)
243244
- [https://github.com/ftao/python-ifcfg](https://github.com/ftao/python-ifcfg)

System/Nginx.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
+ [https://github.com/digitalocean/nginxconfig.io](https://github.com/digitalocean/nginxconfig.io)
1414
+ [https://www.digitalocean.com/community/tools/nginx](https://www.digitalocean.com/community/tools/nginx)
1515
+ [https://github.com/alibaba/tengine](https://github.com/alibaba/tengine)
16+
+ [https://github.com/alibaba/tengine-ingress](https://github.com/alibaba/tengine-ingress)
1617

1718

1819
* [https://github.com/hfpp2012/nginx-tutorial](https://github.com/hfpp2012/nginx-tutorial)

System/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,9 @@
416416
* [https://github.com/zalando/skipper](https://github.com/zalando/skipper)
417417
* [https://github.com/tobychui/zoraxy](https://github.com/tobychui/zoraxy)
418418
* [https://github.com/litespeedtech/openlitespeed](https://github.com/litespeedtech/openlitespeed)
419+
* [https://github.com/cherokee/webserver](https://github.com/cherokee/webserver)
420+
* [https://github.com/dotnet/yarp](https://github.com/dotnet/yarp)
421+
* [https://aprelium.com/abyssws](https://aprelium.com/abyssws)
419422
* L4LB [https://github.com/facebookincubator/katran](https://github.com/facebookincubator/katran)
420423
* [https://github.com/davidcoles/vc5](https://github.com/davidcoles/vc5)
421424
* IP漂移 [https://github.com/acassen/keepalived](https://github.com/acassen/keepalived)
@@ -437,6 +440,8 @@
437440
* [https://github.com/tinyproxy/tinyproxy](https://github.com/tinyproxy/tinyproxy)
438441
* 缓存代理 [https://github.com/squid-cache/squid](https://github.com/squid-cache/squid)
439442
* [https://github.com/varnishcache/varnish-cache](https://github.com/varnishcache/varnish-cache)
443+
* [https://gitlab.com/uplex/varnish](https://gitlab.com/uplex/varnish)
444+
* [Varnish缓存加速](https://durative.github.io/2025/04/10/Varnish-webcache)
440445
* [https://github.com/varnish](https://github.com/varnish)
441446
442447

System/Windows软件.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@
160160
* Android [https://github.com/DrKLO/Telegram](https://github.com/DrKLO/Telegram)
161161
* [https://github.com/Telegram-FOSS-Team/Telegram-FOSS](https://github.com/Telegram-FOSS-Team/Telegram-FOSS)
162162
* [https://github.com/NekoX-Dev/NekoX](https://github.com/NekoX-Dev/NekoX)
163+
* [https://github.com/NextAlone/Nagram](https://github.com/NextAlone/Nagram)
164+
* [https://iturrit.com](https://iturrit.com)
165+
* [https://github.com/tgnav/tgwiki](https://github.com/tgnav/tgwiki)
163166
* iOS [https://github.com/TelegramMessenger/Telegram-iOS](https://github.com/TelegramMessenger/Telegram-iOS)
164167
* macOS [https://github.com/overtake/TelegramSwift](https://github.com/overtake/TelegramSwift)
165168
* Windows [https://github.com/telegramdesktop/tdesktop](https://github.com/telegramdesktop/tdesktop)
@@ -1154,6 +1157,7 @@ THUV2-32HH7-6NMHN-PTX7Y-QQCTH(该序列号来自昔阳县政府)
11541157
* [https://sourceforge.net/projects/kpenhentryview](https://sourceforge.net/projects/kpenhentryview)
11551158
* [https://github.com/smorks/keepassnatmsg](https://github.com/smorks/keepassnatmsg)
11561159
* [https://sourceforge.net/projects/webautotype](https://sourceforge.net/projects/webautotype)
1160+
* [https://github.com/pfn/keepshare](https://github.com/pfn/keepshare)
11571161
* [https://www.keepersecurity.com](https://www.keepersecurity.com)
11581162
* Eziriz IntelliLock
11591163
* [https://github.com/lastpass](https://github.com/lastpass)

0 commit comments

Comments
 (0)