You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(node:1009) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ConnectionPool]. Use emitter.setMaxListeners() to increase limit
#1641
Closed
rajat42059 opened this issue
May 2, 2024
· 1 comment
Hi,
I am trying to fetch the records in loops from mssql,
ql.connect(config,err=>{// ... error checksconstrequest=newsql.Request()request.stream=true// You can set streaming differently for each requestrequest.query('select * from verylargetable')// or request.execute(procedure)request.on('recordset',columns=>{// Emitted once for each recordset in a query})request.on('row',row=>{// Emitted for each row in a recordset})request.on('rowsaffected',rowCount=>{// Emitted for each `INSERT`, `UPDATE` or `DELETE` statement// Requires NOCOUNT to be OFF (default)})request.on('error',err=>{// May be emitted multiple times})request.on('done',result=>{// Always emitted as the last one})})sql.on('error',err=>{// ... error handler})
I am getting the following error
(node:1009) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ConnectionPool]. Use emitter.setMaxListeners() to increase limit
How to Fix it?
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to fetch the records in loops from mssql,
I am getting the following error
How to Fix it?
The text was updated successfully, but these errors were encountered: