Overview
News
Salaries
Products
People
Growth
Offices
Financials

Overview

Haki Benita About Subscribe Hey My name is Haki Benita. I'm a software developer and a technical lead.

News

News O'Reilly Media 2 months ago
SQL Next Steps: Optimization
Getting the most out of your database
Read more
Report
Blog 3 months ago
How to Achieve Pruning When Querying by Non-Partitioned Columns in PostgreSQL
Under conventional wisdom, pruning can only be achieved when querying by the partition key. However, if your data follows certain patterns, using some clever tricks you can achieve pruning even when filtering by non-partition key columns.
Read more
Report
Blog 8 months ago
Row Locks With Joins Can Produce Surprising Results in PostgreSQL
You execute a query that joins two tables with a valid an enforces foreign key and it returns no results. How is it possible? We thought it wasn't possible, but a recent incident revealed an edge case we never thought about. In this article I show how und
Read more
Report
Blog 9 months ago
Unconventional PostgreSQL Optimizations
When it comes to database optimization, developers often reach for the same old tools: rewrite the query slightly differently, slap an index on a column, denormalize, analyze, vacuum, cluster, repeat. Conventional techniques are effective, but sometimes b
Read more
Report
Blog 12 months ago
Reliable Django Signals
Django signals are extremely useful for decoupling modules and implementing complicated workflows. However, the underlying transport for signals makes them unreliable and subject to unexpected failures.In this article, I present an alternative transport i
Read more
Report
Blog 1 year ago
How to Get Foreign Keys Horribly Wrong
Constraints keep the integrity of your system and prevent you from shooting yourself in the foot. Foreign keys are a special type of constraint because, unlike unique, check, and primary keys, they span more than one relation. This makes foreign keys hard
Read more
Report
Blog 2 years ago
How to Get or Create in PostgreSQL
"Get or create" is a very common operation for syncing data in the database, but implementing it correctly may be trickier than you may expect. If you ever had to implement it in a real system with real-life load, you may have overlooked potential race co
Read more
Report
Blog 2 years ago
Fastest Way to Read Excel in Python
I'm fairly sure that Excel is the most common way to store data, manipulate data, and yes(!), even pass data around. This is why it's not uncommon to find yourself reading Excel in Python. In this article I compare several ways to read Excel from Python.
Read more
Report
News hakibenita.com 3 years ago
Outliers can trick the optimizer into the wrong plan
How outliers can trick the optimizer into the wrong plan
Read more
Report
News hakibenita.com 3 years ago
The many faces of DISTINCT in Postgres (2017)
3 interesting uses of DISTINCT in PostgreSQL
Read more
Report
Show more news