eddy1992
1268
6
Eloquent

Search on the last two months records

Posted 1 year ago by eddy1992

Hi I have a situation where I have millions of records in a table and I dont want to search the whole record set all times. Imagine I have a products table and I have 1 million products of last 5 years and to search something like finding product name I have to search the whole records, can I do something like search only the last two months records. So that the performance improves. If yes how will I do it using eloquent ?

please assist.

Please sign in or create an account to participate in this conversation.