Skip to content

Commit

Permalink
fixup! update prefetch docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioSim committed Dec 8, 2023
1 parent 6956c70 commit d5fa232
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/ralph/backends/data/async_es.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ async def read( # noqa: PLR0913
ignore_errors (bool): No impact as encoding errors are not expected in
Elasticsearch results.
prefetch (int): The number of records to prefetch (queue) while yielding.
If `prefetch` is `None` it defaults to `1` - no records are prefetched.
If `prefetch` is `None` it defaults to `1`, i.e. no records are
prefetched.
max_statements (int): The maximum number of statements to yield.
If `None` (default) or `0`, there is no maximum.
Expand Down
3 changes: 2 additions & 1 deletion src/ralph/backends/data/async_mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ async def read( # noqa: PLR0913
will be ignored and logged.
If `False` (default), a `BackendException` is raised on any error.
prefetch (int): The number of records to prefetch (queue) while yielding.
If `prefetch` is `None` it defaults to `1` - no records are prefetched.
If `prefetch` is `None` it defaults to `1`, i.e. no records are
prefetched.
max_statements (int): The maximum number of statements to yield.
If `None` (default) or `0`, there is no maximum.
Expand Down
3 changes: 2 additions & 1 deletion src/ralph/backends/data/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,8 @@ async def read( # noqa: PLR0913
will be ignored and logged.
If `False` (default), a `BackendException` is raised on any error.
prefetch (int): The number of records to prefetch (queue) while yielding.
If `prefetch` is `None` it defaults to `1` - no records are prefetched.
If `prefetch` is `None` it defaults to `1`, i.e. no records are
prefetched.
max_statements (int): The maximum number of statements to yield.
If `None` (default) or `0`, there is no maximum.
Expand Down

0 comments on commit d5fa232

Please sign in to comment.