If you're staying within the city proper and still have a "very long commute" (which to me is 1+ hours, I'm not sure what the means to you) it sounds like the city is still insufficiently dense.
In my experience, the vast majority of people with long commutes are commuting from suburbs/exurbs into a city center. I'm sure there are some cities that are so spread out that one could have a long commute while still staying within the city limits, but that would imply that there are people even further out with even longer commutes from the suburbs.