From 646b0dc35f3643021d7b80368fb1a22924f78bb7 Mon Sep 17 00:00:00 2001 From: Tobias Petry Date: Sat, 20 Aug 2022 14:36:24 +0200 Subject: [PATCH] sqlfordevs.io moved to sqlfordevs.com (#31) --- content/tips/databases-can-generate-random-uuid-keys.md | 2 +- ...already-sorted-way-instead-of-the-default-insertion-order.md | 2 +- ...-can-avoid-many-n1-issues-by-using-lateral-joins-in-mysql.md | 2 +- ...can-create-db-indices-for-transformed-versions-of-columns.md | 2 +- ...you-can-use-recursive-queries-to-query-hierarchical-trees.md | 2 +- content/tips/you-can-validate-json-columns-at-database-level.md | 2 +- .../tips/you-can-validate-json-columns-at-the-database-level.md | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/content/tips/databases-can-generate-random-uuid-keys.md b/content/tips/databases-can-generate-random-uuid-keys.md index a3a9b99..c7a559e 100644 --- a/content/tips/databases-can-generate-random-uuid-keys.md +++ b/content/tips/databases-can-generate-random-uuid-keys.md @@ -12,4 +12,4 @@ slug: databases-can-generate-random-uuid-keys Many applications use the table's numeric primary key in the URL: Bots can scrape all data by incrementing the ID and competitors know your number of customers/resources and growth.Adding a random UUID which is used in URLs solves this. -https://sqlfordevs.io/uuid-prevent-enumeration-attack \ No newline at end of file +https://sqlfordevs.com/uuid-prevent-enumeration-attack diff --git a/content/tips/rows-can-be-stored-in-an-already-sorted-way-instead-of-the-default-insertion-order.md b/content/tips/rows-can-be-stored-in-an-already-sorted-way-instead-of-the-default-insertion-order.md index f55ba61..b52cbde 100644 --- a/content/tips/rows-can-be-stored-in-an-already-sorted-way-instead-of-the-default-insertion-order.md +++ b/content/tips/rows-can-be-stored-in-an-already-sorted-way-instead-of-the-default-insertion-order.md @@ -12,4 +12,4 @@ slug: rows-can-be-stored-in-an-already-sorted-way-instead-of-the-default-inserti In most applications, all rows are physically sorted in the database file by their insertion order. By sorting them instead optimally for your application a huge databases will still be amazingly fast. -https://sqlfordevs.io/sorted-table-faster-range-scan \ No newline at end of file +https://sqlfordevs.com/sorted-table-faster-range-scan diff --git a/content/tips/you-can-avoid-many-n1-issues-by-using-lateral-joins-in-mysql.md b/content/tips/you-can-avoid-many-n1-issues-by-using-lateral-joins-in-mysql.md index cc0b9ce..e8eb5a8 100644 --- a/content/tips/you-can-avoid-many-n1-issues-by-using-lateral-joins-in-mysql.md +++ b/content/tips/you-can-avoid-many-n1-issues-by-using-lateral-joins-in-mysql.md @@ -13,4 +13,4 @@ slug: you-can-avoid-many-n1-issues-by-using-lateral-joins-in-mysql Sometimes you want to get e.g. the last three orders for *every* customer. Normal joins can't do that. You have to execute n+1 queries in code, which is slow! But with lateral joins, you can do one for-each loop join in SQL 🤯 -https://sqlfordevs.io/for-each-loop-lateral-join \ No newline at end of file +https://sqlfordevs.com/for-each-loop-lateral-join diff --git a/content/tips/you-can-create-db-indices-for-transformed-versions-of-columns.md b/content/tips/you-can-create-db-indices-for-transformed-versions-of-columns.md index 057324e..f3012b5 100644 --- a/content/tips/you-can-create-db-indices-for-transformed-versions-of-columns.md +++ b/content/tips/you-can-create-db-indices-for-transformed-versions-of-columns.md @@ -12,4 +12,4 @@ slug: you-can-create-db-indices-for-transformed-versions-of-columns Most developers are puzzled that indexes are not used for e.g. WHERE LOWER(email) = ?. But contrary to common belief, an index can be created for these cases! It's called a function-based index and is supported by MySQL and PostgreSQL. -https://sqlfordevs.io/tips/function-based-index +https://sqlfordevs.com/function-based-index diff --git a/content/tips/you-can-use-recursive-queries-to-query-hierarchical-trees.md b/content/tips/you-can-use-recursive-queries-to-query-hierarchical-trees.md index 69c8826..7bb4ab3 100644 --- a/content/tips/you-can-use-recursive-queries-to-query-hierarchical-trees.md +++ b/content/tips/you-can-use-recursive-queries-to-query-hierarchical-trees.md @@ -10,4 +10,4 @@ slug: you-can-use-recursive-queries-to-query-hierarchical-trees --- ⚡ Database Tip -Recursive queries are a great solution to e.g. querying multiple levels in a tree with just one query. But you should use cycle detection otherwise your query might run forever or fail for loops in your data. https://sqlfordevs.io/cycle-detection-recursive-query \ No newline at end of file +Recursive queries are a great solution to e.g. querying multiple levels in a tree with just one query. But you should use cycle detection otherwise your query might run forever or fail for loops in your data. https://sqlfordevs.com/cycle-detection-recursive-query diff --git a/content/tips/you-can-validate-json-columns-at-database-level.md b/content/tips/you-can-validate-json-columns-at-database-level.md index 205e09e..53bfc90 100644 --- a/content/tips/you-can-validate-json-columns-at-database-level.md +++ b/content/tips/you-can-validate-json-columns-at-database-level.md @@ -12,4 +12,4 @@ slug: you-can-validate-json-columns-at-database-level Extending a traditional database schema with NoSQL-like JSON columns can make the schema more understandable. But you should also ensure these JSON documents conform to an expected schema! -https://sqlfordevs.io/json-schema-validation \ No newline at end of file +https://sqlfordevs.com/json-schema-validation diff --git a/content/tips/you-can-validate-json-columns-at-the-database-level.md b/content/tips/you-can-validate-json-columns-at-the-database-level.md index c65c155..1f7d113 100644 --- a/content/tips/you-can-validate-json-columns-at-the-database-level.md +++ b/content/tips/you-can-validate-json-columns-at-the-database-level.md @@ -12,4 +12,4 @@ slug: you-can-validate-json-columns-at-the-database-level Extending a traditional database schema with NoSQL-like JSON columns can make the schema more understandable. But you should also ensure these JSON documents conform to an expected schema! -https://sqlfordevs.io/tips/json-schema-validation \ No newline at end of file +https://sqlfordevs.com/json-schema-validation