The current query method uses getQueryResults RPC to read rows of the results. However, benchmark shows that listTableData run significantly faster. Experiments in Go shows getQueryResults take 70% longer.
The choice of RPC is an implementation detail and can be changed whenever. However, listTableData returns fewer fields. In Java, we decided to tweak the API surface to make it easier to change RPC later. Of course, the change to API needs to happen before GA.
Will Node require any API change?
The current
querymethod usesgetQueryResultsRPC to read rows of the results. However, benchmark shows thatlistTableDatarun significantly faster. Experiments in Go showsgetQueryResultstake 70% longer.The choice of RPC is an implementation detail and can be changed whenever. However,
listTableDatareturns fewer fields. In Java, we decided to tweak the API surface to make it easier to change RPC later. Of course, the change to API needs to happen before GA.Will Node require any API change?