Im making a url generator in nodejs with a mongodb, and it's querying the mongodb inside a while loops which is a bad idea yes I know... and then it hangs up the server when it doesnt work xD
so I know it's an async issue, but I cant find a better but just as easy solution. heres my code: http://pastebin.com/teWsWfCK