public WriteableTileArchive.TileWriter newTileWriter() {
    if (compactDb) {
      return new BatchedCompactTileWriter();
    } else {
      return new BatchedNonCompactTileWriter();
    }
  }
Returns a writer that queues up inserts into the tile database(s) into large batches before executing them.
planetiler-core/src/main/java/com/onthegomap/planetiler/mbtiles/Mbtiles.java