# 9 Django Tips for Working with Databases

DevFeed: [9 Django Tips for Working with Databases](<https://devfeed.tech/articles/9-django-tips-for-working-with-databases-33887.md>)

Original publisher: [Read original article](<https://hakibenita.com/9-django-tips-for-working-with-databases>)

Author: Haki Benita

Published: 2018-01-28T22:00:00Z

Content type: tutorial

Language: en

Sources: [Haki Benita](<https://devfeed.tech/sources/haki-benita.md>)

Topics: [Django](<https://devfeed.tech/topics/django.md>), [Databases](<https://devfeed.tech/topics/databases.md>), [Object-relational mapping](<https://devfeed.tech/topics/orm.md>), [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [SQL](<https://devfeed.tech/topics/sql.md>)

Tags: [articles](<https://devfeed.tech/tags/articles.md>), [databases](<https://devfeed.tech/tags/databases.md>), [django](<https://devfeed.tech/tags/django.md>), [long-running](<https://devfeed.tech/tags/long-running.md>), [orm](<https://devfeed.tech/tags/orm.md>), [performance](<https://devfeed.tech/tags/performance.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [production](<https://devfeed.tech/tags/production.md>), [sql](<https://devfeed.tech/tags/sql.md>), [timeout](<https://devfeed.tech/tags/timeout.md>)

## AI overview

A tutorial on improving Django database work by using ORM features, PostgreSQL-specific queries, custom database functions, and SQL query timeouts.

## Source excerpt

ORMs offer great utility for developers but abstracting access to the database has its costs. Developers who are willing to poke around the database and change some defaults often find that great improvements can be made.