by JonathonW · 6y ago · 0 comments
What is kinda OK today is going to definitely not be OK going forward. This algorithm has to get fixed.
One other aspect of the issue is that it's unclear why that database is now so large. It seemed like different machines had different sized databases — perhaps one angle of the solution is trimming and vacuuming.
I agree that finding out why the repository is huge seems worthwhile. I think it's been growing lately which means it might eventually get to an unsustainable size. As far as I can tell Microsoft doesn't ship any tools to make repo-size analysis easy. An open-source tool was suggested in one of the comments on my blog.
Exactly. It's 1.9 GB on your machine, whereas on a plain home-use computer it's less than 50 MB, i.e 40 times smaller. Something produces all that data there, what is that, and what's that that's being stored?
Instead the repo was being verified as a side effect of another WMI operation.
I think that the hourly verification was put in to try to diagnose some problems that were actually or suspected to be related to WMI corruption.
Even daily verification is going to cause problems, they are just less likely to be noticed, until they get to the 30+ minutes level.
The reason I’m hating on developers that use WMI when alternatives are available is because WMI is dog slow and everyone that does low-level Windows development knows it.