| 136 | const fusedRowParser = PgProtocol.makeParser({ readField: success(PgTypes.makeFieldReader(binaryColumns)) }) |
| 137 | |
| 138 | const decodeRowsFused = () => { |
| 139 | let count = 0 |
| 140 | for (const message of fusedRowParser.push(binaryRowsPayload)) { |
| 141 | if (message._tag !== "DataRow") continue |
| 142 | for (let index = 0; index < message.values.length; index++) { |
| 143 | fieldSink = message.values[index] |
| 144 | } |
| 145 | count++ |
| 146 | } |
| 147 | return count |
| 148 | } |
| 149 | |
| 150 | // A wide row of cheap columns, where the view per field is most of the work. |
| 151 | const wideColumnCount = 20 |