Skip to content

Method buffer_write

marufcetin edited this page Sep 1, 2026 · 1 revision

Method: buffer_write()

Turkce Dokumantasyon | English Documentation

Category: Cache & Buffer Methods
Submodule: AmberDB::Cache
Entry Type: Disk Staging Write


1. Definition and Overview

buffer_write() writes structured records to a persistent disk staging buffer file located at dbstore/buffer/${table_id}.tmp. It uses atomic temporary files and locks for safe multi-process staging during ETL pipelines and batch background workers.


2. Syntax and Signature

$adb->buffer_write($table_id, @records);

3. Practical Code Example

$adb->buffer_write("nightly_import", @processed_rows);

4. See Also

AmberDB Encyclopedia

Home · A-Z Index


Getting Started & Guides


Core Concepts


Core CRUD Methods


Query, Search & Facets


Transactions & Locks


Cache, Buffer & Low-Level


Locale & Helpers


Maintenance & Tools


Configuration Flags


File Formats


Language

Clone this wiki locally