Mysql
 sql >> Database >  >> RDS >> Mysql

Come impostare il timeout della query in Sequelize?

aggiungi dialectOptions

  const db2 = new Sequelize(database, username, password, {
    host: hostname,
    dialect: "mysql",
    define: {},
    dialectOptions: {
      options: {
        requestTimeout: 3000
      }
    },
    pool: {
      max: 10,
      min: 0,
      idle: 10000
    },
  });