Fix/warning persistence

This fixes performances for batches containing a lot of warnings, by storing warnings in their own entities.