# Scaling Django Admin Date Hierarchy

DevFeed: [Scaling Django Admin Date Hierarchy](<https://devfeed.tech/articles/scaling-django-admin-date-hierarchy-33934.md>)

Original publisher: [Read original article](<https://hakibenita.com/scaling-django-admin-date-hierarchy>)

Author: Haki Benita

Published: 2017-10-05T21:00:00Z

Content type: article

Language: en

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

Topics: [Django](<https://devfeed.tech/topics/django.md>), [Database](<https://devfeed.tech/topics/database.md>)

Tags: [articles](<https://devfeed.tech/tags/articles.md>), [django](<https://devfeed.tech/tags/django.md>), [django-admin](<https://devfeed.tech/tags/django-admin.md>), [performance](<https://devfeed.tech/tags/performance.md>), [performance-analysis](<https://devfeed.tech/tags/performance-analysis.md>), [usability](<https://devfeed.tech/tags/usability.md>)

## AI overview

This article examines the performance cost of Django Admin's date hierarchy on large tables. It describes the database queries used to populate the hierarchy and presents a package that replaces those queries with generated date ranges under stated assumptions, improving page load performance and usability.

## Source excerpt

The date hierarchy is a great feature but it comes at a price. On very large tables, the way date hierarchy is implemented can make an admin page nearly unusable. In this article we describe the limitations of the date hierarchy, and suggest a way to overcome them.