public static Mbtiles newReadOnlyDatabase(Path path, Arguments options) {
    Objects.requireNonNull(path);
    SQLiteConfig config = new SQLiteConfig();
    config.setReadOnly(true);
    config.setCacheSize(100_000);
    config.setLockingMode(SQLiteConfig.LockingMode.EXCLUSIVE);
    config.setPageSize(32_768);
    // helps with 3 or more threads concurrently accessing:
    // config.setOpenMode(SQLiteOpenMode.NOMUTEX);
    Connection connection = newConnection("jdbc:sqlite:" + path.toAbsolutePath(), config, options);
    return new Mbtiles(connection, options, () -> 0);
  }
Returns a new connection to an mbtiles file optimized for reads with extra mbtiles and pragma options set from
{@code options}.
planetiler-core/src/main/java/com/onthegomap/planetiler/mbtiles/Mbtiles.java