If you have 500 million rows and queries filtering by Customer ID or Order ID are slow, what
would you consider for performance?
Data-modeling-made-easy
If you have 500 million rows and queries filtering by Customer ID or Order ID are slow, what
would you consider for performance?
Customers (CustomerID, Name, DOB, SSN, Address)Agents (AgentID, AgencyID, Name, CommissionRate)Products (ProductID, PolicyTypeName [Term, Whole Life], Description, BasePremium)Policies (PolicyID, CustomerID, AgentID, ProductID, EffectiveDate, ExpirationDate, Status)Policy_Coverages (CoverageID, PolicyID, CoverageAmount, PremiumAmount)Transactions (TransactionID, PolicyID, PaymentDate, AmountPaid, PaymentType)Person or Organization roles (Customer, Beneficiary, Agent, Underwriter).Fact_Policy_SalesDate_SK (Sale Date)Customer_SKAgent_SKProduct_SKBranch_SK (Sales Region/Office)Face_Amount (Total coverage value)Annual_Premium_Amount (APV)First_Year_CommissionPolicy_Count (Value: 1)Dim_Customer (SCD Type 2: Tracks history of addresses or risk ratings)Dim_Agent (SCD Type 1/2: Tracks agent hierarchy, agency, and commission tier)Dim_Product (SCD Type 1: Policy Name, Type, Term Length, Riders included)Dim_Date (Calendar attributes: Year, Quarter, Month, Day, IsWeekend)
If you have 500 million rows and queries filtering by Customer ID or Order ID are slow, what would you consider for performance?