Skip to content

Method read_list

marufcetin edited this page Sep 1, 2026 · 1 revision

Method: read_list()

Turkce Dokumantasyon | English Documentation

Category: Core CRUD Methods
Submodule: AmberDB
Entry Type: Batch Retrieval


1. Definition and Overview

read_list() fetches multiple records corresponding to a given list of Primary Key IDs in a single pass while strictly preserving the exact input order. Missing IDs are skipped cleanly without crashing.


2. Syntax and Signature

my @records = $adb->read_list($table_id, \@id_list);

3. Practical Code Example

# 1. Fetch search result IDs
my ($count, @product_ids) = $adb->search_table("catalog_product", "headset", 0, 10, keys_only => 1);

# 2. Batch load full record payloads while maintaining search ranking order
my @products = $adb->read_list("catalog_product", \@product_ids);

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