Shouldn't user register listener and be notified after query completed ? Getting data from a server can take same time.