Github user ejwhite922 commented on a diff in the pull request:
https://github.com/apache/incubator-rya/pull/181#discussion_r130453675
--- Diff:
extras/indexing/src/main/java/org/apache/rya/indexing/mongodb/AbstractMongoIndexer.java
---
@@ -68,15 +73,28 @@
protected T storageStrategy;
+ private MongoDbBatchWriter<DBObject> mongoDbBatchWriter;
+
protected void initCore() {
dbName = conf.get(MongoDBRdfConfiguration.MONGO_DB_NAME);
db = this.mongoClient.getDB(dbName);
- collection =
db.getCollection(conf.get(MongoDBRdfConfiguration.MONGO_COLLECTION_PREFIX,
"rya") + getCollectionName());
+ final String collectionName =
conf.get(MongoDBRdfConfiguration.MONGO_COLLECTION_PREFIX, "rya") +
getCollectionName();
--- End diff --
Each indexer has its own batch writer right now. I figured each index
process getting their own batch writer was for the best.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---