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
in the phpmyadmin i have too many process with sleep query. what i have done i have reduces the wait_timeout and interactive_timeout to 10. but this has a huge impact on aborted clients.
The text was updated successfully, but these errors were encountered:
here is my search function. i dont have nay complex query. don't have any ither issue. each query exection time is less .25 seconds. all tables are indexed properly.
async function searchResults(params) {
let connection = null
try {
connection = await pool.getConnection()
let db2Response = null;
const [results, metadata] = await connection.query(
`SELECT id , pName from contactsdb where nationalNumber = '${params.umr}' and countryId = 167 LIMIT 1`
);
if (results.length > 0) {
db2Response = {
status: true,
results: results
};
} else {
db2Response = {
status: false,
results: []
};
}
} catch (error) {
db2Response = {
status: false,
results: []
};
} finally {
if (connection) {
connection.release()
}
}
return db2Response
}```
in the phpmyadmin i have too many process with sleep query. what i have done i have reduces the wait_timeout and interactive_timeout to 10. but this has a huge impact on aborted clients.
The text was updated successfully, but these errors were encountered: