django / django-contrib-comments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add index on submit_date?

AlexRiina opened this issue · comments

Since the default ordering for the model is by submit_date, it seems like submit_date would be a good candidate for db_index=True. A lot of my queries also look for comments after a certain date for which I've been using id instead.

Sure, makes sense.