on 12-09-2020 1:36 AM
Solved by two options;
① Close transaction manually.
1. committing the transaction manually -> call tx.commit() or tx.rollback()
2. using srv.run(query) -> wraps the queries into a separate transaction which is automatically committed or rolled back
3. binding the transaction to the incoming request, which automatically commits or rolls back depending on the success of a request -> srv.tx(req)
②Configuration of pool (generic-pool)
in package.json
add parameter 'pool' to 'requires'->'db' configuration.
{
"cds": {
"requires": {
"db": {
"kind": "hana",
"pool": {
"max": 1400,
"min": 100
}
}
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
64 | |
8 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.