You've provided basically zero information so all you're going to get are general guesses.
My best guess is that the fields (in this example x and y) you are using on your RANK() OVER (PARTITION BY x ORDER BY y) are not properly indexed on the underlying table(s).
└> bt
Forum Etiquette: How to post data/code on a forum to get the best help[/url]