some optimizations and indexes for the main key list query

This commit is contained in:
Vincent Breitmoser
2015-11-15 02:45:21 +01:00
parent 0456caedf4
commit abfa7d743c
3 changed files with 23 additions and 15 deletions

View File

@@ -298,7 +298,7 @@ public class KeyListFragment extends LoaderFragment
}
static final String ORDER =
KeyRings.HAS_ANY_SECRET + " DESC, UPPER(" + KeyRings.USER_ID + ") ASC";
KeyRings.HAS_ANY_SECRET + " DESC, " + KeyRings.USER_ID + " COLLATE NOCASE ASC";
@Override
public Loader<Cursor> onCreateLoader(int id, Bundle args) {