Menu

#CreateD_at

5 posts

Feed·
5 of 5 posts
0Read More

Laravel whereDate() Silently Kills Your Index

DEV Community: laravel·Ivan Mykhavko·6 months ago
#O24M5AxW
#dev#class#code#highlight#created_at

whereDate('created_at', $date) looks clean, but on a big table it quietly drops your index and does a full scan. Say you want notifications created on a specific day.…

15s