Can we see your SQL statement? It may be that you need to make your query more efficient, or close a loop or something.