Menu

#CreateD_at

8 posts

Feed·
8 of 8 posts
0Read More

Laravel whereDate() Silently Kills Your Index

DEV Community: laravel·Ivan Mykhavko·7 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