Effect that returns a QueryResult when evaluated, but also has shorthand methods for running the query or getting the first result.
Optional
Readonly
Runs the query once and returns the first result.
O(n) in the data examined: runs the full query and takes the first result; .limit(1) bounds the work only where the executor applies the limit before scanning.
.limit(1)
Runs the query once.
Executes the full query once, O(n) in the data the executor examines.
Effect that returns a QueryResult when evaluated, but also has shorthand methods for running the query or getting the first result.