I have been experiencing a lot of lag with Cursor until I remembered that I had added many docs, some of which consistently had errors. I added them a long time ago, and today I finally deleted all the docs, and I found that it no longer lags
Request the official solution, the docs are still useful, the people need it.