I’m synchronising an AddressBook that has > 18000 entries (albeit many are duplicate / triplicate / … that are merged on display by Android’s contact app).
At the step “Removing non-dirty resources that are not present remotely anymore”, the synchronisation fails because of TransactionTooLargeException. I first thought that the actual delete was giving a TransactionTooLarge exception, so I wrote the attached patch to make the deletes in smaller steps (one at a time).
However, now, I see that the mere query of list of entries to delete fails (!) with TransactionTooLargeException.
(Obviously the attached patch is not OK for production, it hides / ignores the TransactionTooLargeException and feigns success.)