Talk

QuerySet.explain(): make it make sense.

Friday, May 30

15:35 - 16:05
RoomGnocchi
LanguageEnglish
Audience levelIntermediate
Elevator pitch

I will help you decipher database query plans and give some rules of thumb to understand if the database is doing the best it can. We will also use query plans to find the best indexes for queries and I will share several anti-patterns I have seen in Django projects .

Abstract

We have tools for Django that show what queries are executed and the time it takes. But what next? What is going on there? Is it good that it’s doing that? Is the query supposed to take this much time? Will some indexes help? In this talk, I will help you decipher database query plans and give some rules of thumb to understand if the database is doing the best it can. We will also use query plans to find the best indexes for queries by observing what the database is looking for. I will also share several anti-patterns I have seen in Django projects and show how to rewrite them in a database-friendly way.

TagsDatabases, Web Frameworks, Performance and scalability techniques
Participant

Aivars Kalvāns

Aivars Kalvāns is a FinTech developer, software architect, and consultant. He spent more than 18 years developing and architecting payment card software for acquiring and issuing, accounting and utility payments through mobile phones, ATMs, and POS terminals. At the moment he is a contractor for Ebury exploring the Foreign Exchange area of the FinTech landscape.