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

# BatchingStats

> BatchingStats — Kinetica Rust API

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

<pre>`pub struct BatchingStats {    pub insert_count: u64,    pub records_inserted: i64,    pub records_updated: i64,    pub flush_count: u64,    pub elapsed_ms: u64,    pub records_per_second: f64,}`</pre>

Statistics from batched SQL execution

Fields
`insert_count: u64`

Total INSERT statements executed

`records_inserted: i64`

Total records inserted via BulkInserter

`records_updated: i64`

Total records updated (for upsert mode)

`flush_count: u64`

Number of batch flushes performed

`elapsed_ms: u64`

Total elapsed time in milliseconds

`records_per_second: f64`

Records per second throughput

## Trait Implementations

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/sql.rs#L1516)
impl [Clone](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html) for [BatchingStats](https://docs.kinetica.com/content/api/rust/sql/struct.BatchingStats.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/sql.rs#L1516)
fn [clone](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#tymethod.clone)(\&self) -> [BatchingStats](https://docs.kinetica.com/content/api/rust/sql/struct.BatchingStats.md)

Returns a duplicate of the value. [Read more](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#tymethod.clone)

1.0.0 (const: [unstable](https://github.com/rust-lang/rust/issues/142757)) · [Source](https://doc.rust-lang.org/1.98.1/src/core/clone.rs.html#245-247)
fn [clone\_from](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#method.clone_from)(\&mut self, source: \&Self)

Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#method.clone_from)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/sql.rs#L1516)
impl [Debug](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html) for [BatchingStats](https://docs.kinetica.com/content/api/rust/sql/struct.BatchingStats.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/sql.rs#L1516)
fn [fmt](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html#tymethod.fmt)(\&self, f: \&mut [Formatter](https://doc.rust-lang.org/1.98.1/core/fmt/struct.Formatter.html)\<'\_>) -> [Result](https://doc.rust-lang.org/1.98.1/core/fmt/type.Result.html)

Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html#tymethod.fmt)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/sql.rs#L1516)
impl [Default](https://doc.rust-lang.org/1.98.1/core/default/trait.Default.html) for [BatchingStats](https://docs.kinetica.com/content/api/rust/sql/struct.BatchingStats.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/sql.rs#L1516)
fn [default](https://doc.rust-lang.org/1.98.1/core/default/trait.Default.html#tymethod.default)() -> [BatchingStats](https://docs.kinetica.com/content/api/rust/sql/struct.BatchingStats.md)

Returns the “default value” for a type. [Read more](https://doc.rust-lang.org/1.98.1/core/default/trait.Default.html#tymethod.default)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/sqlx_support.rs#L1188-L1199)
impl [From](https://doc.rust-lang.org/1.98.1/core/convert/trait.From.html)\<[BatchingStats](https://docs.kinetica.com/content/api/rust/sql/struct.BatchingStats.md)> for [BatchingSqlxStats](https://docs.kinetica.com/content/api/rust/sqlx_support/struct.BatchingSqlxStats.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/sqlx_support.rs#L1189-L1198)
fn [from](https://doc.rust-lang.org/1.98.1/core/convert/trait.From.html#tymethod.from)(s: [BatchingStats](https://docs.kinetica.com/content/api/rust/sql/struct.BatchingStats.md)) -> Self

Converts to this type from the input type.


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