The optical computer mice I use last me around 5 years before getting so bad at tracking that I cannot do anything with it and I lose productivity.
I believe the real problem though is dust getting up into the computer mouse but the computer mice are so cheap that it's not worth opening up and cleaning.
I just go out and buy a new one or order a new computer mouse when my old one starts acting up.