The app has a separate Simperium indexer to keep track of how many notes are in a tag. The query for the indexer was using a LIKE comparator which was causing very slow queries when a user has a lot of notes (From my testing, above 400 would cause the ANR)
Test
To reproduce, build the app without this branch and launch the app with around 500 notes in an account. It may need a few tags assigned to some notes as well. Right after launch the app will freeze as the note count indexer goes bananas with long running LIKE queries.
Apply patch, restart. The app should be responsive-ish straight away!
Tap on edit tags, the note count displayed there should be accurate.
Search for a tag in the search bar, it should show up in the results and work as expected.
Review
One developer!
Release
RELEASE-NOTES.txt was updated in fc052ab with:
Fixed the app from becoming unresponsive at launch with a large amount of notes.
Fix #1621
The app has a separate Simperium indexer to keep track of how many notes are in a tag. The query for the indexer was using a
LIKE
comparator which was causing very slow queries when a user has a lot of notes (From my testing, above 400 would cause the ANR)Test
LIKE
queries.edit tags
, the note count displayed there should be accurate.Review
One developer!
Release
RELEASE-NOTES.txt
was updated in fc052ab with: Fixed the app from becoming unresponsive at launch with a large amount of notes.