What is the reason for much cold water before using the hot water?How to deal with it?

What is the reason for much cold water before using the hot water?How to deal with it?

The reason is longer pipe.You should reduce the length of pipe or install hot water circulation system.