Skip to content

Problem: No MongoDB support for election ID index.#2507

Merged
ldmberman merged 1 commit intobigchaindb:masterfrom
ldmberman:remove-election-id-unique-index
Sep 3, 2018
Merged

Problem: No MongoDB support for election ID index.#2507
ldmberman merged 1 commit intobigchaindb:masterfrom
ldmberman:remove-election-id-unique-index

Conversation

@ldmberman
Copy link
Copy Markdown
Contributor

Solution: Election ID has to be unique but not every validator set record has it. MongoDB does not support partial indexes, does not even allow for multiple Nones. This is a temporary fix since we are introducing an election collection to store election IDs in #2498.

Solution: Election ID has to be unique but not every validator set record has it. MongoDB does not support partial indexes, does not even allow for multiple Nones. This is a temporary fix since we are introducing an `election` collection to store election IDs in bigchaindb#2498.
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #2507 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2507      +/-   ##
==========================================
- Coverage   91.48%   91.48%   -0.01%     
==========================================
  Files          41       41              
  Lines        2397     2396       -1     
==========================================
- Hits         2193     2192       -1     
  Misses        204      204

@ldmberman ldmberman merged commit fe0a4c4 into bigchaindb:master Sep 3, 2018
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