bigger batch size for postgres, proper logging
retry on failed connection flush
increase cache sizes
add exception logging