Is there a way to get the size in bytes of an Ecto result set?

I’m trying something where I need to be able to track the byte size of results of several queries but I can’t seem to find it in the docs.

1 Like

the size of the result set on the wire from your database? or the size in memory as elixir terms? or the size when serialized to send to a client?

1 Like

Size in memory in Elixir terms, if an agent were to hold it.

1 Like

:erts_debug.size(value)

3 Likes