> ## 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-javadoc">
  <ul className="member-list">
    <li>
      <div className="section detail" id="insertRecordsRaw(com.gpudb.protocol.RawInsertRecordsRequest)">
        <h3>insertRecordsRaw</h3>
        <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/InsertRecordsResponse" title="class in com.gpudb.protocol">InsertRecordsResponse</a></span> <span className="element-name">insertRecordsRaw</span><wbr /><span className="parameters">(<a href="/content/api/java/com/gpudb/protocol/RawInsertRecordsRequest" title="class in com.gpudb.protocol">RawInsertRecordsRequest</a> request)</span> throws <span className="exceptions"><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></span></div>

        <div className="block">
          Adds multiple records to the specified table. 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> The <a href="/content/api/java/com/gpudb/protocol/RawInsertRecordsRequest#getOptions()"><code>options</code></a> parameter can be used to customize this function's behavior. </p>
          <p> The <a href="/content/api/java/com/gpudb/protocol/RawInsertRecordsRequest.Options#UPDATE_ON_EXISTING_PK"><code>UPDATE\_ON\_EXISTING\_PK</code></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 href="/content/api/java/com/gpudb/protocol/RawInsertRecordsRequest.Options#RETURN_RECORD_IDS"><code>RETURN\_RECORD\_IDS</code></a> option indicates that the database should return the unique identifiers of inserted records.</p>
        </div>

        <div className="dl notes">
          <div className="dt">Parameters:</div>
          <div className="dd"><code>request</code> - <a href="/content/api/java/com/gpudb/protocol/RawInsertRecordsRequest" title="class in com.gpudb.protocol"><code>Request</code></a> object containing the parameters for the operation.</div>
          <div className="dt">Returns:</div>
          <div className="dd"><a href="/content/api/java/com/gpudb/protocol/InsertRecordsResponse" title="class in com.gpudb.protocol"><code>Response</code></a> object containing the results of the operation.</div>
          <div className="dt">Throws:</div>
          <div className="dd"><code><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></code> - if an error occurs during the operation.</div>
        </div>
      </div>
    </li>
  </ul>
</div>
