3 Replies Latest reply on Oct 27, 2016 2:07 AM by Horia Chiorean

    ModeShape with MongoDb performance

    Eugeney Putilin Newbie

      I tested ModeShape with configure storing Binary Values in MongoDB and found problem with performance.

      The class MongodbBinaryStore calls db.collectionExists(..) method. But db.collectionExists method realization is very worse it call getCollectionNames() and iterate through all elements.

      From my point of view, the method listCollectionNames() from MongoDatabase with filter should be used.


      mongoDatabase.listCollections().filter(new Document("name", collectionName)).isEmpty()