Yup, I used to sleep very restlessly due to being thirsty or hungry, especially when upping training levels. Strange thing is I wouldn't realize why until I had been fully awake for quite a while, which made it pretty impossible to get back to sleep. I have a good habit now of drinking well with or after dinner, and at least one cup of herbal tea, peppermint atm, and snacking on a banana or something unless I'm really full, half an hour before bedtime. I may wake up to pee, but I'm half asleep and can get back to sleep afterwards.
