What is a surrogate dimension key in a warehouse?
A warehouse surrogate key identifies a dimension row independently of the source-system business key. It supports multiple source systems and Type 2 histor
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 3253–3264 of 3610 questions
A warehouse surrogate key identifies a dimension row independently of the source-system business key. It supports multiple source systems and Type 2 histor
Normalize transactional data to protect consistency and reduce duplication; denormalize selected read models when measurements show a performance or usabil
Use integer types for compact sequential identifiers when appropriate, or UUID/GUID values for distributed generation and other requirements. Consider inde
UUIDs can be generated across services without a central allocator and can reduce exposure of sequential counts. They are wider than integer keys and their
Application validation provides friendly feedback and domain-specific rules; database constraints protect data from all writers, including scripts and othe
Cascading deletes physically remove dependent rows according to FK rules. Soft deletes mark rows as deleted and require consistent filtering and retention
Common audit fields include CreatedAt, CreatedBy, UpdatedAt, and UpdatedBy. Define UTC handling, trusted identity source, and whether history must be retai
Optimistic concurrency allows concurrent reads but detects conflicting writes using a version column or concurrency token. The application then rejects, me
Pessimistic locking locks rows or ranges to prevent conflicting operations while a transaction runs. It can be appropriate for highly contended operations
Isolation level controls how concurrent transactions observe changes and which anomalies are prevented. Common levels include Read Uncommitted, Read Commit
A dirty read occurs when a transaction reads data written by another transaction that has not committed and may later roll back.
A non-repeatable read occurs when a transaction reads the same row twice and sees different committed values because another transaction updated it between