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

feat: remove spawn blocking calls from wallet db (contacts service) #4575

Conversation

hansieodendaal
Copy link
Contributor

Description

  • Removed spawn blocking calls for db operations from the wallet in the contacts service. (This is another PR in a couple of PRs required to implement this fully throughout the wallet code.)
  • Reset the wallet's default db connection pool size back to 16 (from 5).

Motivation and Context

As per #3982 and #4555

How Has This Been Tested?

Unit tests
Cucumber tests
System-level test

- Removed spawn blocking calls for db operations from the wallet in the
  contacts manager service. (This is another PR in a couple of PRs required
  to implement this fully throughout the wallet code.)
- Reset the wallet's default db connection pool size back to 16 (from 5).
@@ -136,7 +136,7 @@ impl Default for WalletConfig {
base_node_service_config: Default::default(),
data_dir: PathBuf::from_str("data/wallet").unwrap(),
db_file: PathBuf::from_str("db/console_wallet.db").unwrap(),
db_connection_pool_size: 5, // TODO: get actual default
db_connection_pool_size: 16, // Note: Do not reduce this default number
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is really high. I was expecting it to be only one or two connections at a time

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the start we have always tested with 16; this number slipped in somewhere. Effectively it makes read operation asynchronous.

@stringhandler stringhandler merged commit 7464581 into tari-project:development Aug 31, 2022
@hansieodendaal hansieodendaal deleted the ho_remove_spawn_bocking_calls_contacts_service branch August 31, 2022 08:01
jorgeantonio21 pushed a commit to jorgeantonio21/tari that referenced this pull request Aug 31, 2022
…ari-project#4575)

Description
---
- Removed spawn blocking calls for db operations from the wallet in the contacts service. (This is another PR in a couple of PRs required to implement this fully throughout the wallet code.)
- Reset the wallet's default db connection pool size back to 16 (from 5).

Motivation and Context
---
As per tari-project#3982 and tari-project#4555

How Has This Been Tested?
---
Unit tests
Cucumber tests
System-level test
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

Successfully merging this pull request may close these issues.

2 participants