By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Agoda Leverages ChatGPT in the CI/CD Process for SQL Stored Procedure Optimization
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > News > Agoda Leverages ChatGPT in the CI/CD Process for SQL Stored Procedure Optimization
News

Agoda Leverages ChatGPT in the CI/CD Process for SQL Stored Procedure Optimization

News Room
Last updated: 2025/10/03 at 10:39 AM
News Room Published 3 October 2025
Share
SHARE

Agoda started utilizing ChatGPT to optimize SQL stored procedures (SP) as part of their CI/CD process. After introducing the automated LLM-assisted step, the company observed shortened stored procedure optimization times, which lightened the load on DB developers. Agora works on making ChatGPT more accessible for SP optimization outside of the CI/CD pipeline.

Agoda’s DB developers have been spending approximately 366 person-days on SP optimization, of which 320 person-days were dedicated to analyzing SP changes that resulted in performance test failures, reported by the CI/CD pipeline. The company wanted to reduce the merge request (MR) approval times (90th percentile of 4.1 hours).

Pichamon Rungarun, staff software engineer at Agoda, outlines the goals behind using ChatGPT:

To reduce manual effort and accelerate SP tuning, we integrated GPT into our development workflow. Our goal was to reduce manual review time, speed up MR approvals, and give developers access to self-service tools for performance tuning.

Inefficient SPs and SQL in general impacted performance, cost, and scalability for the company, potentially resulting in slow response times and frustrated users, higher resource utilization, and scalability bottlenecks. Yet, application developers often encounter challenges when working on database queries, including inefficient joins and subqueries, excessive query nesting, missing or poorly designed indexes, and a lack of visibility into query execution plans.

SQL stored procedure optimization process with ChatGPT (Source: Agoda Engineering Blog)

The team created an automated step that generates SP optimization recommendations using ChatGPT by feeding the SQL code of the stored procedure, table structures, and indexes, along with a performance test report, to the LLM. As a result, GPT suggests an optimized version of the SP by rewriting queries and recommends creating or modifying indexes.

Based on ChatGPT’s optimized version of the SP, the CI/CD pipeline reruns the performance test and provides a side-by-side comparison to DB and application developers, helping them make an informed decision.

Example of SQL procedure optimization with ChatGPT (Source: Agoda Engineering Blog)

Despite the initial success in leveraging ChatGPT, developers are working on improvements to address some limitations, including automated logic validation to ensure heavily revised SPs implement identical logic, despite substantial changes recommended by the LLM.

The team is working on making the functionality available outside of the CI/CD pipeline, so that developers can leverage GPT-based support without needing to open a merge request. Additionally, engineers are seeking to assist DB developers in fine-tuning GPT prompts to enhance the quality of GPT suggestions. Lastly, the team plans to apply SP optimization to production SPs that are responsible for the highest CPU utilization with the hope of reducing resource utilization and lowering infrastructure costs.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Rusticl Performance For AMD Strix Halo Against ROCm OpenCL
Next Article Flai is the latest startup bringing AI to car dealerships | News
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

50% of our portfolio have raised follow-on funding
Computing
The OnePlus 15 might steal Samsung’s thunder with an earlier launch globally
News
Daily Newsletter 10/03/2025 – 09:33
News
6 real estate Facebook ad examples to learn from
Computing

You Might also Like

News

The OnePlus 15 might steal Samsung’s thunder with an earlier launch globally

6 Min Read

Daily Newsletter 10/03/2025 – 09:33

0 Min Read
News

Motorola’s challenger to the Galaxy S25 Edge gets the spotlight in leaked promo video

1 Min Read
News

Trump rolled YouTube into paying $22 million for his ballroom

16 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?