1👍
✅
What does your query look like?
If you only want people whose database entry was created today, you could do something like
from datetime import datetime
today = datetime.today()
today = datetime(today.year, today.month, today.day)
And then you could filter based on this, e.g.
your_query.filter(created__gte = today)
As for the size of the database – If this is really going to be a problem for you, you could implement an archival system. Maybe a cron job that runs once a day and writes old entries to a .csv file or a separate database or something.
Source:stackexchange.com