https://medium.com/@iamalisaleh/using-queryset-latest-and-earliest-methods-for-efficient-data-access-in-django-ee8003d1f316