检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:杨婷[1] 莫若玉 张秀娟 朱洲森[1] YANG Ting;MO Ruoyu;ZHANG Xiujuan;ZHU Zhousen(School of Physics and Electronic Engineering,Sichuan Normal University,Chengdu Sichuan 610101,China)
机构地区:[1]四川师范大学物理与电子工程学院,成都610101
出 处:《计算机应用》2023年第8期2431-2438,共8页journal of Computer Applications
基 金:国家社会科学基金资助项目(20BMZ092)。
摘 要:针对关系型数据库(RDB)现有的全文搜索方案存在的效率低下、资源占用高的问题,提出一种具有增强式辅助缓存的轻量级关系型数据库全文搜索模型。首先,该模型构建基于Redis的倒排索引,并利用缓存索引缩小搜索范围,从而用内存高效的数据处理能力解决关系型数据库I/O瓶颈,并提升系统整体性能;其次,为保证搜索结果的准确性和时效性,进一步提出索引同步策略,而且设计并实现了增量索引组件来隐藏索引处理细节,从而提高模型的易用性和通用性;最后,对于热点数据提供一种基于访问热度的索引更新机制,以降低倒排索引的内存占用。实验结果表明,所提模型在保证关系型数据库全文搜索响应速度和准确度的前提下,空间资源消耗比MySQL全文索引降低了48.8%~60.9%,比Elasticsearch降低了85.2%~96.2%,证明所提模型在实际应用中可行且有效。Aiming at the problems of low efficiency and high resource consumption in the existing full-text search schemes of Relational DataBase(RDB),a lightweight full-text search model for relational databases with enhanced secondary cache was proposed.Firstly,an inverted index based on Redis was built in the proposed model and cache index was used to reduce the search scope,which solved the I/O bottleneck of relational database with efficient data processing capacity in memory,and the overall performance of the system was improved.Secondly,in order to ensure the accuracy and real time performance of the search results,the index synchronization strategy was further proposed,and the incremental index component was designed and implemented to hide the index processing details,so as to improve the usability and universality of the model.Finally,an index update mechanism based on access heat was provided for hotspot data to reduce memory usage of the inverted index.Experimental results show that on the premise of ensuring the response speed and accuracy of full-text search in relational databases,the space resource consumption of the proposed model is 48.8%-60.9% lower than that of MySQL full-text index and 85.2%-96.2% lower than that of Elasticsearch,verifying that the proposed model is feasible and effective in practical applications.
关 键 词:MYSQL REDIS 全文搜索 倒排索引 一致性
分 类 号:TP311[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:13.59.252.174