Release v1.34.4
Released on March 2, 2026
Executive Summary
Performance Improvements
Billing & Database
- Optimized transaction count stored procedure and database index for improved query performance (151156) (PR 24086)
Overview
This is a hotfix release containing a partial implementation of the Billing Database Write Performance Optimization feature (151156). It addresses SQL query performance issues in the transaction count procedure used for price tier calculations, eliminating an unnecessary join and optimizing the supporting non-clustered index.
Performance Improvements
Billing Database Query Optimization
-
Optimized
sp_GetTransactionCountForPriceTierstored procedure - Removed the unnecessaryLEFT JOINto the[Billing].[Transaction]table by leveragingTransactionDatedirectly from theTransactionItemtable. Added a soft-delete filter (DeletedOnDateUtc IS NULL) to ensure only active records are counted. This eliminates a join operation and reduces query complexity. (151156) (PR 24086) -
Redesigned non-clustered index on
TransactionItem- Replaced the existingIX_TransactionItem_TransactionDate_ContractId_PriceTierId_Coveringindex with a newIX_TransactionItem_ContractId_PriceTierId_TransactionDateindex. The new index reorders the key columns to match the query's filter predicate order (ContractId,PriceTierId,TransactionDate), uses a filteredWHERE [DeletedOnDateUtc] IS NULLclause, and removesDeletedOnDateUtcfrom the key columns — resulting in more efficient index seeks for transaction count queries. (151156) (PR 24086)
Files Changed
| File | Change |
|---|---|
billing/StoredProcedures/sp_GetTransactionCountForPriceTier.sql | Removed Transaction table join, query directly from TransactionItem |
billing/Tables/TransactionItem.sql | Replaced and reordered non-clustered index for optimal seek performance |
Known Issues
- This release contains only a portion of the full Billing Database Write Performance Optimization feature (151156). The remaining index optimizations and code changes will be delivered in a subsequent release.