What are the limits of the influxdb when using the node.js sdk?

Hello there,

I am sorry for my bad English it’s not my first language. I am currently trying to rename one tag from a bunch of data. Thus far, I know, that I need to query the data, rename the tag, write it to the bucket. (Deleting the data is not wished)
The influx is running on a vm with 8 cores, 31.3 Gb in a docker container.
I am using typescript with the node.js skd. First I tried using query. But it alwayes endet up with a memory overflow on my pc. Now I tried .iterateRows but it doesent do the console log.

async function query(requestString:string) {
    for await (const {values, tableMeta} of queryAPI.iterateRows(requestString)) {
      const o = tableMeta.toObject(values)
      console.log(o)
    }
}

const requestArray: Array<string> = createRequestArray();

for(let i = 0; i < requestArray.length; i++){
  //queryAPI.queryRows(requestArray[i], observer);
  query(requestArray[i]);

}

This is the code snippet. If you need further context I am happy to provide.
Thanks in advance.