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

remove duplicate indexes #2517

Merged
merged 3 commits into from
Aug 9, 2019
Merged

remove duplicate indexes #2517

merged 3 commits into from
Aug 9, 2019

Conversation

ayrat555
Copy link
Contributor

@ayrat555 ayrat555 commented Aug 7, 2019

pg hero found duplicate db indexes


Details
--
On decompiled_smart_contractsdecompiled_smart_contracts_address_hash_index (address_hash)is covered byaddress_decompiler_version (address_hash, decompiler_version)
On staking_pools_delegatorsstaking_pools_delegators_delegator_address_hash_index (delegator_address_hash)is covered bypools_delegator_index (delegator_address_hash, pool_address_hash)
On transactionstransactions_to_address_hash_index (to_address_hash)is covered bytransactions_to_address_hash_recent_collated_index (to_address_hash, block_number DESC, index DESC, hash)

Changelog

  • remove duplicate indexes

Copy link
Member

@vbaranov vbaranov left a comment

Choose a reason for hiding this comment

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

@ayrat555 could you find context where those indices have been introduced?

@coveralls
Copy link

coveralls commented Aug 7, 2019

Pull Request Test Coverage Report for Build 9ae50a27-595b-487f-b4b4-b4b305d3dd69

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.09%) to 79.383%

Totals Coverage Status
Change from base Build 966493d9-43a2-49bc-be70-770c5be1b661: 0.09%
Covered Lines: 5171
Relevant Lines: 6514

💛 - Coveralls

@vbaranov vbaranov self-requested a review August 8, 2019 10:10
@vbaranov vbaranov merged commit 7dd73fd into master Aug 9, 2019
@vbaranov vbaranov deleted the ab-remove-duplicate-indexes branch August 9, 2019 08:13
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.

5 participants