:::mermaid
kanban
column1["Schema & Objects"]
task1["list_schemas<br/>- Liệt kê tất cả schemas<br/>- Lọc system schemas"]
task2["list_objects<br/>- Liệt kê tables, views, sequences, extensions<br/>- Hiển thị metadata"]
task3["get_object_details<br/>- Chi tiết columns, indexes<br/>- Constraints, foreign keys<br/>- Kích thước table"]
column2["SQL Execution"]
task4["execute_sql<br/>- Thực thi SQL trực tiếp<br/>- Hỗ trợ SELECT, INSERT, UPDATE, DELETE<br/>- Chế độ restricted chỉ SELECT"]
task5["explain_query<br/>- Phân tích execution plan<br/>- Hỗ trợ EXPLAIN ANALYZE<br/>- Hypothetical indexes với HypoPG"]
column3["Performance Analysis"]
task6["get_top_queries<br/>- Top queries chậm nhất<br/>- Sắp xếp theo total_time, mean_time, resources<br/>- Cache hit ratio"]
task7["analyze_db_health<br/>- Index health<br/>- Connection, Vacuum, Buffer health<br/>- Sequence, Replication, Constraint"]
task8["analyze_query_indexes<br/>- Đề xuất indexes cho queries<br/>- Phương pháp DTA hoặc LLM<br/>- Ước tính cải thiện"]
task9["analyze_workload_indexes<br/>- Phân tích workload từ pg_stat_statements<br/>- Đề xuất indexes tối ưu<br/>- ROI analysis"]
column4["Revenue Analysis"]
task10["query_revenue<br/>- Query doanh thu BizFly Cloud<br/>- Filter theo billing_cycle, service_type<br/>- Aggregation theo account, service, billing_plan"]
task11["analyze_trend<br/>- Phân tích xu hướng doanh thu<br/>- Phát hiện khách hàng rủi ro rời bỏ<br/>- Xác định khách hàng tăng trưởng cao"]
:::