Skip to content

Commit

Permalink
possibly faster mongodb exists with count limit=1
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Jul 20, 2024
1 parent 9608a2d commit 16a0289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/Mongo.scala
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ final class Mongo(config: Config)(using Executor) extends MongoHandlers:
coll
.count(
selector = Some(selector),
limit = None,
limit = Some(1),
skip = 0,
hint = None,
readConcern = ReadConcern.Local
Expand Down

0 comments on commit 16a0289

Please sign in to comment.