我正在记录某些特定查询的结果,并且工作正常,但我注意到还记录了太多元数据,如何禁用这些元数据被记录?
const pool = mariadb.createPool({
host: 'localhost',
port: 3306,
user: 'example',
password: 'pass',
waitForConnections: true,
connectionLimit: 10
});
async function asyncFunction () {
let conn;
try {
conn = await pool.getConnection();
const queryResult = await conn.query('select * from test.sb__user where id=94');
console.log(queryResult); // [ {val: 1}, meta: ... ]
} catch (err) {
throw err;
} finally {
if (conn) return conn.end();
}
}
Run Code Online (Sandbox Code Playgroud) 我无法找到 maria DB 推荐的 RAM、磁盘、核心容量数量。我们正在设置初始级别和最小数据量。所以我只需要 Maria DB 推荐的容量。
感谢你的帮助!!!