Follow the documentation on [OwnCloud backgroud jobs](http://doc.owncloud.org/server/6.0/admin_manual/configuration/background_jobs.html) to setup a cron entry to launch batches. It is the recommended way and will improve performance.