Can SQL Server query time-complexity (latency) reach O(1) given a set of optimizations?
Imagine one has two SQL tables containing daily time-series data. Both of the tables have primary key (and since it’s SQL Server the key is also clustered). The key is composite and includes field BUSINESS_DATE of type Date. Both table are partitioned monthly. Table_Short contains only 2 years worth of data. Table_Long contains 50 years… Read More Can SQL Server query time-complexity (latency) reach O(1) given a set of optimizations?