Tune your SQL for performance
Helping PostgreSQL professionals with AI-assisted performance recommendations
Since the beginning of my journey into the data world I’ve been keen on making professionals better at their data job. In the previous years that took the shape of creating materials in several different forms that could help people understand, use, and avoid mistakes on their data tool of choice. But now there’s much more into it: a trusted AI solution to help data professional in their day to day optimization job.
How to use pgbench to test PostgreSQL® performance
Testing a database performance is a must in every company. Despite everyone’s needs beings slightly different, a good starting point for PostgreSQL® database is using pgbench: a tool shipped with the PostgreSQL installation that allows you to stress test a local or remote database. This blog post showcases how to install (on a Mac) and use pgbench to create load on a remote PostgreSQL database on Aiven.
From dbf to SQL (and PostgreSQL) with Python
Some time ago I found an interesting database file suffix I never faced before: the .dbf
and saw around that it was first introduced in 1983 with dBASE II. This article showcases how we can automatically generate the PostgreSQL table and fill it with data using Python and dbfread.
List of PostgreSQL® AI Projects and Resources
Everyone is now talking about AI, and modern databases like PostgreSQL® are increasingly being adopted in companies’ AI journey as sources of data or key pieces of the AI infrastructure. Moreover there’s a new set projects that are solving PostgreSQL problems with AI.
11 Lessons to learn when using NULLs in PostgreSQL®
A boolean value should only contain two values, True
or False
, but is it correct? Usually people assume so, but sometimes miss the fact that there could be the absence of the value all-together. In databases this is absence is usually stored as NULL
and this blog showcases how to find them, use them properly and 11 lessons to learn to be a NULL
Pro!
Keep in mind, it’s not only booleans that can contain
NULL
values, it’s all the columns where you don’t define aNOT NULL
constraint!
How to CONCAT in MySQL
One of the most common tasks with strings is concatenation! This blog post showcases several techniques to perform it with MySQL.
Load StackOverflow's StackExchange data in Postgresql®
How to load StackOverflow StackExchange data in a PostgreSQL® database!
1 billion rows challenge in MySQL
Earlier this month I wrote a piece on solving Gunnar Morling interesting 1 billion rows challenge in PostgreSQL and ClickHouse. Since Aiven provides also MySQL, I wanted to give it a try. TLDR; The results are much slower than PG and ClickHouse, do you have any suggestion on how to improve?
How to use PostgreSQL® SUBSTRING
Need to extract a specific substring out of a text in PostgreSQL®? Read here how!