Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Database performance tweaks #2619

Merged
merged 1 commit into from
Oct 14, 2016
Merged

Database performance tweaks #2619

merged 1 commit into from
Oct 14, 2016

Conversation

arkpar
Copy link
Collaborator

@arkpar arkpar commented Oct 14, 2016

No description provided.

@arkpar arkpar added A0-pleasereview 🤓 Pull request needs code review. B0-patch M4-core ⛓ Core client code / Rust. labels Oct 14, 2016
@@ -31,8 +31,7 @@ pub const DEFAULT_ACCOUNT_PRESET: usize = 1000000;

pub const ACCOUNT_BLOOM_HASHCOUNT_KEY: &'static [u8] = b"account_hash_count";

const STATE_CACHE_BLOCKS: usize = 8;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There are some stale blocks that overflow the limit occasionally

@@ -264,6 +266,8 @@ impl Database {
if !config.wal {
write_opts.disable_wal(true);
}
let mut read_opts = ReadOptions::new();
read_opts.set_verify_checksums(false);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Improves read performance quite a bit

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 86.465% when pulling b887f12 on db-opt into 4581469 on master.

@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Oct 14, 2016
@gavofyork gavofyork merged commit 835cd13 into master Oct 14, 2016
@gavofyork gavofyork deleted the db-opt branch October 14, 2016 12:44
arkpar added a commit that referenced this pull request Oct 14, 2016
arkpar added a commit that referenced this pull request Oct 14, 2016
* v1.3.8

* mitigate refcell conflict in state diffing (#2601)

* mitigate refcell conflict in state diffing

Also uses RefCell::get_mut in a few places.

* Add test case

* Fixed stalled sync

* Fixed tx queue limit for local transactions (#2616)

* Fixed tx queue limit for local tx

* Fixing test

* Increas gas limit to 20x

* Additional logs when transactions is removed from queue (#2617)

* Database performance tweaks (#2619)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants