Android version cannot sync all my notes. The log file shows that "Synchronizer" tried to make a huge "SELECT * FROM resources WHERE id IN (...)" query and there were too many IDs listed.
Could you limit the single query size to something that Postgres could handle?
I have removed all data and started sync multiple times, but it has never managed to sync all notes.
There is also some "Synchronizer: "Could not refresh lock - cancelling sync. Error was:", "Error: Lock has expired" -errors that are not fatal.
I tested WebDav too!
First I pushed all my notes to WebDav with my linux Joplin, and then tried to sync them to my Android device.
Same error, "SELECT * FROM resources WHERE id IN (...)".
So, it's not (actually) server end Postgre problem, it's local "Android" database problem.
Could somebody atleast point me to the right GitHub code and directory, so I can "try" to solve this problem, if nobody else have time to fix it.
Open that archive and list all *.MDs and resource -files what are bigger then 50MiB
Remove those notes at Joplin-desktop
Export (again) everything in Linux to JEX-file
Delete local (.config/joplin*) storage
Delete server (Joplin server) storage
Delete Android Joplin data from phone
Import that exported JEX back to Joplin-destop application
Start to sync all documents to Joplin server
Start Android synchronization and let it run multiple sync rounds
The main problem is of course "revisions". If you add a document, that "breaks" Android sync (like file size >50 MiB), and even if you remove it a few seconds later, the system tries to "replicate" it indefinitely.
The only way to solve the problem is to reset to whole revision history after you have managed to remove the breaking document.
Would it be "possible" to change that max resource size from 50 MiB to something (much) bigger?
OR change the code that way that if the replication system "sees" revision (add/modify) which resource size is bigger than it can handle, it would skip it or handle the situation some other way. (And alerting user that there is such problem --> user could try to fix it, or at least person knows that such document is missing in the Android phone)