Hello we find another bug in Dremio, we have a mongo collection with 49232729 documents, when try run a query we receive Timeout while receiving message
error
debuggin Dremio in MongoTable
in the method
private long getTotalDocuments() {
MongoDatabase db = this.manager.getMetadataClient().getDatabase(this.collection.getDatabase());// 136
com.mongodb.client.MongoCollection<Document> docs = db.getCollection(this.collection.getCollection());// 137
return docs.countDocuments();// 138
}
are calling countDocuments
which can take too many time, instead must be use estimatedDocumentCount