Prevent Obsidian from indexing all files every time I open the app. As stated in the popup message, this should only happen once.
Things I have tried
I have tried searching other topics/thread s on this forum for an answer.
So far the only potential solution I found was here, that this could be caused by a corrupted file.
But since I have over 1200 files in my vault it could be very time consuming to find a specific file that is causing the error.
Does anyone have any tips on how this can be solved?
I was never actually able to solve this. I have about 1300 files by now (actually likely more) and it almost always reindexes the vault. I recently tried going through and copying them over group by group to narrow down the issue, but the problem with that is if it’s under a certain number of notes the indexing is so fast that I can’t always see if it’s doing it.
I encountered a similar repeated indexing situation on the windows version before. My case is not on the mobile version, so I don’t know if it is relevant to your case, but
I have improved the problem by deleting the indexedDB file and reinstalling Obsidian as described in the following thread.
Vault does not automatically sync on Ubuntu anymore - “Cannot read properties of null (reading ‘put’)” - Bug graveyard - Obsidian Forum
I don’t think you can use the same method with mobile, but if your other vaults you are syncing are OK, why not create a new empty vault on your phone, sync the data, and see if the problem occurs there? (Or perhaps it would be better to contact support if you are using Obsidian Sync).
Thanks guys for the input. I finally got around to investigating it and I think I found the problem.
It seems that indexing-bug was caused by the community plugin Frontmatter links. I used it quite extensively, with “links” in the frontmatter in basically all my notes.
Now that we have Obsidian version 1.4 it is finally a native feature to link to other notes in the frontmatter, which is convenient. So I just uninstalled the plugin and the indexing problem went away.
If someone else is experience this issue - I recommend to make a backup of your .obsidian folder so you don’t lose your settings and then try reinstalling the plugins one by one.
For some people it might be caused by a single file your vault, I don’t know, but if you’re lucky it’s just a bug in one of the plugins.