Mysql setup using remote

How does the Mysql setup work, if i have it to connect to a remote mysql database to retrieve user information?

Does it run quiries on the database at a given time and reconnect to the remote database everytime it runs its quiries, to update the userbase in the wildfire server?