Slow Apple Books after Monterey upgrade
I upgraded to Monterey from Big Sur and started facing issues with Books. It is very slow for the books I already have. Turning from one page to next takes 6-10 seconds and consumes over 100% CPU.
I've seen many threads with the same problem but with no solution.
What I noticed is, it works okay for new books (no lag). So the problem is for existing books with lots of highlights.
I verified it by (backing up) and deleting the folder where highlights are stored (~Library/Containers/com.apple.iBooksX/Data/Documents/AEAnnotation folder has an sqlite file). After this deletion, if I open the book which was slow earlier, it is able to flip through the pages without any lag.
Is there a way I can solve this or have the Apple developers done a poor job of querying from the sqlite DB?