Open arichiardi opened 4 years ago
I found that this article would actually work but how to chain calls in monger
?
https://dzone.com/articles/mongo-aggregates-and-how-to-explain-aggregate-quer
as the article suggests you have to run explain with the executionStats option which unfortunately doesn't seem to be supported by the java driver :'( here the api only allows AggregateOptions not any explain options. You could potentially profile your query using the MongoDB shell and then using it in your clojure application. if you really want to do it in clojure you can manually use the raw runCommand interface through java interrop but that would be a bit painful.
Hi there!
Still new to Mongo but I wanted to get the execution time of my
aggregate
queries and while I am usingexplain-aggregate
function, I cannot really see theexecutionStats
section returned from it.My Mongo is from the
3.6.17-xenial
docker image.Is there any way to access that information?