Skip to content

Commit

Permalink
HPCC-16283 Document BUILD after MERGE
Browse files Browse the repository at this point in the history
Signed-off-by: Jim DeFabia <[email protected]>
  • Loading branch information
Jim DeFabia committed Oct 24, 2023
1 parent c0ec1dc commit 830e2c4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
9 changes: 9 additions & 0 deletions docs/EN_US/ECLLanguageReference/ECLR_mods/BltInFunc-BUILD.xml
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,15 @@ BUILD(Vehicles,SearchTerms,Payload,'vkey::st.city2');
<programlisting>nameKey := INDEX(mainTable,{surname,forename,filepos},'name.idx');
BUILD(nameKey); //gets all info from the INDEX definition
</programlisting>

<para>You can also use this form to build an index based upon two MERGEd
indexes. To write a MERGEd index to disk, you must use the BUILD
action.</para>

<para>Example:</para>

<para><programlisting>BUILD(MERGE(idx1,idx2,'~idx::MergedIndex');
</programlisting></para>
</sect2>

<sect2 id="SepIndexFromDS" role="brk">
Expand Down
13 changes: 10 additions & 3 deletions docs/EN_US/ECLLanguageReference/ECLR_mods/BltInFunc-MERGE.xml
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,14 @@
<emphasis>recordsetset</emphasis>. This is particularly useful for
incremental data updates as it allows you to merge a smaller set of new
records into an existing large dataset or index without having to re-process
all the source data again. The <emphasis>recordsetset</emphasis> form makes
merging a variable number of datasets possible when used inside a GRAPH
function.</para>
all the source data again. </para>

<para>The <emphasis>recordsetset</emphasis> form makes merging a variable
number of datasets possible when used inside a GRAPH function.</para>

<para>To write a MERGEd index to disk, you must use the BUILD action.</para>

<?hard-pagebreak ?>

<para>Example:</para>

Expand All @@ -192,4 +197,6 @@ ds4 := MERGE(SetDS,SORTED(letter,number));
OUTPUT(ds3);
OUTPUT(ds4);
</programlisting>

<para>See Also: <link linkend="BUILD">BUILD</link></para>
</sect1>

0 comments on commit 830e2c4

Please sign in to comment.