Sum Of Field In Database

I’ve used to onReady function, how can I tell if the database is loading the results?