Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why waiting for a long time after querying? #69

Open
sunnyhay opened this issue Mar 29, 2017 · 2 comments
Open

why waiting for a long time after querying? #69

sunnyhay opened this issue Mar 29, 2017 · 2 comments

Comments

@sunnyhay
Copy link

Anytime when a query is executed, it never ends up immediately. Instead the query takes a few seconds. Am I missing some promise to be finished? My config is below.
Even without any query, I found function setupSql() always stops in a few seconds.

"dbconfig": {
"server": "SERVER",
"database": "staging_db",
"user": "user",
"password": "pwd"
}
const sql = require('seriate');
function setupSql() {
const dbConfig = runtimeConfig.dbconfig;
sql.setDefaultConfig(dbConfig);
}
Thanks.

@tfrancois
Copy link

tfrancois commented Jun 5, 2017

See if changing 'server' to 'host' works for you. Don't know why, but when I made this change after seeing a suggestion on stackoverflow, all my connection problems disappeared with seriate. Let me know if that works for you.

@sunnyhay
Copy link
Author

Thanks for replying. The problem is still there. Expect others' input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants