Change transactions to not use @Transactional.

Only use the absolute number of required transactions.

Fix rebuild index on windows.

Fix sort templates.