CodeChain-io / CodeChain-io/codechain-indexer

Use cluster for blocks and transactions

未关闭
#257 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
optimization
主要语言
TypeScript
星标
21
派生
15
PR 合并指标
30 天内没有已合并 PR

描述

The records may be inserted in the order of the block number and many API returns the result in order of the block number.
In these cases, using cluster can make the insertion and reading fast.
https://www.postgresql.org/docs/9.1/sql-cluster.html

贡献指南

这个仓库没有索引到贡献指南

调研方向

Issue 中没有确定任何文件或测试。首先定位区块表和交易表,以及按区块编号返回记录的查询,然后检查 PostgreSQL CLUSTER 的行为及其运维要求。当相关表在适当的情况下使用聚簇,并且已验证插入和按区块编号排序的读取有所改善时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
postgresql, typescript
领域
databases
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。