"big delays"? Are you immediately updating the table and releasing the lock? The other options mentioned above, but your approach should only have minor delays.