this looks like it would just thrash the database with queries. Is there a better way we can handle this wait?