OpenAI, Google, and Anthropic just published guides on:
โข Prompt engineering
โข Building agents
โข AI in business
โข 601 AI use cases
9 of the best guides you can't miss:
I collected the exact NotebookLM prompts that went viral across Reddit, X, and research communities.
They turn NotebookLM from a demo tool into a nuclear missile that finishes hours of work in seconds.
10 copy paste prompts.
No fluff. No theory.
Check them out ๐
Visualizing a SQL query
SQL statements are executed by the database system in several steps, including:
- Parsing the SQL statement and checking its validity
- Transforming the SQL into an internal representation, such as relational algebra
- Optimizing the internal representation and creating an execution plan that utilizes index information
- Executing the plan and returning the results
โ
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): https://t.co/FIzCeaWsZV
๐ง๐ผ๐ฝ ๐ฎ๐ฌ ๐ฆ๐ค๐ ๐พ๐๐ฒ๐ฟ๐ ๐ผ๐ฝ๐๐ถ๐บ๐ถ๐๐ฎ๐๐ถ๐ผ๐ป ๐๐ฒ๐ฐ๐ต๐ป๐ถ๐พ๐๏ฟฝ๏ฟฝ๏ฟฝ๐
Here is the list of the top 20 SQL query optimization techniques I found noteworthy:
1. Create an index on huge tables (>1.000.000) rows
2. Use EXIST() instead of COUNT() to find an element in the table
3. SELECT fields instead of using SELECT *
4. Avoid Subqueries in WHERE Clause
5. Avoid SELECT DISTINCT where possible
6. Use WHERE Clause instead of HAVING
7. Create joins with INNER JOIN (not WHERE)
8. Use LIMIT to sample query results
9. Use UNION ALL instead of UNION wherever possible
10. Use UNION where instead of WHERE ... or ... query.
11. Run your query during off-peak hours
12. Avoid using OR in join queries
14. Choose GROUP BY over window functions
15. Use derived and temporary tables
16. Drop the index before loading bulk data
16. Use materialized views instead of views
17. Avoid != or <> (not equal) operator
18. Minimize the number of subqueries
19. Use INNER join as little as possible when you can get the same output using LEFT/RIGHT join.
20. For retrieving the same dataset, frequently try to use temporary sources.
Do you know what is ๐ค๐๐ฒ๐ฟ๐ ๐ข๐ฝ๐๐ถ๐บ๐ถ๐๐ฒ๐ฟ? Its primary function is to determine ๐๐ต๐ฒ ๐บ๐ผ๐๐ ๐ฒ๐ณ๐ณ๐ถ๐ฐ๐ถ๐ฒ๏ฟฝ๏ฟฝ๐ ๏ฟฝ๏ฟฝ๐ฎ๐ to execute a given SQL query by finding the best execution plan. The query optimizer works by taking the SQL query as input and analyzing it to determine how best to execute it. The first step is to parse the SQL query and create a syntax tree. The optimizer then analyzes the syntax tree to determine how to run the query.
Next, the optimizer generates ๐ฎ๐น๐๐ฒ๐ฟ๐ป๐ฎ๐๐ถ๐๐ฒ ๐ฒ๐ ๐ฒ๐ฐ๐๐๐ถ๐ผ๐ป ๐ฝ๐น๐ฎ๐ป๐, which are different ways of executing the same query. Each execution plan specifies the order in which the tables should be accessed, the join methods, and any filtering or sorting operations. The optimizer then assigns a ๐ฐ๐ผ๐๐ to each execution plan based on the number of disk reads and the CPU time required to execute the query.
Finally, the optimizer ๐ฐ๐ต๐ผ๐ผ๐๐ฒ๐ ๐๐ต๐ฒ ๐ฒ๐ ๐ฒ๐ฐ๐๐๐ถ๐ผ๐ป ๐ฝ๐น๐ฎ๐ป with the lowest cost as the optimal execution plan for the query. This plan is then used to execute the query.
Check in the image the ๐ผ๐ฟ๐ฑ๐ฒ๐ฟ ๐ถ๐ป ๐๐ต๐ถ๐ฐ๐ต ๐ฆ๐ค๐ ๐พ๐๐ฒ๐ฟ๐ถ๐ฒ๐ ๐ฟ๐๐ป.
#technology #softwareengineering #programming #techworldwithmilan #sql
Key takeaways: ๐ "Storytelling with Data" by @storywithdata
- Understand how people see, how the brain perceives, and how you can use that to your advantage when crafting visuals.
- Clutter is your enemy. Remove unnecessary visual elements that do notโฆhttps://t.co/zxaC3sGfFr
Thrilled to share some key takeaways from the ongoing #DataAISummit 2023 hosted by Databricks!
1๏ธโฃ Delta Lake 3.0: an open-source framework that supports multiple table formats, including Apache #Iceberg and #Hudi. This will offer greater flexibility andโฆhttps://t.co/KzKBYXJjh7
It was a truly remarkable day at the Data and Analytics Summit, filled with thought-provoking insights and robust discussions that underlined the dynamism of our field.
The keynote speech by Peter Jackson on the 'Data and Technology Operating Model' was,โฆhttps://t.co/lPtEi9ekVq
Data Product Manager.
--------------------------
Companies often struggle to deploy AI and analytics models into production. To address this issue, many organizations are adopting the concept of data productsโreusable datasets that can be analyzed in variโฆhttps://t.co/KfuOPyMdJk
The future of work is to have a unique perspective.
-----------
With the rise of artificial intelligence, Automation, and SaaS. I believe the most essential skills in the market will be:
1- System thinking
traditional thinking (component thinking) breaksโฆhttps://t.co/QtiOQmvWwn
It was great to meet great people and share up-to-date knowledge and actionable, practical work experience advice about Modern Data Stack, digital analytics, and high-demand digital skills to learn.
Hop It will be a flame light for new people to find andโฆhttps://t.co/wST9eEJqRo
As I'm on my vacation, reading my favorite business book: 80/20 Sales and Marketing by Perry Marshall.
I asked openai (first time trying it) about: LinkedIn post ideas on vacation, and this is the result.
Summarizing the key ideas as a carousel LinkedInโฆhttps://t.co/vfYQ8SzIlQ
Happy to attend the #CustomerExperienceSummit 2022.
8020 insights:
- EX + CX = success brand (Employee & Customer Experience)
- CX Strategy = Hi to buy, then buy again.
- Eliminate complexity, remove friction and accelerate productivity.
- Deal with CXโฆhttps://t.co/r9hmDqK5Iw
Googleย Dataย Studioย is now re-branded as Looker Studio.
And there are a lot of great advanced features on the roadmap, including sharing visualization charts in a google doc, google Slides, and even email.
I'm always a big fan of the google ecosystem :)โฆhttps://t.co/9XIiojzc1g
i believe that feedback loop effect, is one of the most important, but ambiguous nature concepts. if you understand it deeply, and design a system with fine-tuning feedback loop, you can reach exponential result. even this implementation on your personalโฆhttps://t.co/wK9TzqXj6Q
As a take away from Vibe MarTech Fest 2022.
"let data drive your decisions, not the highest paid person's opinion."
in my opinion, 3 steps for digital transformation.
1. Cloud data pipeline (Modern Data Stack)
- Consolidate all your data in one placeโฆhttps://t.co/EVAzyFH6Xw
80/20 and Employee Performance
When youโre measuring people or economics or anything in business, the 80/20 Curve is almost always more insightful. and 80/20 rule says:
If you want a high performance organization, 80% of people are NOT up to the task. Itโโฆhttps://t.co/Tn4R5uqsRn