> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# insertRecordsRaw

<div className="kinetica-doxygen">
  <div id="a1ec81d92f949358379266d42ae12bae7" />

  <h2 className="memtitle"><span className="permalink"><a href="#a1ec81d92f949358379266d42ae12bae7">◆ </a></span>insertRecordsRaw() <span className="overload">\[1/2]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1InsertRecordsResponse">InsertRecordsResponse</a> gpudb::GPUdb::insertRecordsRaw </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1RawInsertRecordsRequest">RawInsertRecordsRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span></td>
          <td>)</td>
          <td> const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Adds multiple records to the specified table. </p>
      <p>The operation is synchronous, meaning that a response will not be returned until all the records are fully inserted and available. The response payload provides the counts of the number of records actually inserted and/or updated, and can provide the unique identifier of each added record.</p>
      <p>The <a className="el" href="/content/api/cpp/structgpudb_1_1RawInsertRecordsRequest#a3d1a456679d9a00cfd53ff7d08f8a06f">options</a> parameter can be used to customize this function's behavior.</p>
      <p>The <a className="el" href="/content/api/cpp/namespacegpudb#aced7e07b232676a8e62a6da2adc83110">update\_on\_existing\_pk</a> option specifies the record collision policy for inserting into a table with a <a href="/content/concepts/tables/#primary-keys" target="_top">primary key</a>, but is ignored if no primary key exists.</p>
      <p>The <a className="el" href="/content/api/cpp/namespacegpudb#a856c802e8393a8a5771f4200845b3d00">return\_record\_ids</a> option indicates that the database should return the unique identifiers of inserted records.</p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1RawInsertRecordsRequest">Request</a> object containing the parameters for the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1InsertRecordsResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a9cd9f31f32e8aeacb99efecd5c23ffe7" />

  <h2 className="memtitle"><span className="permalink"><a href="#a9cd9f31f32e8aeacb99efecd5c23ffe7">◆ </a></span>insertRecordsRaw() <span className="overload">\[2/2]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1InsertRecordsResponse">InsertRecordsResponse</a> & gpudb::GPUdb::insertRecordsRaw </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1RawInsertRecordsRequest">RawInsertRecordsRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1InsertRecordsResponse">InsertRecordsResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Adds multiple records to the specified table. </p>
      <p>The operation is synchronous, meaning that a response will not be returned until all the records are fully inserted and available. The response payload provides the counts of the number of records actually inserted and/or updated, and can provide the unique identifier of each added record.</p>
      <p>The <a className="el" href="/content/api/cpp/structgpudb_1_1RawInsertRecordsRequest#a3d1a456679d9a00cfd53ff7d08f8a06f">options</a> parameter can be used to customize this function's behavior.</p>
      <p>The <a className="el" href="/content/api/cpp/namespacegpudb#aced7e07b232676a8e62a6da2adc83110">update\_on\_existing\_pk</a> option specifies the record collision policy for inserting into a table with a <a href="/content/concepts/tables/#primary-keys" target="_top">primary key</a>, but is ignored if no primary key exists.</p>
      <p>The <a className="el" href="/content/api/cpp/namespacegpudb#a856c802e8393a8a5771f4200845b3d00">return\_record\_ids</a> option indicates that the database should return the unique identifiers of inserted records.</p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1RawInsertRecordsRequest">Request</a> object containing the parameters for the operation. </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1InsertRecordsResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1InsertRecordsResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>
</div>
