Closed
Description
I'd like a large result to produce an Error (which can be handled), rather than crashing the entire process with OutOfMemory.
This is similar in nature to limit I/O for HTTP requests:
const express = require('express')
const bodyParser = require('body-parser')
const app = express()
app.use(bodyParser.json({ limit: '5mb' }))
I imagine an option to Connection/Pool like maxResultSize
. When the result exceeds the configured number of bytes, an Error is thrown. (I understand this limit would be subject to the choice of binary and text formats...this isn't super precise, just a way to gracefully handle unexpectedly large results.)
This would significantly improve the stability of multi-operation processes using this library.
Metadata
Metadata
Assignees
Labels
No labels