harmony-one / bounties

Bounty program is to help the community take part in the development of the Harmony blockchain. It covers from core feature to validator tooling, from dApp development to DeFi integration.
MIT License
59 stars 23 forks source link

Explorer Database Investigation and Scalability #128

Open victaphu opened 1 year ago

victaphu commented 1 year ago

Description

Analyse and suggest restructure of explorer database

Context

Explorer had scalability issues which caused it to use a large amount of resources. Harmony engaged with Russel to analyse the database structure and provide some recommendations to improve the scalability. The following tasks were performed:

  1. Restructure the schema to direct the references using numeric keys than string. (20 hours)
  2. Restructure indices as per the changes in schema (20 hours)
  3. Analyse queries to avoid string searches, traverse each operations via numeric keys. Same goes with updates. (10 hours)
  4. Scripts to migrate data to local, data export and import (16 hours)
  5. Apply changes and analyse cost. (16 hours)
  6. Review and revise the changes. (8 hours)
  7. Achieved 20% gain in query speeds in a 1 million disparate datasets ( unrelated) (10 hours)

Acceptance Criteria

Reward

@sophoah as discussed here is the bounty for the work that was done by Russel. Please review

sophoah commented 1 year ago

can we move that under tracking repo instead, also I would involve @hypnagonia.

Right now my concern is that I didn't see any of those deliverables hopefully @hypnagonia did