I would say that all day on its own is too long for a solitary dog. I have two and always go home at lunchtime to walk them if nobody is home with them.

That 20 minute walk breaks up their day and mine. However, as others have said it depends entirely on the dog in question and how much attention it will get when you are at home