I would like to know, in terms of perfomance, which one is the most optimise query and if there is any drawback.
1551966636 <= this_one.date_as_a_timestamp <= 1551988636
localedatetime(yesterday)<= this_one.date_as_localedatetime <= localedatetime(tomorrow)
I currently use the localedatetime's one, with index, but I currently looking into some optimisation and I think date can be one to do.
Any help appreciated