Skip to content

Commit

Permalink
fix: use unpaginated_read when simulating streaming for low limit q…
Browse files Browse the repository at this point in the history
…ueries
  • Loading branch information
zachdaniel committed Jul 14, 2024
1 parent 56b98e8 commit 47a7967
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ash/actions/destroy/bulk.ex
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ defmodule Ash.Actions.Destroy.Bulk do
if query.limit && query.limit < (opts[:batch_size] || 100) do
read_opts = Keyword.take(read_opts, Keyword.keys(Ash.read_opts()))

case Ash.read(query, read_opts) do
case Ash.Actions.Read.unpaginated_read(query, read_opts) do
{:ok, results} ->
run(
domain,
Expand Down
2 changes: 1 addition & 1 deletion lib/ash/actions/update/bulk.ex
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ defmodule Ash.Actions.Update.Bulk do
if query.limit && query.limit < (opts[:batch_size] || 100) do
read_opts = Keyword.take(read_opts, Keyword.keys(Ash.read_opts()))

case Ash.read(query, read_opts) do
case Ash.Actions.Read.unpaginated_read(query, read_opts) do
{:ok, results} ->
run(
domain,
Expand Down

0 comments on commit 47a7967

Please sign in to comment.