Split schema and row processing

The recursive calls into `read` caused unnecessary slowness in the
connection phase. The actual first row should only be read when the data
is requested. This can possibly solve the false timeout errors caused by
slow sending of the first row of data.
This commit is contained in:
Markus Mäkelä
2018-08-27 13:22:16 +03:00
parent 69f53f886d
commit 68b4f20436
2 changed files with 40 additions and 20 deletions

View File

@ -145,6 +145,7 @@ private:
bool do_auth();
bool do_registration();
bool read_row(std::string& dest);
bool read_schema();
void process_schema(json_t* json);
SRow process_row(json_t*);
bool is_error();