How to Include Query Timings
By default, detailed timings (duration of Lucene search, loading documents, transforming results) in queries are turned off, this is due to small overhead that calculation of such timings produces.
IDocumentQuery<T> timings(Reference<QueryTimings> timings);
Reference<QueryTimings> timingsRef = new Reference<>();
List<Product> resultsWithTimings = session.advanced().documentQuery(Product.class)
Map<String, QueryTimings> timingsMap = timingsRef.value.getTimings();
where search(Name, 'Syrup')
When you run the query with
include timings() in Studio, extra tab appears.
Include timings results