Skip to content

Commit

Permalink
added intro
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahpetty committed Jan 26, 2024
1 parent 025a9b6 commit 7f3062c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docs/working-with-deephaven-tables/merging-tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@ id: merging-tables
title: Merging tables
---

This guide discusses how to merge tables in Deephaven.
Deephaven tables can be combined via two different categories of operation: merge operations and join operations. Merge operations combine tables by stacking them vertically, one on top of the other. Join operations combine tables (or specific columns from tables) horizontally, side by side.

:::note

Merge operations combine two tables by stacking the tables one on top of the other (vertically). To combine tables (or specific columns from tables) horizontally, see [How to join tables in Deephaven](*LINK*).

:::
This guide discusses how to merge tables in Deephaven. If you want to join tables horizontally, see [How to join tables in Deephaven](*LINK*).

## Syntax

Expand Down Expand Up @@ -122,4 +118,6 @@ t_merged = merge(tables=[source1, source2, source3]).sort(order_by="Number")
result = merge_sorted(tables=[source1,source2,source3], order_by="Number")
```

![img](../assets/working-with-deephaven-tables/merge-n-sort-vs-merge-sorted.png)
![img](../assets/working-with-deephaven-tables/merge-n-sort-vs-merge-sorted.png)

When we use `merge_sorted`, our query completes ten times as fast as it does when using `merge` followed by `sort`.

0 comments on commit 7f3062c

Please sign in to comment.