一、DM数据库全文检索基础
1.1 全文检索概念与原理:理解全文检索的核心机制
全文检索是一种通过建立文本内容的索引,实现对非结构化文本数据高效查询的技术。与传统的基于精确匹配的查询不同,全文检索能够处理自然语言文本,支持模糊匹配、关键词提取、相关性排序等高级功能。
在DM数据库中,全文检索基于倒排索引(Inverted Index)实现。倒排索引是一种将文档中的词语映射到包含该词语的文档列表的数据结构,大大提高了文本搜索的效率。
#publish-mermaid-1787501093799-0{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-1787501093799-0 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-1787501093799-0 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-1787501093799-0 .error-icon{fill:#552222;}#publish-mermaid-1787501093799-0 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-1787501093799-0 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-1787501093799-0 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-1787501093799-0 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-1787501093799-0 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-1787501093799-0 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-1787501093799-0 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-1787501093799-0 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-1787501093799-0 .marker.cross{stroke:#333333;}#publish-mermaid-1787501093799-0 svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-1787501093799-0 p{margin:0;}#publish-mermaid-1787501093799-0 .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#publish-mermaid-1787501093799-0 .cluster-label text{fill:#333;}#publish-mermaid-1787501093799-0 .cluster-label span{color:#333;}#publish-mermaid-1787501093799-0 .cluster-label span p{background-color:transparent;}#publish-mermaid-1787501093799-0 .label text,#publish-mermaid-1787501093799-0 span{fill:#333;color:#333;}#publish-mermaid-1787501093799-0 .node rect,#publish-mermaid-1787501093799-0 .node circle,#publish-mermaid-1787501093799-0 .node ellipse,#publish-mermaid-1787501093799-0 .node polygon,#publish-mermaid-1787501093799-0 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-1787501093799-0 .rough-node .label text,#publish-mermaid-1787501093799-0 .node .label text,#publish-mermaid-1787501093799-0 .image-shape .label,#publish-mermaid-1787501093799-0 .icon-shape .label{text-anchor:middle;}#publish-mermaid-1787501093799-0 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#publish-mermaid-1787501093799-0 .rough-node .label,#publish-mermaid-1787501093799-0 .node .label,#publish-mermaid-1787501093799-0 .image-shape .label,#publish-mermaid-1787501093799-0 .icon-shape .label{text-align:center;}#publish-mermaid-1787501093799-0 .node.clickable{cursor:pointer;}#publish-mermaid-1787501093799-0 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#publish-mermaid-1787501093799-0 .arrowheadPath{fill:#333333;}#publish-mermaid-1787501093799-0 .edgePath .path{stroke:#333333;stroke-width:1px;}#publish-mermaid-1787501093799-0 .flowchart-link{stroke:#333333;fill:none;}#publish-mermaid-1787501093799-0 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-1787501093799-0 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#publish-mermaid-1787501093799-0 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-1787501093799-0 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#publish-mermaid-1787501093799-0 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#publish-mermaid-1787501093799-0 .cluster text{fill:#333;}#publish-mermaid-1787501093799-0 .cluster span{color:#333;}#publish-mermaid-1787501093799-0 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#publish-mermaid-1787501093799-0 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#publish-mermaid-1787501093799-0 rect.text{fill:none;stroke-width:0;}#publish-mermaid-1787501093799-0 .icon-shape,#publish-mermaid-1787501093799-0 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-1787501093799-0 .icon-shape p,#publish-mermaid-1787501093799-0 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#publish-mermaid-1787501093799-0 .icon-shape .label rect,#publish-mermaid-1787501093799-0 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-1787501093799-0 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#publish-mermaid-1787501093799-0 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#publish-mermaid-1787501093799-0 .node .neo-node{stroke:#9370DB;}#publish-mermaid-1787501093799-0 data-look="neo".node rect,#publish-mermaid-1787501093799-0 data-look="neo".cluster rect,#publish-mermaid-1787501093799-0 data-look="neo".node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501093799-0 data-look="neo".swimlane.cluster rect{filter:none;}#publish-mermaid-1787501093799-0 data-look="neo".node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-1787501093799-0 data-look="neo".node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501093799-0 data-look="neo".node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-1787501093799-0 data-look="neo".node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501093799-0 data-look="neo".node circle .state-start{fill:#000000;}#publish-mermaid-1787501093799-0 data-look="neo".icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501093799-0 data-look="neo".icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501093799-0 :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} 原始文档
文本预处理
分词处理
构建词典
创建倒排索引
索引存储
查询处理
结果返回
1.2 DM数据库全文检索架构:系统组件与工作流程
DM数据库的全文检索架构主要由以下几个组件构成:
- 文本分析器:负责对文本内容进行分词、去除停用词等预处理操作
- 索引管理器:管理全文索引的创建、更新和维护
- 查询解析器:解析用户的全文检索请求
- 查询执行引擎:执行查询并返回结果
- 结果排序器:根据相关性对结果进行排序
这些组件协同工作,形成了一个完整的全文检索处理流程。
1.3 全文检索的优势与应用场景:选择全文检索的理由
DM数据库全文检索具有以下优势:
- 高效性:通过倒排索引实现快速检索
- 精确性:支持词语级别的精确匹配
- 灵活性:支持模糊匹配、通配符查询等
- 可扩展性:支持大规模文档集的检索
全文检索适用于多种场景,如:
- 文档管理系统:快速检索大量文档内容
- 知识库系统:实现知识的高效查找
- 舆情分析:从大量文本中提取有用信息
- 内容搜索引擎:提供类似搜索引擎的文本检索功能
二、DM执行全文检索的实践
2.1 配置全文检索环境:准备全文检索工作条件
在DM数据库中执行全文检索,首先需要正确配置环境:
- 确保DM数据库版本支持全文检索功能
- 启用全文检索相关参数:
```sql
SET ENABLE_FULLTEXT_INDEX = 1;
SET DEFAULT_FULLTEXT_PARSER = 'CHINESE';
```
- 准备文本数据表,确保表中有适合全文检索的文本字段
- 安装必要的分词词典(中文分词需要中文词典)
#publish-mermaid-1787501093973-1{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-1787501093973-1 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-1787501093973-1 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-1787501093973-1 .error-icon{fill:#552222;}#publish-mermaid-1787501093973-1 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-1787501093973-1 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-1787501093973-1 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-1787501093973-1 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-1787501093973-1 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-1787501093973-1 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-1787501093973-1 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-1787501093973-1 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-1787501093973-1 .marker.cross{stroke:#333333;}#publish-mermaid-1787501093973-1 svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-1787501093973-1 p{margin:0;}#publish-mermaid-1787501093973-1 .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#publish-mermaid-1787501093973-1 .cluster-label text{fill:#333;}#publish-mermaid-1787501093973-1 .cluster-label span{color:#333;}#publish-mermaid-1787501093973-1 .cluster-label span p{background-color:transparent;}#publish-mermaid-1787501093973-1 .label text,#publish-mermaid-1787501093973-1 span{fill:#333;color:#333;}#publish-mermaid-1787501093973-1 .node rect,#publish-mermaid-1787501093973-1 .node circle,#publish-mermaid-1787501093973-1 .node ellipse,#publish-mermaid-1787501093973-1 .node polygon,#publish-mermaid-1787501093973-1 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-1787501093973-1 .rough-node .label text,#publish-mermaid-1787501093973-1 .node .label text,#publish-mermaid-1787501093973-1 .image-shape .label,#publish-mermaid-1787501093973-1 .icon-shape .label{text-anchor:middle;}#publish-mermaid-1787501093973-1 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#publish-mermaid-1787501093973-1 .rough-node .label,#publish-mermaid-1787501093973-1 .node .label,#publish-mermaid-1787501093973-1 .image-shape .label,#publish-mermaid-1787501093973-1 .icon-shape .label{text-align:center;}#publish-mermaid-1787501093973-1 .node.clickable{cursor:pointer;}#publish-mermaid-1787501093973-1 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#publish-mermaid-1787501093973-1 .arrowheadPath{fill:#333333;}#publish-mermaid-1787501093973-1 .edgePath .path{stroke:#333333;stroke-width:1px;}#publish-mermaid-1787501093973-1 .flowchart-link{stroke:#333333;fill:none;}#publish-mermaid-1787501093973-1 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-1787501093973-1 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#publish-mermaid-1787501093973-1 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-1787501093973-1 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#publish-mermaid-1787501093973-1 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#publish-mermaid-1787501093973-1 .cluster text{fill:#333;}#publish-mermaid-1787501093973-1 .cluster span{color:#333;}#publish-mermaid-1787501093973-1 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#publish-mermaid-1787501093973-1 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#publish-mermaid-1787501093973-1 rect.text{fill:none;stroke-width:0;}#publish-mermaid-1787501093973-1 .icon-shape,#publish-mermaid-1787501093973-1 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-1787501093973-1 .icon-shape p,#publish-mermaid-1787501093973-1 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#publish-mermaid-1787501093973-1 .icon-shape .label rect,#publish-mermaid-1787501093973-1 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-1787501093973-1 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#publish-mermaid-1787501093973-1 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#publish-mermaid-1787501093973-1 .node .neo-node{stroke:#9370DB;}#publish-mermaid-1787501093973-1 data-look="neo".node rect,#publish-mermaid-1787501093973-1 data-look="neo".cluster rect,#publish-mermaid-1787501093973-1 data-look="neo".node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501093973-1 data-look="neo".swimlane.cluster rect{filter:none;}#publish-mermaid-1787501093973-1 data-look="neo".node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-1787501093973-1 data-look="neo".node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501093973-1 data-look="neo".node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-1787501093973-1 data-look="neo".node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501093973-1 data-look="neo".node circle .state-start{fill:#000000;}#publish-mermaid-1787501093973-1 data-look="neo".icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501093973-1 data-look="neo".icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501093973-1 :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} 检查DM版本
启用全文检索参数
创建文本数据表
配置分词词典
环境验证
2.2 创建全文索引:构建高效的文本检索基础
创建全文索引是实现全文检索的关键步骤:
- 确定需要建立全文索引的文本字段
- 选择适当的分词器:中文环境通常使用CHINESE分词器
- 创建全文索引:
```sql
CREATE FULLTEXT INDEX idx_document_content ON documents(content)
WITH PARSER 'CHINESE';
```
- 定期维护索引:根据数据更新情况,重建或更新索引
#publish-mermaid-1787501094075-2{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-1787501094075-2 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-1787501094075-2 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-1787501094075-2 .error-icon{fill:#552222;}#publish-mermaid-1787501094075-2 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-1787501094075-2 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-1787501094075-2 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-1787501094075-2 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-1787501094075-2 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-1787501094075-2 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-1787501094075-2 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-1787501094075-2 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-1787501094075-2 .marker.cross{stroke:#333333;}#publish-mermaid-1787501094075-2 svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-1787501094075-2 p{margin:0;}#publish-mermaid-1787501094075-2 .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#publish-mermaid-1787501094075-2 .cluster-label text{fill:#333;}#publish-mermaid-1787501094075-2 .cluster-label span{color:#333;}#publish-mermaid-1787501094075-2 .cluster-label span p{background-color:transparent;}#publish-mermaid-1787501094075-2 .label text,#publish-mermaid-1787501094075-2 span{fill:#333;color:#333;}#publish-mermaid-1787501094075-2 .node rect,#publish-mermaid-1787501094075-2 .node circle,#publish-mermaid-1787501094075-2 .node ellipse,#publish-mermaid-1787501094075-2 .node polygon,#publish-mermaid-1787501094075-2 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-1787501094075-2 .rough-node .label text,#publish-mermaid-1787501094075-2 .node .label text,#publish-mermaid-1787501094075-2 .image-shape .label,#publish-mermaid-1787501094075-2 .icon-shape .label{text-anchor:middle;}#publish-mermaid-1787501094075-2 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#publish-mermaid-1787501094075-2 .rough-node .label,#publish-mermaid-1787501094075-2 .node .label,#publish-mermaid-1787501094075-2 .image-shape .label,#publish-mermaid-1787501094075-2 .icon-shape .label{text-align:center;}#publish-mermaid-1787501094075-2 .node.clickable{cursor:pointer;}#publish-mermaid-1787501094075-2 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#publish-mermaid-1787501094075-2 .arrowheadPath{fill:#333333;}#publish-mermaid-1787501094075-2 .edgePath .path{stroke:#333333;stroke-width:1px;}#publish-mermaid-1787501094075-2 .flowchart-link{stroke:#333333;fill:none;}#publish-mermaid-1787501094075-2 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-1787501094075-2 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#publish-mermaid-1787501094075-2 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-1787501094075-2 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#publish-mermaid-1787501094075-2 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#publish-mermaid-1787501094075-2 .cluster text{fill:#333;}#publish-mermaid-1787501094075-2 .cluster span{color:#333;}#publish-mermaid-1787501094075-2 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#publish-mermaid-1787501094075-2 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#publish-mermaid-1787501094075-2 rect.text{fill:none;stroke-width:0;}#publish-mermaid-1787501094075-2 .icon-shape,#publish-mermaid-1787501094075-2 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-1787501094075-2 .icon-shape p,#publish-mermaid-1787501094075-2 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#publish-mermaid-1787501094075-2 .icon-shape .label rect,#publish-mermaid-1787501094075-2 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-1787501094075-2 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#publish-mermaid-1787501094075-2 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#publish-mermaid-1787501094075-2 .node .neo-node{stroke:#9370DB;}#publish-mermaid-1787501094075-2 data-look="neo".node rect,#publish-mermaid-1787501094075-2 data-look="neo".cluster rect,#publish-mermaid-1787501094075-2 data-look="neo".node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501094075-2 data-look="neo".swimlane.cluster rect{filter:none;}#publish-mermaid-1787501094075-2 data-look="neo".node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-1787501094075-2 data-look="neo".node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501094075-2 data-look="neo".node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-1787501094075-2 data-look="neo".node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501094075-2 data-look="neo".node circle .state-start{fill:#000000;}#publish-mermaid-1787501094075-2 data-look="neo".icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501094075-2 data-look="neo".icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501094075-2 :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} 选择文本字段
确定分词器
创建索引语法
执行索引创建
索引验证
定期维护
2.3 执行全文检索查询:使用全文检索功能
创建全文索引后,即可执行全文检索查询:
- 基本全文搜索:
```sql
SELECT * FROM documents
WHERE CONTAINS(content, '数据库技术');
```
- 高级全文搜索:
```sql
SELECT * FROM documents
WHERE CONTAINS(content, '数据库 AND 技术 NOT 编程');
```
- 模糊搜索:
```sql
SELECT * FROM documents
WHERE CONTAINS(content, '数据*');
```
- 排序搜索:
```sql
SELECT * FROM documents
WHERE CONTAINS(content, '数据库')
ORDER BY RANK(content) DESC;
```
三、DM全文检索优化与性能调优
3.1 索引优化策略:提升检索效率的关键
为了提高全文检索的性能,可以采取以下索引优化策略:
- 合理选择索引字段:只对真正需要搜索的字段建立全文索引
- 控制索引大小:定期清理不需要的索引,重建碎片严重的索引
- 使用适当的分词器:根据语言特点选择最合适的分词器
- 索引分区:对大型文档集进行索引分区,提高管理效率
- 索引更新策略:根据业务需求,选择实时更新或批量更新
#publish-mermaid-1787501094154-3{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-1787501094154-3 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-1787501094154-3 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-1787501094154-3 .error-icon{fill:#552222;}#publish-mermaid-1787501094154-3 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-1787501094154-3 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-1787501094154-3 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-1787501094154-3 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-1787501094154-3 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-1787501094154-3 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-1787501094154-3 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-1787501094154-3 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-1787501094154-3 .marker.cross{stroke:#333333;}#publish-mermaid-1787501094154-3 svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-1787501094154-3 p{margin:0;}#publish-mermaid-1787501094154-3 .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#publish-mermaid-1787501094154-3 .cluster-label text{fill:#333;}#publish-mermaid-1787501094154-3 .cluster-label span{color:#333;}#publish-mermaid-1787501094154-3 .cluster-label span p{background-color:transparent;}#publish-mermaid-1787501094154-3 .label text,#publish-mermaid-1787501094154-3 span{fill:#333;color:#333;}#publish-mermaid-1787501094154-3 .node rect,#publish-mermaid-1787501094154-3 .node circle,#publish-mermaid-1787501094154-3 .node ellipse,#publish-mermaid-1787501094154-3 .node polygon,#publish-mermaid-1787501094154-3 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-1787501094154-3 .rough-node .label text,#publish-mermaid-1787501094154-3 .node .label text,#publish-mermaid-1787501094154-3 .image-shape .label,#publish-mermaid-1787501094154-3 .icon-shape .label{text-anchor:middle;}#publish-mermaid-1787501094154-3 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#publish-mermaid-1787501094154-3 .rough-node .label,#publish-mermaid-1787501094154-3 .node .label,#publish-mermaid-1787501094154-3 .image-shape .label,#publish-mermaid-1787501094154-3 .icon-shape .label{text-align:center;}#publish-mermaid-1787501094154-3 .node.clickable{cursor:pointer;}#publish-mermaid-1787501094154-3 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#publish-mermaid-1787501094154-3 .arrowheadPath{fill:#333333;}#publish-mermaid-1787501094154-3 .edgePath .path{stroke:#333333;stroke-width:1px;}#publish-mermaid-1787501094154-3 .flowchart-link{stroke:#333333;fill:none;}#publish-mermaid-1787501094154-3 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-1787501094154-3 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#publish-mermaid-1787501094154-3 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-1787501094154-3 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#publish-mermaid-1787501094154-3 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#publish-mermaid-1787501094154-3 .cluster text{fill:#333;}#publish-mermaid-1787501094154-3 .cluster span{color:#333;}#publish-mermaid-1787501094154-3 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#publish-mermaid-1787501094154-3 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#publish-mermaid-1787501094154-3 rect.text{fill:none;stroke-width:0;}#publish-mermaid-1787501094154-3 .icon-shape,#publish-mermaid-1787501094154-3 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-1787501094154-3 .icon-shape p,#publish-mermaid-1787501094154-3 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#publish-mermaid-1787501094154-3 .icon-shape .label rect,#publish-mermaid-1787501094154-3 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-1787501094154-3 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#publish-mermaid-1787501094154-3 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#publish-mermaid-1787501094154-3 .node .neo-node{stroke:#9370DB;}#publish-mermaid-1787501094154-3 data-look="neo".node rect,#publish-mermaid-1787501094154-3 data-look="neo".cluster rect,#publish-mermaid-1787501094154-3 data-look="neo".node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501094154-3 data-look="neo".swimlane.cluster rect{filter:none;}#publish-mermaid-1787501094154-3 data-look="neo".node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-1787501094154-3 data-look="neo".node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501094154-3 data-look="neo".node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-1787501094154-3 data-look="neo".node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501094154-3 data-look="neo".node circle .state-start{fill:#000000;}#publish-mermaid-1787501094154-3 data-look="neo".icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501094154-3 data-look="neo".icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501094154-3 :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} 字段选择
分词器优化
索引分区
更新策略
碎片管理
性能监控
3.2 查询优化技巧:提升检索结果的准确性和速度
优化查询语句可以显著提高检索效率:
- 使用精确匹配:优先使用精确匹配减少结果集
- 合理使用布尔操作符:通过AND、OR、NOT等操作符缩小搜索范围
- 限制返回结果:使用LIMIT子句减少不必要的数据传输
- 使用合适的排序:根据相关性排序提高结果质量
- 避免过度使用通配符:通配符查询会降低检索效率
#publish-mermaid-1787501094222-4{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-1787501094222-4 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-1787501094222-4 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-1787501094222-4 .error-icon{fill:#552222;}#publish-mermaid-1787501094222-4 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-1787501094222-4 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-1787501094222-4 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-1787501094222-4 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-1787501094222-4 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-1787501094222-4 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-1787501094222-4 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-1787501094222-4 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-1787501094222-4 .marker.cross{stroke:#333333;}#publish-mermaid-1787501094222-4 svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-1787501094222-4 p{margin:0;}#publish-mermaid-1787501094222-4 .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#publish-mermaid-1787501094222-4 .cluster-label text{fill:#333;}#publish-mermaid-1787501094222-4 .cluster-label span{color:#333;}#publish-mermaid-1787501094222-4 .cluster-label span p{background-color:transparent;}#publish-mermaid-1787501094222-4 .label text,#publish-mermaid-1787501094222-4 span{fill:#333;color:#333;}#publish-mermaid-1787501094222-4 .node rect,#publish-mermaid-1787501094222-4 .node circle,#publish-mermaid-1787501094222-4 .node ellipse,#publish-mermaid-1787501094222-4 .node polygon,#publish-mermaid-1787501094222-4 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-1787501094222-4 .rough-node .label text,#publish-mermaid-1787501094222-4 .node .label text,#publish-mermaid-1787501094222-4 .image-shape .label,#publish-mermaid-1787501094222-4 .icon-shape .label{text-anchor:middle;}#publish-mermaid-1787501094222-4 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#publish-mermaid-1787501094222-4 .rough-node .label,#publish-mermaid-1787501094222-4 .node .label,#publish-mermaid-1787501094222-4 .image-shape .label,#publish-mermaid-1787501094222-4 .icon-shape .label{text-align:center;}#publish-mermaid-1787501094222-4 .node.clickable{cursor:pointer;}#publish-mermaid-1787501094222-4 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#publish-mermaid-1787501094222-4 .arrowheadPath{fill:#333333;}#publish-mermaid-1787501094222-4 .edgePath .path{stroke:#333333;stroke-width:1px;}#publish-mermaid-1787501094222-4 .flowchart-link{stroke:#333333;fill:none;}#publish-mermaid-1787501094222-4 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-1787501094222-4 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#publish-mermaid-1787501094222-4 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-1787501094222-4 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#publish-mermaid-1787501094222-4 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#publish-mermaid-1787501094222-4 .cluster text{fill:#333;}#publish-mermaid-1787501094222-4 .cluster span{color:#333;}#publish-mermaid-1787501094222-4 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#publish-mermaid-1787501094222-4 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#publish-mermaid-1787501094222-4 rect.text{fill:none;stroke-width:0;}#publish-mermaid-1787501094222-4 .icon-shape,#publish-mermaid-1787501094222-4 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-1787501094222-4 .icon-shape p,#publish-mermaid-1787501094222-4 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#publish-mermaid-1787501094222-4 .icon-shape .label rect,#publish-mermaid-1787501094222-4 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-1787501094222-4 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#publish-mermaid-1787501094222-4 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#publish-mermaid-1787501094222-4 .node .neo-node{stroke:#9370DB;}#publish-mermaid-1787501094222-4 data-look="neo".node rect,#publish-mermaid-1787501094222-4 data-look="neo".cluster rect,#publish-mermaid-1787501094222-4 data-look="neo".node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501094222-4 data-look="neo".swimlane.cluster rect{filter:none;}#publish-mermaid-1787501094222-4 data-look="neo".node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-1787501094222-4 data-look="neo".node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501094222-4 data-look="neo".node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-1787501094222-4 data-look="neo".node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501094222-4 data-look="neo".node circle .state-start{fill:#000000;}#publish-mermaid-1787501094222-4 data-look="neo".icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501094222-4 data-look="neo".icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501094222-4 :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} 精确匹配
布尔优化
结果限制
相关性排序
避免过度通配符
3.3 性能监控与故障排除:确保全文检索系统稳定运行
监控全文检索性能并及时处理问题:
- 监控索引大小和增长情况
- 跟踪查询响应时间和资源消耗
- 定期分析慢查询日志
- 处理常见的全文检索问题:
- 索引损坏:重建索引
- 查询性能下降:优化查询或调整索引
- 分词不准确:更新分词词典或调整分词器参数
- 内存不足:调整DM数据库内存参数
#publish-mermaid-1787501094334-5{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#publish-mermaid-1787501094334-5 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#publish-mermaid-1787501094334-5 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#publish-mermaid-1787501094334-5 .error-icon{fill:#552222;}#publish-mermaid-1787501094334-5 .error-text{fill:#552222;stroke:#552222;}#publish-mermaid-1787501094334-5 .edge-thickness-normal{stroke-width:1px;}#publish-mermaid-1787501094334-5 .edge-thickness-thick{stroke-width:3.5px;}#publish-mermaid-1787501094334-5 .edge-pattern-solid{stroke-dasharray:0;}#publish-mermaid-1787501094334-5 .edge-thickness-invisible{stroke-width:0;fill:none;}#publish-mermaid-1787501094334-5 .edge-pattern-dashed{stroke-dasharray:3;}#publish-mermaid-1787501094334-5 .edge-pattern-dotted{stroke-dasharray:2;}#publish-mermaid-1787501094334-5 .marker{fill:#333333;stroke:#333333;}#publish-mermaid-1787501094334-5 .marker.cross{stroke:#333333;}#publish-mermaid-1787501094334-5 svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#publish-mermaid-1787501094334-5 p{margin:0;}#publish-mermaid-1787501094334-5 .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#publish-mermaid-1787501094334-5 .cluster-label text{fill:#333;}#publish-mermaid-1787501094334-5 .cluster-label span{color:#333;}#publish-mermaid-1787501094334-5 .cluster-label span p{background-color:transparent;}#publish-mermaid-1787501094334-5 .label text,#publish-mermaid-1787501094334-5 span{fill:#333;color:#333;}#publish-mermaid-1787501094334-5 .node rect,#publish-mermaid-1787501094334-5 .node circle,#publish-mermaid-1787501094334-5 .node ellipse,#publish-mermaid-1787501094334-5 .node polygon,#publish-mermaid-1787501094334-5 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#publish-mermaid-1787501094334-5 .rough-node .label text,#publish-mermaid-1787501094334-5 .node .label text,#publish-mermaid-1787501094334-5 .image-shape .label,#publish-mermaid-1787501094334-5 .icon-shape .label{text-anchor:middle;}#publish-mermaid-1787501094334-5 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#publish-mermaid-1787501094334-5 .rough-node .label,#publish-mermaid-1787501094334-5 .node .label,#publish-mermaid-1787501094334-5 .image-shape .label,#publish-mermaid-1787501094334-5 .icon-shape .label{text-align:center;}#publish-mermaid-1787501094334-5 .node.clickable{cursor:pointer;}#publish-mermaid-1787501094334-5 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#publish-mermaid-1787501094334-5 .arrowheadPath{fill:#333333;}#publish-mermaid-1787501094334-5 .edgePath .path{stroke:#333333;stroke-width:1px;}#publish-mermaid-1787501094334-5 .flowchart-link{stroke:#333333;fill:none;}#publish-mermaid-1787501094334-5 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-1787501094334-5 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#publish-mermaid-1787501094334-5 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-1787501094334-5 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#publish-mermaid-1787501094334-5 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#publish-mermaid-1787501094334-5 .cluster text{fill:#333;}#publish-mermaid-1787501094334-5 .cluster span{color:#333;}#publish-mermaid-1787501094334-5 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#publish-mermaid-1787501094334-5 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#publish-mermaid-1787501094334-5 rect.text{fill:none;stroke-width:0;}#publish-mermaid-1787501094334-5 .icon-shape,#publish-mermaid-1787501094334-5 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#publish-mermaid-1787501094334-5 .icon-shape p,#publish-mermaid-1787501094334-5 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#publish-mermaid-1787501094334-5 .icon-shape .label rect,#publish-mermaid-1787501094334-5 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#publish-mermaid-1787501094334-5 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#publish-mermaid-1787501094334-5 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#publish-mermaid-1787501094334-5 .node .neo-node{stroke:#9370DB;}#publish-mermaid-1787501094334-5 data-look="neo".node rect,#publish-mermaid-1787501094334-5 data-look="neo".cluster rect,#publish-mermaid-1787501094334-5 data-look="neo".node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501094334-5 data-look="neo".swimlane.cluster rect{filter:none;}#publish-mermaid-1787501094334-5 data-look="neo".node path{stroke:#9370DB;stroke-width:1px;}#publish-mermaid-1787501094334-5 data-look="neo".node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501094334-5 data-look="neo".node .neo-line path{stroke:#9370DB;filter:none;}#publish-mermaid-1787501094334-5 data-look="neo".node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501094334-5 data-look="neo".node circle .state-start{fill:#000000;}#publish-mermaid-1787501094334-5 data-look="neo".icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501094334-5 data-look="neo".icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#publish-mermaid-1787501094334-5 :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} 索引监控
查询性能监控
慢查询分析
问题诊断
性能优化
系统维护