Skip to content

Commit

Permalink
update link for sql style guide
Browse files Browse the repository at this point in the history
  • Loading branch information
wibeasley committed May 14, 2024
1 parent 661a709 commit 470ed13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ Some of these guidelines are handled automatically by modern IDEs, if you config
Database {#style-database}
------------------------------------

GitLab's data team has a good [style guide](https://about.gitlab.com/handbook/business-ops/data-team/sql-style-guide/) for databases and sql that's fairly consistent with our style. Some important additions and differences are
GitLab's data team has a good [style guide](https://handbook.gitlab.com/handbook/business-technology/data-team/platform/sql-style-guide/) for databases and sql that's fairly consistent with our style. Some important additions and differences are

1. Favor CTEs over subqueries because they're easier to follow and can be reused in the same file. If the performance is a problem, slightly rewrite the CTE as a temp table and see if it and the new indexes help.

Expand Down

0 comments on commit 470ed13

Please sign in to comment.