Daily Shaarli
May 30, 2022
SQL table expressions are somewhat similar to functions in a regular programming language — they reduce the overall complexity.
You can write an unreadable sheet of code, or you can break the code into understandable individual functions and compose a program out of them.
You can build a tower of nested subqueries, or you can extract them into CTEs and reference from the main query.There is a myth that “CTEs are slow”. It came from old versions of PostgreSQL (11 and earlier), which always materialized CTE — calculated the full result of a table expression and stored it until the end of the query.
Ok. There are some rules:
- CTE runs on every request
- CTE splits the query code into multiple chunks
- instead of subquery, always use CTE for clarity
A list of disavantages of golang
background-clip: padding-box to avoid overflow of the background if border-radius is set.
Tu te demande si y a pas un problème avec ce sport quand le Ministère de l’Intérieur doit mettre en place un périmètre de sécurité, une restriction sur l’alcool, une restriction sur le port des maillots de foot sur les Champs-Élysées pendant quatre jours…
…et déployer 6 800 policiers et militaires pour que tout se passe pas trop mal.
Effectivement comme le souligne LeHollandaisVolant, il y a peut être un problème avec ce sport, alors qu'il s'agit d'une banale rencontre qui n'a pas d'enjeux politique comme un Russie/Ukraine, Israel/Palestine, Chine/
Ce n'est pas le cas pour Roland Garros ou
How to have temporary data:
1 - Common Table Expression (or basically a named subquery)
2 - View: works like a CTE, but you can reference it by name and not repeat the subquery every time. Views are computed on the fly, similar to CTEs.
3 - A temporary table is like a real table: it stores data on disk, and you can build indexes. But it exists only while the database connection is open.
PostgreSQL and others have materialized views, which store data on disk
When to use temporary tables ?
Temporary tables are great for experimenting when you’re just getting to know the data.
With this it is possible to try SQLite in the browser. The whole thing runs using WASM (compiled using Emscripten) and was announced by Richard Hipp as part of the SQLite 3.39.0 beta in the SQLite forum.
What is also interesting is that to load the page, less than 1 MB of data needs to be loaded. If compression were enabled, this could probably be reduced further.
sqlite3 fiddle could make it easier to quickly try something with SQLite. Instead of downloading sqlite3 first and then trying it out locally, you just open the page and can quickly use the latest sqlite3 version.
So 0,0016% of the tesla.
I always thought burnout happened when you work too much.
Now I get it. It's investing emotionally and then not getting a return on that investment.