This message was sent first to subscribers of Data Craze Weekly newsletter.
The slides in the link were created in 2017 and I came across them by accident last week.
They are so solid (and still valid) that I couldn’t help but share them with you.
The author focuses on showing how to optimize SQL queries, which may seem quite common and trivial, but unfortunately cost us (at least in PostgreSQL) a lot of computing power and time.
Not using PostgreSQL? It doesn’t matter, check the queries and see if they also apply to your database engine.
Slides from 38, titled DISTINCT, crushed me in my seat.
And another light quote from the author:
– Efficient execution of some popular queries requires the implementation of the alternative procedural algorithm
– Implementation of custom algorithms is usually easier when using PL/PgSQL
– The same algorithm implemented on SQL runs faster
– Implement and debug algorithm on PL/PgSQL
– Convert to SQL
Great article when you are faced with the choice of using Apache Kafka.
What is this tool (technology), when is it worth using it, and when is it better to refrain from using it?
Below is a short quote from the Conclusion section, but it is really worth reading the whole thing.
Kafka is a highly scalable and durable message processing platform with great real-time data processing features. It will be a good fit in use cases like IoT, Click Stream Analytics, Real-Time Data Integration, Event Sourcing, Log Aggregation, etc. But it is not a solution that can be used in any data processing requirement. Kafka should not be used as an ETL tool or as a database even though its feature set may seem similar.
PDF divided into thematic parts. Each part ends with recommendations.
It is worth reviewing, at least from the perspective of the directions in which large companies are heading.
Two quotes below:
Companies that are developing AI will increasingly spin up their own Ethics as a Service (EaaS) offerings within their professional service organizations. We will see a race to hire AI ethicists to become compliant with the new regulations, making AI ethicists in even greater demand than AI developers.
— KATHY BAXTER, PRINCIPAL ARCHITECT, SALESFORCE ETHICAL AI PRACTICE
Data quality and data-driven decision-making go hand in hand. An organization-wide commitment to data governance mitigates risk and drives future success for everyone in the business.
—SCOTT TEAL, PRODUCT MARKETING MANAGER, SNOWFLAKE
TablePlus - “a native application which helps you easily edit database contents and structure in a clean, fluent manner.”
Do you use any IDE to work with the database, e.g. DBeaver? Maybe it’s worth testing something else?
If so, TablePlus comes to the rescue. A “nice” (a matter of taste) theoretically native (natively supporting specific databases) tool.
In theory, you can use it for free (at least that’s what the repository says), but in practice, free use severely limits the tool: The free trial is limited to 2 opened tabs, 2 opened windows, 2 advanced filters (filters are not available on the free TablePlus Windows) at a time. We can change the limitations without any notifications in the future releases. As an alternative to e.g. Data Grip, it is worth considering.
No assignment today, but please open the slides from the first link.
HERE (as a reminder)
Take a look at example 02 “IOS for large data offsets”.
The most common pagination on websites OFFSET + LIMIT.
Read what consequences it may have with a large offset. Check if such situations apply to you.
More SQL related questions you can find at SQL - Q&A
- Remote Data Engineer, 10 Senses – Fully Remote – PLN 36,000 – PLN 40,000 (net/month, B2B)
Skills sought: SQL, Python, Spark