SQL Best practices to enhance the performance of CCS