how to know whether/not a query is executing as some complex queries take much time