Skip to content

Commit

Permalink
[docs] Clean up and simplify wording in yb_hash_code doc (#10813)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanujnay112 authored Dec 10, 2021
1 parent bf17f4a commit 9f3ab2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/content/latest/api/ysql/exprs/func_yb_hash_code.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ EXPLAIN ANALYZE SELECT * FROM sample_table WHERE yb_hash_code(x,z) <= 128 and yb
(6 rows)
```

In this example, only the first clause is pushed down to an index, `sample_idx`. The rest are filters executed at the YSQL level. The reason why the optimizer chose this particular filter to push down is that it has the lowest selectivity as determined by the low number of hash values it filters for compared to the `yb_hash_code(x,y) >= 5` filter.
In this example, only the first clause is pushed down to an index, `sample_idx`. The rest are filters executed at the YSQL level. The optimizer prefers to push down this particular filter because it selects the fewest rows as determined by the low number of hash values it filters for compared to the `yb_hash_code(x,y) >= 5` filter.

## Use Case Examples

Expand Down
2 changes: 1 addition & 1 deletion docs/content/stable/api/ysql/exprs/func_yb_hash_code.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ EXPLAIN ANALYZE SELECT * FROM sample_table WHERE yb_hash_code(x,z) <= 128 and yb
(6 rows)
```

In this example, only the first clause is pushed down to an index, `sample_idx`. The rest are filters executed at the YSQL level. The reason why the optimizer chose this particular filter to push down is that it has the lowest selectivity as determined by the low number of hash values it filters for compared to the `yb_hash_code(x,y) >= 5` filter.
In this example, only the first clause is pushed down to an index, `sample_idx`. The rest are filters executed at the YSQL level. The optimizer prefers to push down this particular filter because it selects the fewest rows as determined by the low number of hash values it filters for compared to the `yb_hash_code(x,y) >= 5` filter.

## Use Case Examples

Expand Down

0 comments on commit 9f3ab2f

Please sign in to comment.