最好的搜索SQLite数据库的方法 [英] Best way to search sqlite database

查看:384
本文介绍了最好的搜索SQLite数据库的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序,上午工作,大database.Nearly 75000条记录present在一个表(共6张桌子都没有)。我想从三个不同的表中的数据,完成了一个再寄一次。但是搜索过程slow.how我可以优化搜索过程?

In my application ,am work with a large database.Nearly 75000 records present in a table(totally 6 tables are there).i want to get a data from three different table at a time.i completed that.but the search process was slow.how can i optimise the searching process?

推荐答案

您可能要考虑使用全文搜索引擎并发出SELECT ...匹配查询来代替。请注意,您需要启用FTS引擎(它是默认禁用),并创建虚拟表,而不是常规表。你可以阅读更多关于它这里

You might want to consider using the full-text search engine and issuing SELECT...MATCH queries instead. Note that you need to enable the FTS engine (it's disabled by default) and create virtual tables instead of regular tables. You can read more about it here.

这篇关于最好的搜索SQLite数据库的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆