Android search : Use FTS tables along with normal SQLite DB Tables

后端 未结 1 1299
慢半拍i
慢半拍i 2021-01-01 00:16

This is more of a design question - not just a coding question.

I already have an app that stores data in SQLite DB tables. Now I want to add Search feature into thi

相关标签:
1条回答
  • 2021-01-01 00:23

    FTS tables cannot be efficiently queried for non-FTS searches, so option 1 is out.

    The entire FTS table essentially is an index. This is a speed/space tradeoff, and the ability to do full-text searches usually is worth it. To avoid storing the original text twice, use external content tables.

    To keep the original and FTS tables in sync, use triggers.

    0 讨论(0)
提交回复
热议问题