ClickHouse / ClickHouse/JSONBench

Add "needle in the haystack" queries

オープン
#8 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
Shell
スター
182
フォーク
33
PR マージ指標
30日以内にマージされた PR はありません

説明

The JSONBench dataset contains fields with big number of unique values (aka high-cardinality fields):

- did (aka user_id)
- commit.cid (aka commit_id)
- commit.record.subject.cid

Sometimes it is needed to find all the rows for the particular rarely seen value of some field. For example, to find all the rows generated by some user. Then the following query can be used for JSONBench data:

```sql
SELECT count(*) FROM bluesky WHERE data.did = 'did:plc:stwikwzlk2mepaagokthylry'
```

Another practical query is to select a row for the given commit_id:

```sql
SELECT * FROM bluesky WHERE data.commit.cid = 'bafyreielfqkpggsdqwtbtg5tyh7iqytp64paevfjbeufnw6kc7sgmjemhm'
```

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

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

評価

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

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

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