Skip to content

refactor(core-transaction-pool): storage#3500

Merged
faustbrian merged 1 commit into3.0from
refactor/transaction-pool/storage
Feb 14, 2020
Merged

refactor(core-transaction-pool): storage#3500
faustbrian merged 1 commit into3.0from
refactor/transaction-pool/storage

Conversation

@rainydio
Copy link
Copy Markdown
Contributor

@rainydio rainydio commented Feb 14, 2020

Summary

Related to #3499

Simpler transaction pool storage.

  • Removed table field. Storage class isn't big.
  • Removed Synchronizer. Transactions are added/removed as they arrive/leave. Disk operations aren't that slow (especially on SSDs) to require custom synchronization (dirty + sync intervals).
  • Removed bulk operations, they aren't necessary once Synchronizer is gone.

If there are sqlite performance problems then it's better to swap it for lmdb. Synchronization should be handled by database, not manually.

Checklist

  • Ready to be merged

* Removed table field. Storage class isn't that big and it reduces readability.
* Removed Synchronizer. Transactions are added/removed as they arrive/leave. Disk operations aren't that slow (especially on SSDs) to require custom synchronization (memory + dirty + sync intervals).
* Removed bulk operations, they aren't necessary once Synchronizer is gone.
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 14, 2020

Codecov Report

Merging #3500 into 3.0 will increase coverage by 0.22%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##              3.0    #3500      +/-   ##
==========================================
+ Coverage   46.93%   47.15%   +0.22%     
==========================================
  Files         536      535       -1     
  Lines       13669    13605      -64     
  Branches     1856     1848       -8     
==========================================
  Hits         6416     6416              
+ Misses       7224     7160      -64     
  Partials       29       29
Impacted Files Coverage Δ
packages/core-kernel/src/ioc/identifiers.ts 100% <ø> (ø) ⬆️
packages/core-transaction-pool/src/memory.ts 0% <ø> (ø) ⬆️
packages/core-transaction-pool/src/cleaner.ts 0% <0%> (ø) ⬆️
...ages/core-transaction-pool/src/service-provider.ts 0% <0%> (ø) ⬆️
packages/core-transaction-pool/src/connection.ts 0% <0%> (ø) ⬆️
packages/core-transaction-pool/src/storage.ts 0% <0%> (ø) ⬆️
...core-transactions/src/handlers/handler-registry.ts 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5834847...09ef047. Read the comment docs.

@faustbrian faustbrian changed the title refactor(transaction-pool): storage refactor(core-transaction-pool): storage Feb 14, 2020
@faustbrian faustbrian merged commit c558ddd into 3.0 Feb 14, 2020
@ghost ghost deleted the refactor/transaction-pool/storage branch February 14, 2020 04:18
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