From 7f3062c832f7874784b357bb10fe85fadc170a75 Mon Sep 17 00:00:00 2001 From: elijahpetty Date: Fri, 26 Jan 2024 10:33:02 -0600 Subject: [PATCH] added intro --- docs/working-with-deephaven-tables/merging-tables.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/working-with-deephaven-tables/merging-tables.md b/docs/working-with-deephaven-tables/merging-tables.md index 6f843cc..46ee9dc 100644 --- a/docs/working-with-deephaven-tables/merging-tables.md +++ b/docs/working-with-deephaven-tables/merging-tables.md @@ -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 @@ -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) \ No newline at end of file +![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`. \ No newline at end of file