citusdata / citusdata/postgresql-topn

PruneHashTable strategy

Open
#52 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
249
Forks
27
PR merge metrics
No merged PRs in 30d

Description

in external/topn/topn.c: PruneHashTable function

The comment said "It finds minimum and maximum frequencies first and removes the items which have lower frequency than the average of them."

The code however sort the item from hashtable and only remove `hashTableSize - numberOfRemainingElements ` items.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.