Improve database performance by executing more queries without starting transactions.