Filtering a cursor the right way?

前端 未结 3 1563
我在风中等你
我在风中等你 2020-12-04 22:41

At the moment I need to filter a Cursor/CursorAdapter to only show rows that match a specific condition in the ListView. I don\'t want to requery the db all the time. I just

3条回答
  •  天命终不由人
    2020-12-04 23:16

    I've compared iterating through cursor 1790 entries against query in cursor with REGEXP and it is 1 min 15 sec against 15 sec.

    Use REGEXP - it is much faster.

提交回复
热议问题