I'm trying to get my 7000+ notes from Evernote synced into the Android app and the UI lag is making it totally unusable. A few minutes after syncing starts, I struggle to open the sidebar in the Android app because of UI lag. If I do somehow get it open, the options in the sidebar become unclickable. My notes become unclickable. Yet the list of notes somehow still remains scrollable.
This is reproducible and persists after I exit the app from the switcher. It even persists after I reinstall the app. I have tried two different sync targets (OneDrive and Joplin Cloud) and the Android app always ends up crapping out in this way, no matter which one is picked. Earlier today, I actually managed to get the entire notes database to sync without the lag, babysitting the phone for over an hour to make it happen, but the lag just ended up starting again shortly afterwards. Utterly unforgivable.
By contrast, I have connected THE EXACT SAME notes database with the web app, and it works just fine, even on Chrome on the same Android device. It's synced almost 2000 notes so far and there is no sign whatsoever of UI lag.
The only issue is that it's a bit slow to load the All Notes screen, but other than that, nothing's wrong with it. This is perplexing because isn't the web app supposed to be the same as the mobile app?
Oxygen OS 14.0 on a OnePlus 8T. 17 gigs of free storage. UI lag unnoticeable-to-nonexistent in any other app.
Do you have the desktop app synced already? If so, on the desktop app, go to File > Export all > RAW - Joplin Export Directory, and select a location to export. Once the export completes, go to this location and sort the files by size descending. Post back here a screenshot showing the file size of the largest md files in the export directory.
Also in Joplin desktop, go to Help > Synchronisation Status, and post a screenshot of the 'Sync status' section this screen as well.
My guess is the issue is because you have large md files. I suspect you might have embedded images in these large md files. Could you have a look in some of the largest ones and check if they contain content resembling a base64 encoded string?
Took me many attempts to get android to sync successfully. Google finally had the answer, and turning off android screen suspend was only one element. I stupidly failed to make a note of the fix, but maybe felt the constant under the hood version android changes meant no point.
Anyway, persevere and it should work after an overnight sync at some point! Good luck
I searched the top 10 largest files for a data:image tag and only two of them contained embedded images. One of them (the 3rd largest) contained an embed of some tiny gif image. Another (the 8th largest) contained an embedded SVG. Is this what you meant?
If this is slow while it synchronises, maybe you could try to let it fully sync overnight? Once done, sync operations will be quick and shouldn't slow down the app
@Jynto I suspect the issue was the large md files, as usually they would be under 500kb unless they have embedded content, and I've seen other cases where the Android app lags or crashes when syncing large files like this.
So you're saying the lag persists after the sync has fully completed? Does that just happen whenever it syncs (typing in a note will automatically trigger the sync) or just generally when navigating the app, even when it is not syncing? Would you mind sending a video with the app in this state, and also show how long the sync takes to complete when you trigger it manually?
If you're on android it's a good idea to install a small app called Caffeine, which keeps your screen on. Then you let the first sync run until it's finished even if it takes one hour. Also a good idea is to set the download behaviour for attachments to auto. It just works for me.