veetmoradiya3628 opened a new issue, #8374: URL: https://github.com/apache/incubator-devlake/issues/8374
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> ## What and why to refactor For DORA dashboard below two metrics - Change Failure Rate - Overall DORA metrics take a lot of time to load when there is more data in below two tables - incidents - cicd_deployment_commits ## Describe the solution you'd like I have identified alternative query for one of the CTE inside metrics query which can improve the performance of query. ## Related issues I have faced this issue in our Apache Devlake instance where we have more than 150 Devlake projects enabled for different teams across organization. When there was less data at that time metrics loading was proper and it was working smooth, but once we have enabled more projects and collected more data then we have faced this issue. ## Additional context  I’d love to contribute this optimization back to the project so others can benefit as well. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@devlake.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org