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

> encode_records_sequential — 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#L228-L237)&#x20;

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

Encodes records sequentially using serde\_avro\_fast.Use this for small batches (\<500 records) where parallel overhead would outweigh benefits. For automatic threshold handling, use `encode_records`.


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