> ## 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.

# encode_arc_records_partitioned

> encode_arc_records_partitioned — Kinetica Rust API

[gpudb\_api](https://docs.kinetica.com/content/api/rust/index.md)::<wbr />[avro](https://docs.kinetica.com/content/api/rust/avro/index.md)
[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/avro.rs#L262-L306)&#x20;

<pre>`pub fn encode_arc_records_partitioned<T: Serialize + Sync + Send>(    schema: &Schema,    records: &[Arc<T>],) -> Result<Vec<Vec<u8>>, KineticaError>`</pre>

Encodes Arc-wrapped records, partitioning the batch over threads.This strategy partitions the batch into chunks (one per thread) and processes each chunk sequentially within the thread. This reduces:

<ul>
  <li>Lock contention (each thread has its own chunk)</li>
  <li>SerializerConfig creation overhead (reused within chunks)</li>
  <li>Memory allocation (pre-allocated buffers per chunk)</li>
</ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.