I tested in vault with 100K notes and I don’t get a freeze. Maybe you have a different problem. I am pretty sure it’s not the one in this thread.
Look at this thread https://forum.obsidian.md/t/obsidian-1-9-10-is-slower-lags-choppy-electron-37/104728 and/or open a new thread and make sure to follow the BR template.