You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
I'm getting an error when performing an aggregation on a lot of data
** (exit) an exception was raised:
** (Mongo.Error) tcp recv: unknown POSIX error - :timeout
(mongodb) lib/mongo/cursor.ex:154: anonymous fn/5 in
Enumerable.Mongo.AggregationCursor.start_fun/5
(elixir) lib/stream.ex:1392: anonymous fn/5 in Stream.resource/3
(elixir) lib/enum.ex:2507: Enum.take/2
I've tried passing cursor_timeout: false, timeout: 30_000, pool_timeout: 30_000 to the aggregate options, but nothing fixes it. The documentation doesn't state what and where timeout values should be used.