archethic-foundation / archethic-foundation/archethic-node
DB: stream instead of many reads
Open
DB
- Dominant language
- Elixir
- Stars
- 82
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the problem you discovered
`ChainIndex.get_addresses_by_type/2`
Similar to https://github.com/archethic-foundation/archethic-node/pull/1499. This function do too much File.read. It's much better to do a single stream.
### Describe the solution you'd like
_No response_
### Epic
_No response_
Contributor guide
Research direction
Start at ChainIndex.get_addresses_by_type/2 and compare its current File.read usage with pull request 1499. The work is done when the function obtains the addresses through a single stream instead of many reads; the issue does not name a test or file path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elixir
- Domain
- databases
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100