Skip to content

Problem: validation runs redundant queries#2409

Merged
kansi merged 1 commit intobigchaindb:masterfrom
vrde:improve-create-processing
Jul 25, 2018
Merged

Problem: validation runs redundant queries#2409
kansi merged 1 commit intobigchaindb:masterfrom
vrde:improve-create-processing

Conversation

@vrde
Copy link
Copy Markdown
Contributor

@vrde vrde commented Jul 25, 2018

Solution: when a transaction is stored, the system splits it in three
components, data, metadata, and the other fields of the transaction.
When the system retrieves a transaction, it needs to make three
different queries to reconstruct the original transaction. If a
transaction does not exist, the system does three queries anyway, even
if just one query is enough. This patch fixes this by doing the
additional queries if and only if the transaction exists.

Solution: when a transaction is stored, the system splits it in three
components, data, metadata, and the other fields of the transaction.
When the system retrieves a transaction, it needs to make three
different queries to reconstruct the original transaction. If a
transaction does not exist, the system does three queries anyway, even
if just one query is enough. This patch fixes this by doing the
additional queries if and only if the transaction exists.
@vrde vrde requested a review from kansi July 25, 2018 12:58
@codecov-io
Copy link
Copy Markdown

codecov-io commented Jul 25, 2018

Codecov Report

Merging #2409 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff           @@
##           master   #2409   +/-   ##
======================================
  Coverage    86.9%   86.9%           
======================================
  Files          38      38           
  Lines        2169    2169           
======================================
  Hits         1885    1885           
  Misses        284     284

@kansi kansi merged commit d0a24ef into bigchaindb:master Jul 25, 2018
@vrde vrde deleted the improve-create-processing branch July 25, 2018 14:59
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.

3 participants