CodeChain-io / CodeChain-io/codechain-indexer

The asset type field is duplicated in the snapshot API

Open
#328 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
21
Forks
15
PR merge metrics
No merged PRs in 30d

Description

In the result of snapshot API, all rows have the same asset scheme information. Let's remove the duplication.

When indexer queries the snapshot in the DB it joins the `AssetSchemes` table. Let's split the query.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the snapshot API query that joins the AssetSchemes table, then inspect how the joined asset scheme data is included in each result row. Split the database query so the shared asset scheme information is not duplicated in every row. Confirm that snapshot API results still contain the asset scheme information without repeating it per row.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, database
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.