Read-only database design: do guidelines differ because updates never occur?

Database Database Design Using Normalization Difficulty: Easy
Choose an option
  • A
    Valid (read-only designs prioritize query performance and may denormalize)
  • B
    Invalid (read-only and OLTP databases follow identical priorities)
  • C
    Valid only if indexes are disabled
  • D
    Depends solely on hardware speed
  • E
    Applies only to columnar databases

Answer

Correct Answer: Valid (read-only designs prioritize query performance and may denormalize)

Explanation

Introduction / Context: Read-only databases—such as reporting marts or historical archives—have different operational characteristics than online transaction processing (OLTP) systems. Since updates do not occur, designers can adopt guidelines that emphasize fast reads, summarization, and precomputation without worrying about update anomalies.

Given Data / Assumptions:

  • Workload is dominated by complex queries and aggregations.
  • No user-initiated inserts/updates/deletes occur during normal operation.
  • Data may be loaded in batches and then queried extensively.

Concept / Approach: In read-only contexts, denormalization (for example, star schemas), materialized views, pre-aggregated tables, and additional indexes are common to accelerate analytics. Constraints may still be defined but are oriented toward ensuring load-time quality rather than enforcing transactional integrity during writes. Partitioning and columnar storage may be preferred for scan-heavy workloads.

Step-by-Step Solution:

Identify query patterns and required aggregations.Choose schemas favoring read performance (star/snowflake) and create useful indexes.Consider materialized views and summaries to avoid recomputation.Design batch ETL/ELT processes to refresh data while preserving query availability.

Verification / Alternative check: Benchmark representative analytical queries on normalized vs. denormalized schemas. Read-only designs typically show markedly better performance with denormalization and appropriate indexing.

Why Other Options Are Wrong:

  • Claiming identical priorities ignores the lack of updates and different performance goals.
  • Index status, hardware speed, or storage format alone do not define the design philosophy.

Common Pitfalls: Over-denormalizing without documenting lineage; allowing uncontrolled duplication that complicates refreshes; forgetting to enforce integrity during data loading.

Final Answer: Valid (read-only designs prioritize query performance and may denormalize)

Discussion & Comments
No comments yet. Be the first to comment!
More Questions from Database Design Using Normalization
Join Discussion