algorand / algorand/indexer

Indexer could use smaller hash indexes instead of btree indexes

オープン
#890 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る
new-feature-request performance Team Lamprey
主要言語
Go
スター
116
フォーク
95
PR マージ指標
30日以内にマージされた PR はありません

説明

## Problem

All indexer indices are btree but not all have to be.

## Solution

Replace btree indexes with hash indexes in places where only exact searches are used and the resulting hash index is significantly smaller.

One such example could be :
```
ledgerdb=# create index concurrently txn_by_tixid_hash on txn using hash (txid);
CREATE INDEX

ledgerdb=# \di+
List of relations
Schema | Name | Type | Owner | Table | Size | Description
--------+-------------------------------+-------+-------+-------------------+---------+-------------
public | txn_by_tixid | index | algo | txn | 43 GB |
public | txn_by_tixid_hash | index | algo | txn | 16 GB |
```
## Urgency

Performance optimization.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。