NP
count = 0
Repo.transaction(fn() ->
...
# count = count + 1
end)
Size: a a a
NP
count = 0
Repo.transaction(fn() ->
...
# count = count + 1
end)
ŹR
ŹR
ŹR
ŹR
IA
IA
NP
query = from(n in Foo, select: n, preload: [bar: :baz])
stream = Repo.stream(query, max_rows: 1)
Repo.transaction(fn() ->
bzz = Enum.to_list(stream)
...
ŹR
ŹR
ŹR
NP
NP
ŹR
ŹR
IA
IA
IA
IA
uery = from(n in Foo, select: n, preload: [bar: :baz])
stream = Repo.stream(query, max_rows: 1)
Repo.transaction(fn() ->
Enum.to_list(stream)
|> your_method_with_row()
…
IA