3 ms·
In my experience, spotlight re-indexing mostly happens if you run out of disk space and the OS decides to drop spotlights caches in favor of swap space. If you
by pcl 10y ago
In my experience, spotlight re-indexing mostly happens if you run out of disk space and the OS decides to drop spotlights caches in favor of swap space. If you keep an eye on the size of your swap files (in the /var/vm dir), you can see when things go nuts and take corrective action before the index gets whacked.
- davidf18 10y agoIMHO, this is a "bug" because if you are running on battery, the indexing is a problem and it is also a problem if you are using spotlight. Is there an option to ensure that the spotlight cache is not deleted?
- mmjaa 10y agoSpotlight has given me so many headaches in the last few weeks that I'm seriously considering investing the time to understand it well enough to build an app to wrestle it to the ground and beat it over the head with a big stick. If only there'd be a reason to do it other than "gain control over my life again" ..
- manmal 10y agoWell, I'd buy that tool. Spotlight watchdog.
- pcl 10y agoIf you just want to beat it over the head with a stick, you can simply turn indexing off on a per-volume basis: sudo mdutil -i off / You can also exclude certain directories or volumes in the Privacy section of Spotlight preferences.
- davidf18 10y agoBut if you turn it off, then you can't use Spotlight to find files at all, whereas if it is on, then one can use it.
- mmjaa 10y agoYeah this makes Xcode and Mail unusable in my opinion so its not really an option .. I simply have to empty the disk and let Spotlight re-index it. One of those facts of MacOS life ..