Hi, prior to taking up this course, I had been returning queried documents in such way,
Document doc = collection.find(query).first()
Is there any performance difference if I were to follow the lecture way of writing,
Document doc = collection.find(query).iterator().tryNext() ?
The differences may be minimum, but I want to know in definite, which is better? Because I am working on a project right now and the entire code uses “.first()”.