PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
kcenon::pacs::storage::index_config Struct Reference

Configuration for index database. More...

#include <index_database.h>

Collaboration diagram for kcenon::pacs::storage::index_config:
Collaboration graph

Public Attributes

size_t cache_size_mb = 64
 Cache size in megabytes (default: 64 MB)
 
bool wal_mode = true
 Enable WAL (Write-Ahead Logging) mode for better concurrency.
 
bool mmap_enabled = true
 Enable memory-mapped I/O for faster reads.
 
size_t mmap_size = 1024 * 1024 * 1024
 Maximum memory map size in bytes (default: 1 GB)
 

Detailed Description

Configuration for index database.

Allows customization of SQLite database behavior including caching, journaling mode, and other performance options.

Definition at line 68 of file index_database.h.

Member Data Documentation

◆ cache_size_mb

size_t kcenon::pacs::storage::index_config::cache_size_mb = 64

Cache size in megabytes (default: 64 MB)

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/storage/index_database.h.

Definition at line 70 of file index_database.h.

◆ mmap_enabled

bool kcenon::pacs::storage::index_config::mmap_enabled = true

Enable memory-mapped I/O for faster reads.

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/storage/index_database.h.

Definition at line 76 of file index_database.h.

◆ mmap_size

size_t kcenon::pacs::storage::index_config::mmap_size = 1024 * 1024 * 1024

Maximum memory map size in bytes (default: 1 GB)

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/storage/index_database.h.

Definition at line 79 of file index_database.h.

◆ wal_mode

bool kcenon::pacs::storage::index_config::wal_mode = true

Enable WAL (Write-Ahead Logging) mode for better concurrency.

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/storage/index_database.h.

Definition at line 73 of file index_database.h.

Referenced by kcenon::pacs::example::pacs_server_app::setup_database().


The documentation for this struct was generated from the following file: