jbochi / lua-resty-cassandra

Pure Lua Cassandra client using CQL binary protocol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stream response

jbochi opened this issue · comments

Currently we read the whole response body at once:

body, err, partial = self.sock:receive(length)

It would be nice to stream the response, parsing while it's received. Probably this would increase the performance and require less memory.

I don't know if this will make much sense when we implement paging (#10).