Obsidian overloards: Indexing vault takes forever?

What I’m trying to do

I just bought a new computer, and after installing Obsidian it is re-indexing my vault. With about 20k files this seems to take a very long time - time which I am unable to use my vault at all. This makes me worried about the future. What happens when I have 50k, 100k or more in a few years - not to mention in 50 years?

Is it something I am doing wrong? I have nothing activated, just my folder with my files and restricted mode.

Things I have tried

I turned on restricted mode so that any plug-ins do not interfere, but the progress bar for indexing barely moves.

Out of curiosity, not that I can help: How much does your vault weigh? Maybe that’s more important than the number of files.