最好的搜索SQLite数据库的方法最好的、数据库、方法、SQLite

2023-09-06 01:26:32 作者:氺墨渲染了誰の画卷

在我的应用程序,上午工作,大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.