Given a database cursor, what's the most graceful approach to return the data to the client while minimizing memory usage in ktor?
For example, with Python+Flask, it is possible to return a generator that will write values to a stream until the generator runs out.