Create and append
One
append == one atomic commit, durable on return. Append in batches rather than
row-by-row for throughput. On Infino Cloud, one append request is capped at 512 MiB of
Arrow data; target 100 MiB or less per batch (see Limits).Open an existing table
A table persists, so you create it once and open it on later runs withopen_table.
Update and delete
In Python and Node.js,update and delete match rows by a SQL predicate
string. In Rust, they take a DataFusion Expr (col(...).eq(lit(...))), where col
and lit come from the datafusion-expr crate (see the Quickstart for the
companion crates Rust needs). update replaces matched rows 1:1 with the new rows you
supply.
Compact, list, and drop
optimize accepts options (omit for engine defaults):
Change the schema
Read a table’s schema withschema(name) and change it with schema(name, patch). Both
are on the connection, not the table (in Rust the write is apply_schema).
Python
Reclaim storage (gc)
Compaction and interrupted writes can leave behind storage objects that the table no longer references.gc deletes them and reports what it reclaimed. It
only removes objects older than a grace window (in seconds), which is what keeps it
from deleting the files of a commit still in progress: choose a window longer than
your longest write. Requires durable storage.
optimize already runs gc after compacting, with a 24-hour grace window. Call gc
directly to reclaim sooner than that, for example with a one-hour window after a large
delete.
Limitations
- Writes to one table are coordinated, and can be refused. Appends can run
concurrently and publish one at a time; an
update,deleteor schema change needs the table to itself. A write that still loses after the engine’s own retries raises a conflict error that is safe to retry:ConflictErrorin Python, an error whose message startsConflictError:in Node.js,InfinoError::Conflictin Rust. On Infino Cloud a contended write surfaces differently; see Errors & retries. - One
updateordeletecan match at most 100,000 rows. Past that it is refused withmutation cap is 100000; split the predicate into ranges and run it in several calls. updateis 1:1. The matched row count must equal the replacement-row count.update/deleteneed durable storage, notmemory://.- Schema changes go through
schema(name, patch)— add, rename, retype or drop columns, on a local or Infino Cloud connection; see the binding reference.
