---
title: "#sql-optimize articles | Hashnode"
description: "Explore 34 articles tagged #sql-optimize on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/sql-optimize"
---

Tag

# #sql-optimize

34 posts · 0 followers

[Anand Gupta](https://hashnode.com/@anandgupta42) · [Aug 2](https://hashnode.com/posts/power-user-for-dbt-can-now-tell-you-why-your-model-is-slow/6a6fa5f8d1dc546054c208c8)

### [Power User for dbt Can Now Tell You Why Your Model Is Slow](https://blog.altimate.ai/power-user-for-dbt-can-now-tell-you-why-your-model-is-slow?utm_source=hashnode&utm_medium=feed)

Introducing "Profile this query" in the Power User for dbt VS Code extension, powered by Altimate Code.

11 min read · [blog.altimate.ai](https://blog.altimate.ai/power-user-for-dbt-can-now-tell-you-why-your-model-is-slow?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/power-user-for-dbt-can-now-tell-you-why-your-model-is-slow/6a6fa5f8d1dc546054c208c8)

[Payal Porwal](https://hashnode.com/@PayalPorwal) · [Feb 24](https://hashnode.com/posts/master-the-top-sql-queries-clear-explanations-practical-examples/699dac5276cf0888f4aef4d4)

### [Master the Top SQL Queries: Clear Explanations + Practical Examples](https://codeswithpayal.hashnode.dev/master-the-top-sql-queries-clear-explanations-practical-examples?utm_source=hashnode&utm_medium=feed)

1️⃣ SELECT (Basic Data Fetching) 🔹 What it does: Fetch data from a table. 🔹 Syntax: SELECT column1, column2 FROM table\_name; 🔹 Example: SELECT name, salary FROM employees; 🔹 Use Case: Showing u

5 min read · [codeswithpayal.hashnode.dev](https://codeswithpayal.hashnode.dev/master-the-top-sql-queries-clear-explanations-practical-examples?utm_source=hashnode&utm_medium=feed)

[Thana Oscar](https://hashnode.com/@thanaoscar) · [Jan 30, 2025](https://hashnode.com/posts/bai-19-toi-uu-query-voi-indexed-views/679b0f81bc5cd7d08170182c)

### [Bài 19: Tối ưu Query với Indexed Views](https://thanaoscar.hashnode.dev/bai-19-toi-uu-query-voi-indexed-views?utm_source=hashnode&utm_medium=feed)

Indexed views (hay materialized views) là một công cụ mạnh mẽ trong SQL, cho phép lưu trữ kết quả của một truy vấn dưới dạng một bảng vật lý được đánh chỉ mục. Chúng giúp cải thiện đáng kể hiệu suất của các truy vấn phức tạp bằng cách giảm thiểu việc...

6 min read · [thanaoscar.hashnode.dev](https://thanaoscar.hashnode.dev/bai-19-toi-uu-query-voi-indexed-views?utm_source=hashnode&utm_medium=feed)

[Thana Oscar](https://hashnode.com/@thanaoscar) · [Jan 30, 2025](https://hashnode.com/posts/bai-30-tong-hop-va-best-practices-trong-toi-uu-sql-query/679b112b844341d57f414bb2)

### [Bài 30: Tổng hợp và Best Practices trong Tối ưu SQL Query](https://thanaoscar.hashnode.dev/bai-30-tong-hop-va-best-practices-trong-toi-uu-sql-query?utm_source=hashnode&utm_medium=feed)

Sau khi đã tìm hiểu các kỹ thuật tối ưu hóa SQL Query từ Replication, Connection Pooling, Query Caching, Query Tuning Tools, Database Maintenance, đến Cloud Database, đã đến lúc tổng hợp lại các kiến thức quan trọng và đưa ra các best practices để áp...

5 min read · [thanaoscar.hashnode.dev](https://thanaoscar.hashnode.dev/bai-30-tong-hop-va-best-practices-trong-toi-uu-sql-query?utm_source=hashnode&utm_medium=feed)

[Thana Oscar](https://hashnode.com/@thanaoscar) · [Jan 30, 2025](https://hashnode.com/posts/bai-16-toi-uu-query-voi-views/679b0ed3e4334d4f7b2af3a1)

### [Bài 16: Tối ưu Query với Views](https://thanaoscar.hashnode.dev/bai-16-toi-uu-query-voi-views?utm_source=hashnode&utm_medium=feed)

Views là một công cụ mạnh mẽ trong SQL, cho phép bạn tạo ra các bảng ảo dựa trên kết quả của một truy vấn. Views giúp đơn giản hóa các truy vấn phức tạp, tăng tính bảo mật và tái sử dụng logic truy vấn. Tuy nhiên, nếu không được sử dụng đúng cách, vi...

5 min read · [thanaoscar.hashnode.dev](https://thanaoscar.hashnode.dev/bai-16-toi-uu-query-voi-views?utm_source=hashnode&utm_medium=feed)

[Thana Oscar](https://hashnode.com/@thanaoscar) · [Jan 30, 2025](https://hashnode.com/posts/bai-7-su-dung-subquery-va-cte/679b0d5dfeb4266100d49e1b)

### [Bài 7: Sử dụng Subquery và CTE](https://thanaoscar.hashnode.dev/bai-7-su-dung-subquery-va-cte?utm_source=hashnode&utm_medium=feed)

Subquery và Common Table Expressions (CTE) là hai công cụ mạnh mẽ trong SQL, cho phép bạn chia nhỏ các truy vấn phức tạp thành các phần đơn giản hơn, dễ quản lý và tối ưu hóa. Bài viết này sẽ đi sâu vào khái niệm, cách sử dụng, và so sánh giữa subque...

5 min read · [thanaoscar.hashnode.dev](https://thanaoscar.hashnode.dev/bai-7-su-dung-subquery-va-cte?utm_source=hashnode&utm_medium=feed)

[Thana Oscar](https://hashnode.com/@thanaoscar) · [Jan 30, 2025](https://hashnode.com/posts/bai-29-toi-uu-query-voi-cloud-database/679b1106e4334d4f7b2af3ba)

### [Bài 29: Tối ưu Query với Cloud Database](https://thanaoscar.hashnode.dev/bai-29-toi-uu-query-voi-cloud-database?utm_source=hashnode&utm_medium=feed)

Cloud Database là một xu hướng ngày càng phổ biến trong việc quản lý và lưu trữ dữ liệu, đặc biệt là trong các hệ thống yêu cầu tính linh hoạt, khả năng mở rộng và hiệu suất cao. Trong bài này, chúng ta sẽ tìm hiểu về Cloud Database, các dịch vụ phổ ...

4 min read · [thanaoscar.hashnode.dev](https://thanaoscar.hashnode.dev/bai-29-toi-uu-query-voi-cloud-database?utm_source=hashnode&utm_medium=feed)

[Thana Oscar](https://hashnode.com/@thanaoscar) · [Jan 30, 2025](https://hashnode.com/posts/bai-28-toi-uu-query-voi-database-maintenance/679b10cf39041c76ef49767b)

### [Bài 28: Tối ưu Query với Database Maintenance](https://thanaoscar.hashnode.dev/bai-28-toi-uu-query-voi-database-maintenance?utm_source=hashnode&utm_medium=feed)

Database Maintenance là quá trình bảo trì và tối ưu hóa cơ sở dữ liệu để đảm bảo hiệu suất, tính nhất quán và độ tin cậy của hệ thống. Trong bài này, chúng ta sẽ tìm hiểu về các công việc bảo trì cơ bản, cách thực hiện chúng, và khi nào nên thực hiện...

4 min read · [thanaoscar.hashnode.dev](https://thanaoscar.hashnode.dev/bai-28-toi-uu-query-voi-database-maintenance?utm_source=hashnode&utm_medium=feed)

[Thana Oscar](https://hashnode.com/@thanaoscar) · [Jan 30, 2025](https://hashnode.com/posts/bai-27-toi-uu-query-voi-query-tuning-tools/679b10aed1a4a4a6f66d8f6d)

### [Bài 27: Tối ưu Query với Query Tuning Tools](https://thanaoscar.hashnode.dev/bai-27-toi-uu-query-voi-query-tuning-tools?utm_source=hashnode&utm_medium=feed)

Query Tuning Tools là các công cụ hỗ trợ phân tích và tối ưu hóa hiệu suất của các truy vấn cơ sở dữ liệu. Chúng giúp xác định các điểm nghẽn (bottlenecks), đề xuất cải tiến, và đảm bảo rằng các truy vấn chạy một cách hiệu quả nhất. Trong bài này, ch...

5 min read · [thanaoscar.hashnode.dev](https://thanaoscar.hashnode.dev/bai-27-toi-uu-query-voi-query-tuning-tools?utm_source=hashnode&utm_medium=feed)

[Thana Oscar](https://hashnode.com/@thanaoscar) · [Jan 30, 2025](https://hashnode.com/posts/bai-26-toi-uu-query-voi-query-caching/679b1095147ad044d134d657)

### [Bài 26: Tối ưu Query với Query Caching](https://thanaoscar.hashnode.dev/bai-26-toi-uu-query-voi-query-caching?utm_source=hashnode&utm_medium=feed)

Query Caching là một kỹ thuật quan trọng giúp tối ưu hóa hiệu suất của các truy vấn cơ sở dữ liệu bằng cách lưu trữ kết quả của các truy vấn SELECT trong bộ nhớ. Khi cùng một truy vấn được thực thi lại, hệ thống sẽ trả về kết quả đã được lưu trong ca...

5 min read · [thanaoscar.hashnode.dev](https://thanaoscar.hashnode.dev/bai-26-toi-uu-query-voi-query-caching?utm_source=hashnode&utm_medium=feed)
