Type: Posts; User: GregBrannon
Here's an example. There are others.
Use a profiler to determine what's happening when the code appears to be stuck or seems to be taking too long to complete.