repository = new SailRepository(store);
repository.initialize();
KiWiLoaderConfiguration loaderConfiguration = new KiWiLoaderConfiguration();
if(configuration.containsKey(LoaderOptions.CONTEXT)) {
loaderConfiguration.setContext(configuration.getString(LoaderOptions.CONTEXT));
}
loaderConfiguration.setDropIndexes(configuration.getBoolean("backend.kiwi.drop-indexes", false));
if(kiwi.getDialect() instanceof PostgreSQLDialect) {
log.info("- using PostgreSQL bulk loader ... ");
loaderConfiguration.setCommitBatchSize(100000);
handler = new KiWiPostgresHandler(store,loaderConfiguration);
} else if(kiwi.getDialect() instanceof MySQLDialect) {
log.info("- using MySQL bulk loader ... ");
loaderConfiguration.setCommitBatchSize(100000);
handler = new KiWiMySQLHandler(store,loaderConfiguration);
} else {
log.info("- using generic KiWi loader ... ");
handler = new KiWiHandler(store,loaderConfiguration);
}