Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Upgrade to Sixth Normal Form #61

Open
TheLoneRonin opened this issue Apr 4, 2021 · 0 comments
Open

Upgrade to Sixth Normal Form #61

TheLoneRonin opened this issue Apr 4, 2021 · 0 comments
Labels
backlog Backlogged deliverables enhancement New feature or request

Comments

@TheLoneRonin
Copy link
Contributor

TheLoneRonin commented Apr 4, 2021

Description

  • All active queries that require sorting should be to tables in sixth normal form.

  • Primary key indexed data storing regular table metadata should be in second normal form.

  • Sixth normal form ensures optimal performance on queries.

Table Structure

General guideline for restructuring tables... Subject to change on implementation

  • Primary key for blocks table is changed to height and an integer

  • transactions table is converted into an auto increment table containing id as an integer and tx_hash as the actual transaction id.

  • Key metadata for transactions and tags are refactored to reference this id as an integer instead of varchar

References

@TheLoneRonin TheLoneRonin added enhancement New feature or request backlog Backlogged deliverables labels Apr 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backlog Backlogged deliverables enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant